putIfAbsent method

dynamic putIfAbsent(
  1. dynamic key,
  2. dynamic ifAbsent()
)

Implementation

putIfAbsent(key, Function() ifAbsent) {
  return stateData.putIfAbsent(key, ifAbsent);
}