XScreenSourcesException class

Thrown by XScreenSourcesBackend when a call cannot be served.

code is one of unsupported, permission_denied, enumeration_failed, thumbnail_failed, service_start_failed, or the Dart-owned invalid_response — a native reply that does not match the wire contract, whose message names the offending field.

Implemented types

Constructors

XScreenSourcesException(String code, [String? message])
Creates an exception with a wire code and an optional message.
const

Properties

code → String
Machine-readable failure kind.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String?
Platform-supplied detail, when there is one.
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