MultiSelectable<T> class abstract

Selectable methods for returning multiple results.

Useful for refining the return type of a query, while still delegating whether to get or watch results to the consuming code.

/// Retrieve a page of [Todo]s.
MultiSelectable<Todo> pageOfTodos(int page, {int pageSize = 10}) {
  return select(todos)..limit(pageSize, offset: page);
}
pageOfTodos(1).get();
pageOfTodos(1).watch();

See also: SingleSelectable and SingleOrNullSelectable for exposing single value methods.

Implementers

Constructors

MultiSelectable()

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

get() Future<List<T>>
Executes this statement and returns the result.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
watch() Stream<List<T>>
Creates an auto-updating stream of the result that emits new items whenever any table used in this statement changes.

Operators

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