Display class

A display as 0.2.x described it, in logical pixels.

The native API's Display (from package:screen_retriever/screen_retriever.dart) reads its values live and has more of them: position, orientation, refresh rate, bit depth and whether it is the primary display.

Annotations

Constructors

Display({required String id, String? name, required Size size, Offset? visiblePosition, Size? visibleSize, num? scaleFactor})
const
Display.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
The native display ID, as text.
final
name → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleFactor → num?
final
size → Size
final
visiblePosition → Offset?
Where the work area starts: the display minus the menu bar, the taskbar or the panels.
final
visibleSize → Size?
The size of the work area.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited