evaluateSerialized method
Similar to evaluate
, except other
should be the
serialized value of a field on the model.
This should be used to support comparisons with models
that were generated prior to toMap()
being added.
Implementation
@override
bool evaluateSerialized(T? other) {
if (other == null) {
return false;
}
dynamic serializedValue = serializeDynamicValue(value);
return other.compareTo(serializedValue) > 0;
}