ModelGate class abstract final

Auto-load coordinator shared by every generation verb.

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

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

Static Methods

currentId(ModelCategory category) Future<String?>
Model id currently loaded under category, or null.
ensureLoaded({required String? modelId, required ModelCategory category, LoadOptions? options, bool downloadIfNeeded = true}) Future<void>
Make modelId resident under category, downloading it when absent.
load({required String modelId, required ModelCategory category, LoadOptions? options}) Future<void>
Load modelId under category through commons lifecycle routing.
unload(ModelCategory category) Future<void>
Unload whatever is loaded under category. No-op when nothing is.