simple_flag_toggle 0.0.2
simple_flag_toggle: ^0.0.2 copied to clipboard
A library to help you toggle between flags and use a callback function onChanged.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add simple_flag_toggleThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
simple_flag_toggle: ^0.0.2Alternatively, 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:simple_flag_toggle/simple_flag_toggle.dart';