MutableResourceAdapter<T extends TransferObjectBase> class

Inheritance
Implemented types

Constructors

MutableResourceAdapter(RoutePattern routePattern, TransferBean<T> bean, Future<T> _get(ApiRequest request), Future<void> _set(ApiRequest request, T value), Stream<T> _getStream(ApiRequest request))

Properties

bean → TransferBean<T>
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
routePattern → RoutePattern
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(ApiRequest request) → Future<T>
Fetches the value of the resource once.
inherited
getStream(ApiRequest request) → Stream<T>
Subscribes to the resource and emits the value every time it updates.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(ApiRequest request, T value) → Future<void>
Pushes a new value to the resource.
override
toString() → String
A string representation of this object.
inherited

Operators

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