PowerRangeAlert class

Represents a power range alert

Inheritance

Constructors

PowerRangeAlert({required double lowerBound, required double upperBound, required WorkoutAlertMetric metric})
Creates a new power range alert

Properties

hashCode int
The hash code for this object.
no setterinherited
lowerBound double
The lower bound of the power range
final
metric WorkoutAlertMetric
The metric of the power
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type WorkoutAlertType
The type of the workout alert
finalinherited
upperBound double
The upper bound of the power range
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) PowerRangeAlert
Creates a new power range alert from a JSON object
override