DeviceNavigationController class
DeviceNavigationController is a controller that helps to navigate between different applications and keep track of the current state of the application. It is used to manage the navigation between applications in the IOS system view.
Constructors
-
DeviceNavigationController is a factory constructor that creates an instance of DeviceNavigationController.
apps
is a list of applications that are available in the system view.bottomApps
is a list of applications that are available on the bottom bar in the system view.deviceBackgroundImage
is a string that holds the path to the background image of the device.factory
Properties
-
apps
→ List<
DeviceApplication> -
apps is a list of applications that are available in the system view.
final
-
bottomApps
→ List<
DeviceApplication> -
bottomApps is a list of applications that are available in the system view.
4 applications are shown in the bottom bar in Max
final - deviceBackgroundImage → String
-
deviceBackgroundImage is a string that holds the path to the background image of the device.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showFlutterText ↔ bool
-
The flag for showing the Flutter text.
getter/setter pair
-
stateChangeStream
→ Stream<
DeviceNavigationControllerState> -
stateChangeStream is a stream that listens to the state changes in the DeviceNavigationController.
no setter
- toast ↔ IOSToast
-
toast is an instance of
IOSToast
.getter/setter pair
Methods
-
getCurrentApp(
) → Widget - getCurrentApp is a method that returns the current application that is open.
-
goBack(
) → void - goBack is a method that navigates back to the previous widget.
-
goBackToRoot(
) → void - goBackToRoot is a method that navigates back to the root widget.
-
goTo(
{required Widget widget}) → void - goTo is a method that navigates to the given widget.
-
hideToast(
) → void - hideToast is a function that hides the toast.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showToast(
{Widget? content, Widget? title, Widget? leading, Widget? trailing, Duration? duration, Decoration? toastDecoration, EdgeInsetsGeometry? contentPadding, bool autoDismiss = true}) → void - showToast is a function that shows a toast.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited