Service<Id, Data> class

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

Implementers

Constructors

Service()

Properties

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

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.
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.
update(Id id, Data data, [ Map<String, dynamic> params ]) → Future<Data>
Overwrites a resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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