SupportedBrowser class
An annotation used to mark a feature as only being supported by a subset of the browsers that Dart supports by default.
If an API is not annotated with SupportedBrowser then it is assumed to work on all browsers Dart supports.
class SupportedBrowser {
static const String CHROME = "Chrome";
static const String FIREFOX = "Firefox";
static const String IE = "Internet Explorer";
static const String OPERA = "Opera";
static const String SAFARI = "Safari";
/// The name of the browser.
final String browserName;
/// The minimum version of the browser that supports the feature, or null
/// if supported on all versions.
final String minimumVersion;
const SupportedBrowser(this.browserName, [this.minimumVersion]);
}
Static Properties
const String CHROME #
static const String CHROME = "Chrome"
const String FIREFOX #
static const String FIREFOX = "Firefox"
const String IE #
static const String IE = "Internet Explorer"
const String OPERA #
static const String OPERA = "Opera"
const String SAFARI #
static const String SAFARI = "Safari"
Constructors
const SupportedBrowser(String browserName, [String minimumVersion]) #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful
through their identity. An Object instance is equal to itself
only.
docs inherited from Object
const SupportedBrowser(this.browserName, [this.minimumVersion]);