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 List<E> && instance.isEmpty;
}