ChromeTypes class
class ChromeTypes extends ChromeApi { static final JsObject _types = chrome['types']; ChromeTypes._(); bool get available => _types != null; void _throwNotAvailable() { throw new UnsupportedError("'chrome.types' is not available"); } }
Extends
ChromeApi > ChromeTypes
Properties
final bool available #
Returns true if the API is available. The common causes of an API not being avilable are:
- a permission is missing in the application's manifest.json file
- the API is defined on a newer version of Chrome then the current runtime
docs inherited from ChromeApi
bool get available => _types != null;