updateAsync method

  1. @protected
Future<void> updateAsync(
  1. Future<T> value()
)

updates the async value while cancelling previous

Implementation

@protected
Future<void> updateAsync(Future<T> Function() value) async {
  await _cancelAndNotify();
  await _updateAsync(value());
}