Skip to content

Setup

This package is available on pub.dev. or from the command line:

Terminal window
$ flutter pub add state_watcher

In the pubspec.yaml file of your flutter project, add the following dependency:

dependencies:
state_watcher: <latest_version>

In your library add the following import:

import 'package:state_watcher/state_watcher.dart';