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
-
dimensionsrepresents the dimensions of the sensor contentgetter/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?
-
maximumrepresents the maximum value of the sensor.getter/setter pairinherited - minimum ↔ double?
-
minimumrepresents 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
-
typerepresents the type of sensor contentgetter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_SensorGridContentInput value)) → TResult -
Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SensorGridContentInput value)?) → TResult? -
Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_SensorGridContentInput value)?, {required TResult orElse()}) → TResult -
Available on SensorGridContentInput, provided by the SensorGridContentInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
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 ofwhenthat fallback to anorElsecallback. -
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
Aswitch-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 ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited