Unverified Commit 10f46489 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Add docs to Route.maintainState (#130638)

Fixes https://github.com/flutter/flutter/issues/44836
parent 910e87eb
......@@ -1432,11 +1432,20 @@ abstract class ModalRoute<T> extends TransitionRoute<T> with LocalHistoryRoute<T
/// pops. If this is not necessary, this can be set to false to allow the
/// framework to entirely discard the route's widget hierarchy when it is not
/// visible.
///
/// Setting [maintainState] to false does not guarantee that the route will be
/// discarded. For instance, it will not be descarded if it is still visible
/// because the next above it is not opaque (e.g. it is a popup dialog).
/// {@endtemplate}
///
/// If this getter would ever start returning a different value, the
/// [changedInternalState] should be invoked so that the change can take
/// effect.
///
/// See also:
///
/// * [OverlayEntry.maintainState], which is the underlying implementation
/// of this property.
bool get maintainState;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment