conditional_trigger 0.5.1+1 conditional_trigger: ^0.5.1+1 copied to clipboard
Make it easier for you to set the conditions (such as min days or min calls) for specific method or widget.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add conditional_trigger
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
conditional_trigger: ^0.5.1+1
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:conditional_trigger/conditional_trigger.dart';