DVOfflineReplay class
Applies a batch of replayed mutations to the models that declared they work offline, and to no others.
Constructors
-
DVOfflineReplay(Map<
String, DVOfflineRemote> remotes) -
const
-
DVOfflineReplay.forSpecs(List<
DVStudioModelSpec> specs, {required DVDatabaseAdapter database, Map<String, Object? Function(Map< resources = const <String, Object? Function(Map<String, Object?>)>{}})String, Object?> values)> -
The registry the generated backend builds, from the specs it already
has for Studio.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
remotes
→ Map<
String, DVOfflineRemote> -
By model name, as the generator wrote it. A name that is not a key here
is a model nobody declared offline, and is refused: a registry that fell
back to looking the table up would be an arbitrary-table write
primitive reachable by anybody with a session.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handle(
Object? body) → Future< DVOfflineReplayResult> -
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
Constants
- maxMutations → const int
- The most mutations one request may carry.
- path → const String
- The route the generated backend serves this on, under the API base path.