NoActiveModelError class

Thrown when a model is asked for and none is installed and active: the app has to install one first (FlutterEdgeAi.installModel() or installEmbedder()).

A StateError, so code catching that still catches this. The type is what lets a caller tell "nothing installed yet", which can pass, from a model that is installed and cannot run — no engine registered for it, say — which cannot until the app changes.

Inheritance

Constructors

NoActiveModelError(String message)

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The stack trace at the point where this error was first thrown.
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