DifficultyRange class

Defines a range of difficulty, it has a min difficulty and a max difficulty. Each Grade must define one to be able to convert from one grading system to another

Constructors

DifficultyRange({required double min, required double max})
DifficultyRange.fromJson(Map<String, dynamic> data)
Factory to instantiate a DifficultyRange from JSON
factory
DifficultyRange.single(double min)

Properties

hashCode int
The hash code for this object.
no setterinherited
max double
final
min double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

inRangeOf(DifficultyRange b) bool
Checks if a DifficultyRange is in range of this DifficultyRange
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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