danschultz / browser_detect.dart

A Dart package that provides information about the user's web browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browser detect simply fails on Chrome on iOS

enyo opened this issue · comments

This is the code in src/browser.dart:

  BrowserVersion get version {
    if (_version == null) {
      var value = _versionMatchers.map((matcher) => matcher())
          // vvvv This is the offending line vvvv
          .firstWhere((match) => match != null)
          .group(1);
      _version = new BrowserVersion(value);
    }
    return _version;
  }

If no match is found, then this simply throws