isDefaultValue method
Determines whether the argument is a default value of this kind.
You can construct a default value with newInstance.
Implementation
@override
bool isDefaultValue(Object? instance) {
return instance is double && 0.0 == instance && !instance.isNaN;
}