discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

WebModelSourceResolver.forActiveModel constructor

WebModelSourceResolver.forActiveModel()

Builds a resolver backed by a fresh WebModelManager, which rehydrates the active model from persisted prefs. Lets an engine package construct the resolver without a FlutterGemmaWeb instance.

Implementation

factory WebModelSourceResolver.forActiveModel() =>
    WebModelSourceResolver(WebModelManager());