GetBackGestureDetector<T> class
A widget that detects back gestures for navigating back in a GetX-based application.
This widget detects swipe gestures within the specified gestureWidth to trigger navigation back actions. It allows customization of swipe behavior such as limiting swipe detection to specific areas, initial swipe offset, and enabling/disabling pop gestures.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GetBackGestureDetector
Constructors
-
GetBackGestureDetector({required bool limitedSwipe, required double gestureWidth, required double initialOffset, required ValueGetter<
bool> popGestureEnable, required ValueGetter<GetBackGestureController< onStartPopGesture, required Widget child, Key? key})T> > -
Constructs a GetBackGestureDetector widget.
const
Properties
- child → Widget
-
The child widget to which the back gesture detector is applied.
final
- gestureWidth → double
-
The width of the gesture area where back gestures are detected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialOffset → double
-
The initial offset for swipe gestures.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- limitedSwipe → bool
-
Indicates whether swipe detection is limited to a specific area.
final
-
onStartPopGesture
→ ValueGetter<
GetBackGestureController< T> > -
A callback function triggered when a pop gesture is started.
final
-
popGestureEnable
→ ValueGetter<
bool> -
A callback function to determine whether pop gestures are enabled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → GetBackGestureDetectorState< T> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited