operator - method

Float16 operator -(
  1. dynamic f
)

Subtraction operator for Half or num left operands.

Implementation

Float16 operator -(dynamic f) {
  final d = (f is Float16)
      ? f.toDouble()
      : (f is num)
          ? f.toDouble()
          : 0;
  return Float16(toDouble() - d.toDouble());
}