operator * method

Icon operator *(
  1. dynamic operation
)

❌ "Multiply" an Icon

Icon operator *(dynamic operation)

Returns this Icon if operation does not match a case described below.

  • operator *(dynamic operation)
    • operation is Color => this.copyWith(color = operation)
    • operation is num => this.copyWith(size *= * operation)

Implementation

Icon operator *(dynamic operation) => (operation is Color)
    ? copyWith(color: operation)
    : (operation is num)
        ? copyWith(size: (size ?? 0) * operation)
        : this;