SpeedThresholdAlert class
Represents a speed threshold alert
- Inheritance
-
- Object
- WorkoutAlert
- SpeedThresholdAlert
Constructors
- SpeedThresholdAlert({required double threshold, required UnitSpeed unitSpeed, required WorkoutAlertMetric metric})
- Creates a new speed threshold alert
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- metric → WorkoutAlertMetric
-
The metric of the speed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- threshold → double
-
The threshold of the speed
final
- type → WorkoutAlertType
-
The type of the workout alert
finalinherited
- unitSpeed → UnitSpeed
-
The unit of the speed
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the workout alert to a JSON object
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → SpeedThresholdAlert -
Creates a new speed threshold alert from a JSON object
override