toDouble method
Implementation
double toDouble() {
if (this is Numeral) {
return (this as Numeral).toDouble();
} else {
throw ArgumentError('cant be converted to double: $this');
}
}
double toDouble() {
if (this is Numeral) {
return (this as Numeral).toDouble();
} else {
throw ArgumentError('cant be converted to double: $this');
}
}