Future versions of this library can be found at chrome.dart
An library for accessing the Chrome APIs in a packaged app or extension.
Add this to your package's pubspec.yaml file:
dependencies:
chrome_gen: any
import 'package:chrome_gen/chrome_app.dart' as chrome_gen;
void main() {
chrome_gen.runtime.getPlatformInfo().then((Map m) {
print(m.toString());
});
}
Also, see the FAQ.
Documentation is available at:
From the project directory, run:
dart tool/gen_apis.dart
This will:
- read
meta/apis.jsonandmeta/overrides.json - parse the cooresponding
idl/*.jsonandidl/*.idlfiles - generate
lib/chrome_app.dart,lib/chrome_ext.dart, andlib/gen/*.dart.
