XScreenSource class final
One capturable surface — a display or a window — with the preview the picker draws for it.
Constructors
- XScreenSource({required String id, required XScreenSourceKind kind, required String title, required int sourceWidth, required int sourceHeight, required Uint8List? thumbnailPng, String? applicationName})
-
Creates a source description.
const
Properties
- applicationName → String?
-
Application owning a window source, when the platform names one.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Identifier of the surface, in the same namespace the capture stack
enumerates: selection hands this value straight back to it.
final
- kind → XScreenSourceKind
-
Whether id names a display or a window.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceHeight → int
-
Height of the surface itself in pixels — not of thumbnailPng.
final
- sourceWidth → int
-
Width of the surface itself in pixels — not of thumbnailPng.
final
- thumbnailPng → Uint8List?
-
PNG preview of the surface, or
nullwhen this one source failed to render while others succeeded.final - title → String
-
Label to show: the display's name, or the window's title.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited