ReactiveResource mixin

A mixin that handles resource disposing with only Sink and Stream public interface.

ReactiveResource is designed as mixin, avoiding inheritance deliberately, so that a subclass can freely inherit from other class as necessary.

Mixin Applications

Properties

dispose → VoidSink
A VoidSink to dispose of the resources.
read-only
disposed Stream<void>
A stream to notify the resource has been disposed of.
read-only
disposer → ResourceDisposer
A subject of disposing the resources.
@protected, read-only
isDisposeEventSent bool
Check whether an event data has been added to dispose sink once.
@protected, read-only
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

delegateDisposingTo(ResourceDisposer disposerDelegate) → void
Delegates its dispose call to disposerDelegate.
doDispose() Future<void>
Dispose its own resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onDispose() → void
A synchronous callback on adding event data to dispose.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited