chromium 0.0.0 copy "chromium: ^0.0.0" to clipboard
chromium: ^0.0.0 copied to clipboard

Library for help you create extension for web based chromium

example/example.dart

import 'package:chromium/dart/alarms.dart';
import 'package:chromium/dart/power.dart';
import 'package:chromium/dart/storage.dart';

void main() async {
  // Use the chrome.power API
  chrome.power.requestKeepAwake(Level.display);

  // Use the chrome.storage API
  await chrome.storage.local.set({'mykey': 'value'});
  var values = await chrome.storage.local.get(null /* all */);
  print(values['mykey']);

  // Use the chrome.alarms API
  await chrome.alarms.create('MyAlarm', AlarmCreateInfo(delayInMinutes: 2));
}
0
likes
140
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

Library for help you create extension for web based chromium

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

general_lib, path

More

Packages that depend on chromium