BrowserTextModel class

The browser's local text model for the playground: planned on sight, loaded on click, one ORT build per worker.

Constructors

BrowserTextModel({dynamic createEngine()?})

Properties

backend ↔ dynamic
getter/setter pair
bytes ↔ int
getter/setter pair
errorCode ↔ String?
getter/setter pair
errorMessage ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
loaded → bool
no setter
plan ↔ dynamic
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ BrowserModelState
getter/setter pair
total ↔ int
getter/setter pair

Methods

cancel() → void
dispose() → void
ensurePlanned() → Future<void>
Asks for the model's size and build once; only the two manifests are read.
generate(List messages, dynamic options) → Stream
load() → Future<void>
Fetches, checks and opens the model; a failed load may be retried.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBackend(dynamic next) → void
Another build needs a worker of its own, so the loaded model goes and the next one is planned.
toString() → String
A string representation of this object.
inherited

Operators

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