SensorGridContentInput class abstract

Available extensions
Annotations
  • @unfreezed

Constructors

SensorGridContentInput({String? sensorId, @Default.new(true) bool maskEnabled, required GridDimensionInput dimensions, @JsonKey.new(unknownEnumValue: SensorGridItemType.plain) @Default.new(SensorGridItemType.plain) SensorGridItemType type, double? minimum, double? maximum})
factory
SensorGridContentInput.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $SensorGridContentInputCopyWith<SensorGridContentInput>
Create a copy of SensorGridContentInput with the given fields replaced by the non-null parameter values.
no setterinherited
dimensions GridDimensionInput
dimensions represents the dimensions of the sensor content
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
maskEnabled bool
Indicates if the sensor content has enabled the mask
getter/setter pairinherited
maximum double?
maximum represents the maximum value of the sensor.
getter/setter pairinherited
minimum double?
minimum represents the minimum value of the sensor.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensorId String?
Represents the sensor ID
getter/setter pairinherited
type SensorGridItemType
type represents the type of sensor content
getter/setter pairinherited

Methods

map<TResult extends Object?>(TResult $default(_SensorGridContentInput value)) → TResult

Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_SensorGridContentInput value)?) → TResult?

Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_SensorGridContentInput value)?, {required TResult orElse()}) → TResult

Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? sensorId, bool maskEnabled, GridDimensionInput dimensions, SensorGridItemType type, double? minimum, double? maximum)?, {required TResult orElse()}) → TResult

Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this SensorGridContentInput to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? sensorId, bool maskEnabled, GridDimensionInput dimensions, SensorGridItemType type, double? minimum, double? maximum)) → TResult

Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? sensorId, bool maskEnabled, GridDimensionInput dimensions, SensorGridItemType type, double? minimum, double? maximum)?) → TResult?

Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension

A variant of when that fallback to returning null

Operators

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