doDeferred method Null safety

  1. @override
bool doDeferred()
override

Implementation

@override
bool doDeferred() {
  try {
    bool s = super.doDeferred();
    final deferred = model.deferToButtonUp;
    if (deferred != null) {
      deferred();
      s = true;
    }
    return s;
  } finally {
    model.deferToButtonUp = null;
  }
}