Service<Id, Data> class abstract

Queries a service on an Angel server, with the same API.

Implementers

Constructors

Service()

Properties

app Angel
The Angel instance powering this service.
no setter
hashCode int
The hash code for this object.
no setterinherited
onCreated Stream<Data>
Fired on created events.
no setter
onIndexed Stream<List<Data>>
Fired on indexed events.
no setter
onModified Stream<Data>
Fired on modified events.
no setter
onRead Stream<Data>
Fired on read events.
no setter
onRemoved Stream<Data>
Fired on removed events.
no setter
onUpdated Stream<Data>
Fired on updated events.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future
create(Data data, [Map<String, dynamic>? params]) Future<Data>
Creates a resource.
index([Map<String, dynamic>? params]) Future<List<Data>?>
Retrieves all resources.
map<U>(U encoder(Data), Data decoder(U)) Service<Id, U>
Creates a Service that wraps over this one, and maps input and output using two converter functions.
modify(Id id, Data data, [Map<String, dynamic>? params]) Future<Data>
Modifies a resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(Id id, [Map<String, dynamic>? params]) Future<Data>
Retrieves the desired resource.
remove(Id id, [Map<String, dynamic>? params]) Future<Data>
Removes the given resource.
toString() String
A string representation of this object.
inherited
update(Id id, Data data, [Map<String, dynamic>? params]) Future<Data>
Overwrites a resource.

Operators

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