operator * method

SpacingUnit operator *(
  1. Object other
)

Multiplies two spacing units.

Implementation

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