MirrorSnapshot class
A point-in-time snapshot of the device's screen mirroring and display state.
Emitted by NoScreenMirror.mirrorStream whenever the state changes.
Constructors
- MirrorSnapshot({required bool isScreenMirrored, required bool isExternalDisplayConnected, required int displayCount, })
- Creates a MirrorSnapshot with the given display state values.
-
MirrorSnapshot.fromMap(Map<
String, dynamic> map) -
Creates a MirrorSnapshot from a platform channel map.
factory
Properties
- displayCount → int
-
The total number of displays detected, including the built-in screen.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isExternalDisplayConnected → bool
-
Whether an external display is connected (e.g. HDMI or USB-C).
final
- isScreenMirrored → bool
-
Whether the screen is being mirrored (e.g. via AirPlay or Miracast).
final
-
Whether the screen is being shared in a video call or recording.
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
-
toMap(
) → Map< String, dynamic> - Converts this snapshot to a map suitable for platform channel serialization.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override