run method
Calls block
only if this dispose scope is not yet disposed. Otherwise,
it's a no-op.
Implementation
Future<void> run(FutureOr<void> Function(DisposeScope scope) block) async {
if (!_disposed) {
await block(this);
}
}
Calls block
only if this dispose scope is not yet disposed. Otherwise,
it's a no-op.
Future<void> run(FutureOr<void> Function(DisposeScope scope) block) async {
if (!_disposed) {
await block(this);
}
}