ReadMixin<T> mixin

Adds getById to a data contract.

Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getById(String id, RequestDetails details) Future<ReadResult<T>>
Loads the instance of T whose primary key is id.
getByIds(Set<String> ids, RequestDetails details) Future<ReadListResult<T>>
Loads all instances of T whose primary key is in the set ids.
getItems(RequestDetails details) Future<ReadListResult<T>>
Loads all instances of T that satisfy any filtes or pagination on details.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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