pushIfNotExist<T> method

void pushIfNotExist<T>(
  1. String key,
  2. T value
)

Implementation

void pushIfNotExist<T>(String key, T value) {
  final data = _data[key];
  if (data != null) {
    return;
  }

  push<T>(key, value);
}