DeviceUnavailableException class final

A device that would not open: a browser without WebGL2 or WebGPU, a GPU the browser has blocklisted, or every backend a DeviceRegistry holds refusing in turn.

Inheritance

Constructors

DeviceUnavailableException(String message, {String? backend, List<String> refusals = const <String>[], Object? cause})
Creates the refusal with message, naming backend when one backend refused and listing a registry's refusals when several did.
const

Properties

backend → String?
The backend that would not open; null when the refusal is a registry's, which tried several.
final
cause → Object?
What was thrown underneath, when this one wraps it; null otherwise.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
What went wrong, as a sentence that names the thing it went wrong with.
final
refusals → List<String>
What each backend a registry tried said, in the order it tried them — empty for a single backend's refusal, and for a registry nothing was added to.
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