event_object 1.2.1
event_object: ^1.2.1 copied to clipboard
This package will help you to create and manage events, by creating event objects that fires with payload.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add event_object
With Flutter:
$ flutter pub add event_object
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
event_object: ^1.2.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:event_object/event_object.dart';