removeKey static method

void removeKey(
  1. GlobalKey<State<StatefulWidget>> key, {
  2. bool isNegative = false,
})

Removes a global key from the list of keys.

Implementation

static void removeKey(GlobalKey key, {bool isNegative = false}) {
  if (isNegative) {
    _negativeRegionKeys.remove(key);
  } else {
    _positiveRegionKeys.remove(key);
  }
}