MapNotifier<T, V> constructor

MapNotifier<T, V>({
  1. Map<T, V>? data,
  2. bool notifyIfEqual = false,
  3. bool customEquality(
    1. Map<T, V> x,
    2. Map<T, V> y
    )?,
})

Implementation

MapNotifier(
    {Map<T, V>? data,
    bool notifyIfEqual = false,
    bool Function(Map<T, V> x, Map<T, V> y)? customEquality})
    : _notifyIfEqual = notifyIfEqual,
      customEquality = customEquality ??
          ((Map<T, V> map1, Map<T, V> map2) {

            return isEqual(map1, map2);
          }),
      super(data ?? {});