chromium 0.0.0 chromium: ^0.0.0 copied to clipboard
Library for help you create extension for web based chromium
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));
}