dart_notification_center 0.2.0 copy "dart_notification_center: ^0.2.0" to clipboard
dart_notification_center: ^0.2.0 copied to clipboard

outdated

A wrapper for the observer pattern for Dart in the style of the iOS Notification Center.

A lightweight and intuitive observer pattern manager for Dart/Flutter in the style of the iOS Notification Center

License #

Published under a BSD-style license.

Installation #

To use this plugin, add dart_notification_center as a dependency in your pubspec.yaml file.

Import the package using:

import 'package:dart_notification_center/dart_notification_center.dart';

Usage #

A simple example:

...

FlutterNotificationCenter.subscribe(
  channel: 'examples',
  observer: this,
  onNotification: (options) {
    print('Notified: ${options}');
  },
);

FlutterNotificationCenter.post(channel: 'examples', options: 'Congrats you did it!');

FlutterNotificationCenter.unsubscribe(channel: 'examples', observer: this);

...
31
likes
30
pub points
82%
popularity

Publisher

unverified uploader

A wrapper for the observer pattern for Dart in the style of the iOS Notification Center.

Homepage

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on dart_notification_center