A package that implements the Notification API. Somewhat of an
experiment in making new/experimental APIs available as packages,
rather than having everything in dart:html
.
A simple usage example:
import 'dart:html' hide Notification;
import 'package:notification/notification.dart';
main() async {
if (!Notification.supported) return;
await Notification.requestPermission();
new Notification("Hello world", body: "Have a nice day!");
}
Please file feature requests and bugs at the issue tracker.