BackHandler class

Constructors

BackHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkDoubleBackExit(BuildContext context, Duration timeout, String? message) Future<bool>
Double back exit logic
handleBackPress({required BuildContext context, required int currentIndex, required List<NavBarScreenModel> pages, Future<bool> globalOnWillPop()?, bool switchToFirstTabOnBack = true, bool doubleBackToExit = false, Duration exitTimeout = const Duration(seconds: 2), String? exitMessage}) Future<bool>
Main back handler for BottomNavScaffold