ZapInterface class abstract

Available extensions

Constructors

ZapInterface()

Properties

bottomBarHeight double

Available on ZapInterface, provided by the Tools extension

Returns the height of the device's bottom navigation bar.
no setter
context BuildContext

Available on ZapInterface, provided by the Tools extension

Returns the current BuildContext using the navigator key.
no setter
currentTheme ThemeData

Available on ZapInterface, provided by the Tools extension

Returns the current ThemeData of the app.
no setter
deviceOrientation Orientation

Available on ZapInterface, provided by the Tools extension

no setter
hashCode int
The hash code for this object.
no setterinherited
height double

Available on ZapInterface, provided by the Tools extension

Returns the height of the device screen.
no setter
isAccessibilityEnabled bool

Available on ZapInterface, provided by the Tools extension

Returns whether the device has accessibility features enabled.
no setter
isDarkMode bool

Available on ZapInterface, provided by the Tools extension

Indicates whether the app is currently in dark mode.
no setter
locale Locale?

Available on ZapInterface, provided by the Tools extension

Returns the current locale of the app.
no setter
pixelDensity double

Available on ZapInterface, provided by the Tools extension

Returns the device pixel density.
no setter
platform TargetPlatform

Available on ZapInterface, provided by the Tools extension

Returns the current platform of the device (iOS, Android, etc.).
no setter
platformVersion String

Available on ZapInterface, provided by the Tools extension

Returns the version of the operating system on the device.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeAreaHeight double

Available on ZapInterface, provided by the Tools extension

Returns the height of the device's safe area.
no setter
safeAreaWidth double

Available on ZapInterface, provided by the Tools extension

Returns the width of the device's safe area.
no setter
statusBarHeight double

Available on ZapInterface, provided by the Tools extension

Returns the height of the device's status bar.
no setter
systemInsets EdgeInsets

Available on ZapInterface, provided by the Tools extension

Returns the system insets of the device.
no setter
systemLocale Locale

Available on ZapInterface, provided by the Tools extension

Returns the system locale of the device.
no setter
textScaleFactor double

Available on ZapInterface, provided by the Tools extension

Returns the text scale factor of the device.
no setter
topBarHeight double

Available on ZapInterface, provided by the Tools extension

Returns the height of the device's top app bar.
no setter
width double

Available on ZapInterface, provided by the Tools extension

Returns the width of the device screen.
no setter

Methods

back() → void

Available on ZapInterface, provided by the ZapNavigation extension

Pop the current route from the Navigator stack.
isValidEmail(String value) bool

Available on ZapInterface, provided by the ZapValidator extension

Validates if the given value is a valid email address.
isValidPassword(String value, {int minLength = 6, bool requireUppercase = false, bool requireDigit = false, bool requireSpecialChar = false}) bool

Available on ZapInterface, provided by the ZapValidator extension

Validates if the given value is a valid password. Optionally, you can set minLength, requireUppercase, requireDigit, and requireSpecialChar to enforce specific password criteria.
isValidPhoneNumber(String value) bool

Available on ZapInterface, provided by the ZapValidator extension

Validates if the given value is a valid 10-digit phone number.
isValidUrl(String value, {List<String> validSchemes = const ['http', 'https']}) bool

Available on ZapInterface, provided by the ZapValidator extension

Validates if the given value is a valid URL with specified validSchemes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(dynamic newPage, {RouteSettings? settings, Transition transition = Transition.native, bool allowSnapshotting = true, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, bool maintainState = true, bool fullscreenDialog = false, Duration transitionDuration = const Duration(milliseconds: 300), Duration reverseTransitionDuration = const Duration(milliseconds: 300), bool opaque = true}) Future

Available on ZapInterface, provided by the ZapNavigation extension

Replace the current page with a new one.
offAll(dynamic newPage, {RouteSettings? settings, Transition transition = Transition.native, bool allowSnapshotting = true, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, bool maintainState = true, bool fullscreenDialog = false, Duration transitionDuration = const Duration(milliseconds: 300), Duration reverseTransitionDuration = const Duration(milliseconds: 300), bool opaque = true}) Future

Available on ZapInterface, provided by the ZapNavigation extension

Replace the entire Navigator stack with a new page.
offAllNamed(String routeName, {Object? arguments}) Future

Available on ZapInterface, provided by the ZapNavigation extension

Replace the entire Navigator stack with a new named route.
offNamed(String routeName, {Object? arguments, Object? result}) Future

Available on ZapInterface, provided by the ZapNavigation extension

Replace the current named route with a new one.
reload(Widget pageName) → void

Available on ZapInterface, provided by the ZapNavigation extension

showSnackBar(SnackBar snackBar, {BuildContext? context}) → void

Available on ZapInterface, provided by the ZapWidgets extension

to(dynamic page, {RouteSettings? settings, Transition transition = Transition.native, bool allowSnapshotting = true, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, bool maintainState = true, bool fullscreenDialog = false, Duration transitionDuration = const Duration(milliseconds: 300), Duration reverseTransitionDuration = const Duration(milliseconds: 300), bool opaque = true}) Future

Available on ZapInterface, provided by the ZapNavigation extension

Navigate to a new page with various configurable options.
toNamed(String routeName, {Object? arguments}) Future

Available on ZapInterface, provided by the ZapNavigation extension

Navigate to a named route with optional arguments.
toString() String
A string representation of this object.
inherited

Operators

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