Context class
Constructors
- Context()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Whether the Wayland socket is still alive.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
adoptProxy(
Proxy proxy, int objectId) → void - Attach a generated proxy to an object created by the compositor.
-
allocateClientId(
) → int -
close(
) → void - Closes the underlying socket and releases native resources.
-
connect(
) → Future< void> -
dispatch(
) → void - Blocks until data is available, then reads and parses all pending messages.
-
dispatchTimeout(
int timeoutMs) → bool -
Reads all available messages, waiting up to
timeoutMsif no data yet. Returns true if any messages were processed. Pass -1 to block forever, 0 to not block at all. -
getProxy(
int id) → Proxy -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
Proxy proxy) → void -
sendMessage(
Uint8List message, [int? fd]) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unRegister(
Proxy proxy) → void -
unRegisterById(
int id) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited