flutter_debouncing_controllers 0.0.2 copy "flutter_debouncing_controllers: ^0.0.2" to clipboard
flutter_debouncing_controllers: ^0.0.2 copied to clipboard

Debouncing variants of flutter controllers.

flutter_debouncing_controllers #

Debouncing variants of flutter controllers.

Controllers that are intended to be drop-in replacements:

/// before:
final textController = TextController()
  ..addListener(_onTextChange);

/// after:
final textController = DebouncingTextController()
  ..addListener(_onTextChange);
/// before:
final searchController = SearchController()
  ..addListener(_onSearchChange);

/// after:
final searchController = DebouncingSearchController()
  ..addListener(_onSearchChange);

Simple change notifier:

final debouncingNotifier = DebouncingChangeNotifier()
  ..addListener(_onChange);

/// [_onChange] is called only once.
debouncingNotifier.change();
debouncingNotifier.change();
debouncingNotifier.change();
6
likes
0
points
299
downloads

Publisher

verified publisheroquad.ru

Weekly Downloads

Debouncing variants of flutter controllers.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_debouncing_controllers