pub enum TraversalEdgeBehavior {
ClosedLoop,
LeaveFlutterView,
ParentScope,
Stop,
}Expand description
Controls the transfer of focus beyond the first and the last items of a
FocusScopeNode.
This enumeration only controls the traversal behavior performed by
FocusTraversalPolicy. Other methods of focus transfer, such as direct calls to
AnyFocusNode::request_focus and AnyFocusNode::unfocus, are not affected by this
enumeration.
Dart declares this in focus_traversal.dart; it lives here, where FocusScopeNode reads
it.
Variants§
ClosedLoop
Keeps the focus among the items of the focus scope.
Transfer focus to the edge node in the opposite direction of FocusScopeNode as the
edge node continues to move, thus forming a closed loop of focusable items.
LeaveFlutterView
Allows the focus to leave the FlutterView.
Requesting next focus after the last focusable item or previous to the first item will unfocus any focused nodes.
ParentScope
Allows focus to traverse up to parent scope.
When reaching the edge of the current scope, requesting the next focus will look up to the parent scope of the current scope and focus the focus node next to the current scope.
If there is no parent scope above the current scope, fallback to
ClosedLoop behavior.
Stop
Stops the focus traversal at the edge of the focus scope.
Keeps the focus in its current position when it reaches the edge of a focus scope.
Trait Implementations§
Source§impl Clone for TraversalEdgeBehavior
impl Clone for TraversalEdgeBehavior
impl Copy for TraversalEdgeBehavior
Source§impl Debug for TraversalEdgeBehavior
impl Debug for TraversalEdgeBehavior
Source§impl Default for TraversalEdgeBehavior
impl Default for TraversalEdgeBehavior
Source§impl Display for TraversalEdgeBehavior
Dart’s enum toString, which a scope node’s dump prints: the type and the case.
impl Display for TraversalEdgeBehavior
Dart’s enum toString, which a scope node’s dump prints: the type and the case.
impl Eq for TraversalEdgeBehavior
Source§impl PartialEq for TraversalEdgeBehavior
impl PartialEq for TraversalEdgeBehavior
impl StructuralPartialEq for TraversalEdgeBehavior
Auto Trait Implementations§
impl Forget for TraversalEdgeBehavior
impl Freeze for TraversalEdgeBehavior
impl Move for TraversalEdgeBehavior
impl RefUnwindSafe for TraversalEdgeBehavior
impl Send for TraversalEdgeBehavior
impl Sync for TraversalEdgeBehavior
impl Unpin for TraversalEdgeBehavior
impl UnsafeUnpin for TraversalEdgeBehavior
impl UnwindSafe for TraversalEdgeBehavior
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.