Screen class Null safety

A screen's basic information.

Constructors

Screen({required String pairingCode, required bool paired, required String name, required String userID, required DateTime lastUpdated, required String screenToken, required double width, required double height})
Screen.fromJson(Map<String, Object?> json)
Named constructor to create Screen from a Map.

Properties

hashCode → int
Returns a hash code based on all the fields of this Screen.
read-only, override
height → double
The logical pixel height of this screen.
final
lastUpdated → DateTime
The last DateTime at which some information of this screen was updated [...]
final
name → String
The name of this screen
final
paired → bool
The pairing status of this screen [...]
final
pairingCode → String
The pairing code used to pair this screen. [...]
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
screenToken → String
The unique identifier for this screen.
final
userID → String
The id of the user has paired this screen
final
width → double
The logical pixel width of this screen.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() → Map<String, Object?>
The current instance as a Map.
toString() → String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) → bool
Equality operator to compare two Screen instances. [...]
override