DisposeGuard mixin
Mixin providing the disposed flag, the idempotent marker, and the post-dispose StateError check shared by every StorageBackend.
- Mixin applications
Properties
- disposeLabel → String
-
Short class name used in the post-dispose error, e.g.
'FileSystemBackend'.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
True once markDisposed has run.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkNotDisposed(
) → void - Throws StateError when this object has been disposed. Call as the first statement of every public method.
-
markDisposed(
) → void - Record disposal. Idempotent.
-
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