CleanableClient<T extends Object> class
final
A client value paired with cleanup logic.
Constructors
-
CleanableClient({required T value, required FutureOr<
void> cleanup()}) -
Creates a cleanable client wrapper.
const
Properties
Methods
-
dispose(
) → FutureOr< void> - Runs the registered cleanup callback.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited