HttpResource<T> class

Explicit refresh for reads. Superseded results can never replace current state.

Constructors

HttpResource(Future<T> load(CancellationToken token))

Properties

changes → Stream<ResourceState<T>>
no setter
hashCode → int
The hash code for this object.
no setterinherited
load → Future<T> Function(CancellationToken token)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → ResourceState<T>
no setter

Methods

dispose() → Future<void>
Cancels current loading and closes state notifications idempotently.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() → Future<void>
Cancels the previous load and publishes only this generation's result.
toString() → String
A string representation of this object.
inherited

Operators

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