isDefaultValue method

  1. @override
bool isDefaultValue(
  1. Object? instance
)
override

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);
}