abs method
The absolute value of a Complex number is its distance from zero in the Complex number space (e.g., the absolute value of 0 + 4i = 4). The absolute value is always a real number.
Implementation
@override
Number abs() => value.isInteger
? Integer(value.abs().toInt())
: Double(value.abs().toDouble());