identity property
double?
get
identity
The value that changes nothing: 0 to add, 1 to multiply; null to replace.
Implementation
double? get identity => switch (this) {
replace => null,
add => 0,
multiply => 1,
};