operator + method
➕ "Add" to this IconToo
IconToo operator +(dynamic inflation)
Returns this
IconToo if operation
does not match a case
described below, otherwise copyWith size incremented by inflation
.
➕ operator +(dynamic
inflation
)
- ❓
inflation
is
num ➡sizeX += inflation
&sizeY += inflation
- ❓
inflation
is List<num>
(length==2) ➡sizeX += inflation[0]
&sizeY += inflation[1]
Implementation
IconToo operator +(dynamic inflation) => (inflation is num)
? copyWith(
sizeX: (sizeX ?? 0.0) + inflation, sizeY: (sizeY ?? 0.0) + inflation)
: (inflation is List<num>)
? (inflation.length == 2)
? copyWith(
sizeX: (sizeX ?? 0.0) + inflation[0],
sizeY: (sizeY ?? 0.0) + inflation[1],
)
: this
: this;