GradeCalculator class
This class allows you to create calculators/converters between 2 different grading systems.
Usage
final vToFont = GradeCalculator(
systemA: verminGradeSystem,
systemB: fontGradeSystem,
);
vToFont.atob(
vScale.findByName('V3')
);
Constructors
- GradeCalculator({required GradeSystem systemA, required GradeSystem systemB})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemA → GradeSystem
-
final
- systemB → GradeSystem
-
final
Methods
-
atob(
Grade? a) → List< Grade> - Convert from GradeSystem A to GradeSystem B
-
btoa(
Grade? b) → List< Grade> - Convert from GradeSystem B to GradeSystem A
-
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
Static Methods
-
convert(
Grade? grade, GradeSystem system) → List< Grade> - Convert a grade to a GradeSystem
-
getClosest(
List< Grade> grades, DifficultyRange range) → Grade? -
Get's the closest grade for a specific DifficultyRange from the supplied
grades
list.