GradeScaleLevel class
One level of a GradeScale.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false)
Constructors
- GradeScaleLevel({required int level, required String startGrade, required int startNumeric, String? color})
- Creates a new GradeScaleLevel instance
-
GradeScaleLevel.fromJson(Map<
String, dynamic> json) -
Creates a GradeScaleLevel from JSON
factory
Properties
- color → String?
-
Optional colour of the level, as a name or a hex value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → int
-
Level number, from 1 (easiest).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startGrade → String
-
The grade where the level starts: a Font grade for a boulder scale,
a French grade for a route scale.
final
- startNumeric → int
-
The value of startGrade on the difficulty axis.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this GradeScaleLevel to JSON
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited