update method
Future<void>
update(
- FutureOr<
M> update(- M old
- dynamic onError(
- Object e,
- StackTrace s
- int slowlyMs = 100,
- Object? debounceTag,
- Object? throttleTag,
inherited
执行一个异步操作, 并更新状态 不建议对本方法进行二次包装, 因此返回值强制为 void
Implementation
@visibleForTesting
@protected
@override
Future<void> update(
FutureOr<M> Function(M old) update, {
Function(Object e, StackTrace s)? onError,
int slowlyMs = 100,
Object? debounceTag,
Object? throttleTag,
}) => super.update(
update,
onError: onError,
slowlyMs: slowlyMs,
debounceTag: debounceTag,
throttleTag: throttleTag,
);