z_notification 0.0.5 z_notification: ^0.0.5 copied to clipboard
A general package for data communication and interaction in flutter. The method of use is similar to NSNotificationCenter in iOS. It is easy to use, but pay attention to releasing resources.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add z_notification
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
z_notification: ^0.0.5
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:z_notification/z_notification.dart';