Nav<T extends StatefulWidget> mixin
- Superclass constraints
- Mixin applications
-
Static Methods
-
canPop({BuildContext? context})
→ Future<bool>
-
Check if can pop
-
clearAll({BuildContext? context})
→ void
-
-
clearAllAndPush<T>(Widget? screen, {BuildContext? context, NavAni navAni = NavAni.Fade, int durationMs = defaultDurationMs})
→ Future<T?>
-
Clear All screen on navigator state and push the new one.
-
getPushRightRoute<T>(Widget screen, {bool prohibitSwipeBack = false, BuildContext? context, int durationMs = Nav.defaultDurationMs})
→ Route<T>
-
-
initialize(NavSetting navSetting)
→ void
-
-
isCancel(dynamic result)
→ bool
-
Check result is cancel
-
isDeleted(dynamic result)
→ bool
-
Check result is deleted
-
isFail(dynamic result)
→ bool
-
Check result is fail
-
isRefresh(dynamic result)
→ bool
-
Check result is refresh
-
isSuccess(dynamic result)
→ bool
-
Check result is success
-
navigatorState(BuildContext? context)
→ NavigatorState?
-
Get navigator state
-
pop<T>(BuildContext context, {T? result})
→ void
-
pop screen with result
-
popResultCancel(BuildContext context)
→ void
-
simple pop with cancel result
-
popResultDelete(BuildContext context)
→ void
-
simple pop with delete result
-
popResultFail(BuildContext context)
→ void
-
simple pop with fail result
-
popResultRefresh(BuildContext context)
→ void
-
simple pop with refresh result
-
popResultSuccess(BuildContext context)
→ void
-
simple pop with success result
-
push<T>(Widget? screen, {NavAni navAni = NavAni.Right, BuildContext? context, int durationMs = defaultDurationMs})
→ Future<T?>
-
Push screen with NavAni param
-
pushFromBottom<T>(Widget screen, {BuildContext? context})
→ Future<T?>
-
Push screen from bottom to top
-
pushFromLeft<T>(Widget? screen, {BuildContext? context})
→ Future<T?>
-
Push screen from left to right
-
pushFromRight<T>(Widget? screen, {bool prohibitSwipeBack = false, BuildContext? context})
→ Future<T?>
-
Push screen from right to left
-
pushFromTop<T>(Widget screen, {BuildContext? context})
→ Future<T?>
-
Push screen from top to bottom
-
pushReplacement<T, TO extends Object>(Widget? screen, {BuildContext? context, NavAni navAni = NavAni.Fade, TO? result, int durationMs = defaultDurationMs})
→ Future<T?>
-
Push Replacement screen
-
pushResult<Result>(NavScreen<Result> screen, {NavAni navAni = NavAni.Right, BuildContext? context, int durationMs = defaultDurationMs})
→ Future<Result?>
-
-
pushWithRippleEffect<T>(Widget? screen, {BuildContext? context, AlignmentGeometry? alignment, Offset offset = const Offset(0, 0), int durationMs = Nav.defaultDurationMs})
→ Future<T?>
-
Push screen with Ripple Effect (Default: bottomRight to topLeft, You can change the alignment and offset)