equalsValue method
bool
equalsValue(
- StockAdditionalFields value,
- Object? other, [
- MapperContainer? container
inherited
Implementation
bool equalsValue(T value, Object? other, [MapperContainer? container]) {
if (identical(value, other)) {
return true;
}
try {
if (!isFor(other)) return false;
var context = MappingContext(
container: container,
args: () => value.runtimeType.args
.map((t) => t == UnresolvedType ? dynamic : t)
.toList(),
);
return equals(value, other as T, context);
} catch (e, stacktrace) {
Error.throwWithStackTrace(
MapperException.chain(MapperMethod.equals, '[$value]', e),
stacktrace,
);
}
}