ElementResourceRestClient<T extends TransferObjectBase> class

Inheritance

Constructors

ElementResourceRestClient(RestClient client, RoutePattern routePattern, TransferBean<T> bean, {Map<String, String> defaultParams = const {}, Map<String, List<String>> defaultQuery = const {}})

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<String>> query = const {}}) Future<T>
Fetches the value of the resource once.
inherited
getStream({Map<String, String> params = const {}, Map<String, List<String>> query = const {}}) 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
reconnectAll() Future<void>
Forces all stream controllers to reconnect.
inherited
toString() String
A string representation of this object.
inherited

Operators

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