HubData class

Inheritance

Constructors

HubData({required String serialNumber, required DataSource dataSource, List<String> generators = const <String>[], List<String> ats = const <String>[], String? firmwareVersion, WifiStatus? wifiStatus, List<WifiNetwork>? wifiNetworks, String? wifiSsid, DateTime? lastConnected, WifiConfigResult? wifiConfigResult, bool? cellularConnected, SignalStrength? cellularStrength, String? cellularIccid, double? remainingDataMb, double? totalDataMb, CellularDataStatus? cellularDataStatus, DateTime? cellularPlanExpiryDate})
const
HubData.none(String serialNumber)
const

Properties

ats List<String>
final
cellularConnected bool?
final
cellularDataStatus CellularDataStatus?
final
cellularIccid String?
final
cellularPlanExpiryDate DateTime?
final
cellularStrength SignalStrength?
final
dataSource DataSource
final
firmwareVersion String?
final
generators List<String>
final
hashCode int
The hash code for this object.
no setterinherited
isOnline bool
no setter
lastConnected DateTime?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
remainingDataMb double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
totalDataMb double?
final
wifiConfigResult WifiConfigResult?
final
wifiNetworks List<WifiNetwork>?
final
wifiSsid String?
final
wifiStatus WifiStatus?
final

Methods

clearCellularPlan({String? cellularIccid}) HubData
copyWith({String? serialNumber, DataSource? dataSource, List<String>? generators, List<String>? ats, String? firmwareVersion, WifiStatus? wifiStatus, List<WifiNetwork>? wifiNetworks, String? wifiSsid, DateTime? lastConnected, WifiConfigResult? wifiConfigResult, bool? cellularConnected, SignalStrength? cellularStrength, String? cellularIccid, double? remainingDataMb, double? totalDataMb, CellularDataStatus? cellularDataStatus, DateTime? cellularPlanExpiryDate}) HubData
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