DefaultMap<K, V> constructor

DefaultMap<K, V>([
  1. V ifAbsent()?
])

ifAbsent Function to generate a default value. You have to specify this unless V is included below. int, double, String, bool, List<int>, List<double>, List<String>, List<bool>, Map<int, int>, Map<int, double>, Map<int, String>, Map<int, bool>, Map<String, int>, Map<String, double>, Map<String, String>, Map<String, bool>

Implementation

DefaultMap([V Function()? ifAbsent]) {
  if (ifAbsent == null) {
    _ifAbsent = _generateIfAbsent();
  } else {
    _ifAbsent = ifAbsent;
  }
}