Live2DException class
Error thrown by every command on a Live2DViewController.
All native errors are normalized into this type so callers can branch on a stable code without inspecting raw PlatformExceptions.
Common codes
| Code | Meaning |
|---|---|
VIEW_NOT_ATTACHED |
Method was called before the Live2DView mounted. Await Live2DViewController.whenAttached first. |
VIEW_NOT_FOUND |
The native view was already disposed. |
INVALID_ARGS |
One of the arguments was missing or malformed. |
LOAD_FAILED |
The native side rejected the model (corrupt, missing files, …). |
NATIVE_ERROR |
Generic native failure with a more specific message. |
CONTROLLER_DISPOSED |
The Dart-side controller has already been disposed. |
- Implemented types
Constructors
- Live2DException(String code, String message, {Object? details})
-
Creates an exception with a stable
codeand a human-readablemessage.
Properties
- code → String
-
Stable, machine-readable error code. See the table in the class doc for
the values produced by this plugin.
final
- details → Object?
-
Extra payload forwarded from the platform channel, when applicable.
Usually
null.final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable description, suitable for logging or debugging. Not
localized — do not show directly to end users.
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited