debugUnlockDelegate method

  1. @override
bool debugUnlockDelegate(
  1. BuildContext context
)
override

Releases the debug lock previously acquired for context.

Implementation

@override
bool debugUnlockDelegate(BuildContext context) {
  assert(() {
    if (_lockedContext != null && _lockedContext != context) {
      return false;
    }
    _lockedContext = null;
    return true;
  }());
  return true;
}