dart_notification_center

Creator: coderz1093

Last updated:

Add to Cart

Description:

dart notification center

A lightweight and intuitive observer pattern manager for Dart/Flutter in the style of the iOS Notification Center
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';
copied to clipboard
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);

...
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.