HeartRateZoneAlert class
Represents a heart rate zone alert
- Inheritance
-
- Object
- WorkoutAlert
- HeartRateZoneAlert
Constructors
- HeartRateZoneAlert({required int zone})
- Creates a new heart rate zone alert
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → WorkoutAlertType
-
The type of the workout alert
finalinherited
- zone → int
-
The zone of the heart rate
min zone is 1, max zone is 5
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) → HeartRateZoneAlert -
Creates a new heart rate zone alert from a JSON object
override