Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 643 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 643 Bytes

notification

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.

Usage

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!");
}

Features and bugs

Please file feature requests and bugs at the issue tracker.