GradeSystem class

This class represents a Grading System, ie: VerminScale, FontScale, etc... take a look at the available systems in /lib/grading_systems

Constructors

GradeSystem({required String code, required String name, required String country, required ClimbingStyle climbingStyle, List<Grade> grades = const []})
GradeSystem.fromJson(Map<String, dynamic> data)
Factory to instantiate a GradeSystem from JSON
factory

Properties

climbingStyle ClimbingStyle
The climbing style of this particular system ie: boulder, sport, trad, etc...
final
code String
Short code/abreviation indetifying the grade system ie: FB, VS
final
country String
Country of the system
final
grades List<Grade>
The list of grades for this system
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
isNotEmpty bool
no setter
name String
Full name of the system ie: Font Bouldering Scale
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(String input) GradeCalculatorBuilder
Returns a GradeCalculatorBuilder for this particular GradeSystem for a specified input
findByName(String name) Grade?
Attemps to find a Grade by it's name, otherwise returns null
gradesByBand(GradeBand band) List<Grade>
Returns the grade for a particular GradeBand
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited