This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:async/async.dart'; | |
import 'package:flutter/widgets.dart'; | |
/* | |
This class is a little bit different than the [ValueNotifier] class: | |
- Setting the value ALWAYS notifies listeners, even if the value is the same. | |
- It uses streams over [ValueListenableBuilder]'s setState approach to make it | |
easier to use with other async code. |