Distance constructor
Distance(
- String? code
Implementation
Distance(String? code) : super(null) {
code ??= '////';
if (code == '9999') {
_isMaximum = true;
code = '10000';
}
final distance = double.tryParse(code);
_value = distance;
}