public WillPopScope( Key key = null, Widget child = null, WillPopCallback onWillPop = null ) : base(key: key) { D.assert(child != null); this.onWillPop = onWillPop; this.child = child; }
public Form( Key key = null, Widget child = null, bool autovalidate = false, WillPopCallback onWillPop = null, VoidCallback onChanged = null ) : base(key: key) { D.assert(child != null); this.child = child; this.autovalidate = autovalidate; this.onWillPop = onWillPop; this.onChanged = onChanged; }
public void removeScopedWillPopCallback(WillPopCallback callback) { D.assert(this._scopeKey.currentState != null, "Tried to remove a willPop callback from a route that is not currently in the tree."); this._willPopCallbacks.Remove(callback); }
public void addScopedWillPopCallback(WillPopCallback callback) { D.assert(this._scopeKey.currentState != null, "Tried to add a willPop callback to a route that is not currently in the tree."); this._willPopCallbacks.Add(callback); }