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 defaultKind.isInstance(instance) &&
defaultKind.isDefaultValue(instance);
}