operator * method

SizeUnit operator *(
  1. Object other
)

Multiplies two size units.

Implementation

SizeUnit operator *(Object other) {
  if (other is SizeUnit) {
    return _CalculatedSize(
      this,
      other,
      calculationMultiply,
    );
  }
  if (other is double) {
    return _CalculatedSize(
      this,
      SizeUnit.fixed(other),
      calculationMultiply,
    );
  }
  throw ArgumentError('Cannot multiply SizeUnit by $other');
}