modify method
T?
modify({
- T? old,
Resolves this modifier against an existing old value.
- If this is Modifier.nullable, returns
null. - If value is non-null, returns it.
- Otherwise returns
old.
Implementation
T? modify({T? old}) {
if (isNull) return null;
return value ?? old;
}