operator - method

Half operator -(
  1. dynamic f
)

Subtraction operator for Half or num left operands.

Implementation

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