evaluateSerialized method

  1. @override
bool evaluateSerialized(
  1. T? other
)
override

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;
  }
  final serializedValue = serializeDynamicValue(value);
  return other.compareTo(serializedValue) > 0;
}