MutableElementResourceRestClient<T extends TransferObjectBase> class
- Inheritance
-
- Object
- Resource<
T> - ElementResource<
T> - ElementResourceClient<
T> - MutableElementResourceClient<
T> - MutableElementResourceRestClient
Constructors
-
MutableElementResourceRestClient(RestClient client, RoutePattern routePattern, TransferBean<
T> bean, {Map<String, String> defaultParams = const {}, Map<String, List< defaultQuery = const {}})String> >
Properties
-
bean
→ TransferBean<
T> -
finalinherited
- client → RestClient
-
final
-
defaultParams
→ Map<
String, String> -
final
-
defaultQuery
→ Map<
String, List< String> > -
final
- 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
-
closeAll(
) → Future< void> -
Closes all stream controllers.
inherited
-
get(
{Map< String, String> params = const {}, Map<String, List< query = const {}}) → Future<String> >T> -
Fetches the value of the resource once.
inherited
-
getStream(
{Map< String, String> params = const {}, Map<String, List< query = const {}}) → Stream<String> >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
-
reconnectAll(
) → Future< void> -
Forces all stream controllers to reconnect.
inherited
-
set(
T value, {Map< String, String> params = const {}, Map<String, List< query = const {}}) → Future<String> >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