newInstance method

  1. @override
Map<K, V> newInstance()
override

Constructs a new instance of the default value.

Use isDefaultValue to determine whether something is a default value of this kind.

Implementation

@override
Map<K, V> newInstance() {
  return <K, V>{};
}