operator * method
❌ "Multiply" this
BoxShadow by a Color or double.
*(Color operation) => return this.copyWith(color: operation);
*(num operation) => return this.copyWith(blurRadius: blurRadius * operation);
Implementation
BoxShadow operator *(dynamic operation) => (operation is Color)
? copyWith(color: operation)
: (operation is num)
? copyWith(blurRadius: blurRadius * operation)
: this;