DeviceLoss class final
Why a device stopped working — GraphicsDevice.lost.
- Annotations
-
- @immutable
Constructors
- DeviceLoss({required DeviceLossReason reason, String message = '', bool isRecoverable = false, bool restored = false})
-
A loss for
reason, as the backend described it inmessage.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRecoverable → bool
-
Whether the same device can come back: a WebGL context the browser may
restore. A WebGPU device lost is not; a new one has to be opened.
final
- message → String
-
The backend's own words, for a log.
final
- reason → DeviceLossReason
-
What happened.
final
- restored → bool
-
True on the event that says a recoverable loss is over: the context is
back, and every resource has to be made again.
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