CurrentState class abstract

It manages the current device with some utils functions

Implementers

Constructors

CurrentState()

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

buildArgs(Map<String, String> args) String
It builds the args string from a dictionary
configureApp() → void
Configure app url strategy
currentPath() String?
It gets the current path
findSubDomain(String protocol, String currentDomain) String?
It retrieves the current subDomain
getArgs() Map<String, String>
It gets the args from the current web location
getCurrentDomain() String?
It gets the current domain
getCurrentOrigin() String
It retrieves the current origin for the current location
getFullPath() String
It retrieves the full path of the current location
getSubDomain() String?
It gets the sub domain
globalCallMethod(String method, List args) → void
call global method on current device with custom args
goBack(BuildContext context) → void
It goes back to the previous page
goToScreen(String name, BuildContext context, Map<String, String>? args) → void
It goes to another screen with optionally custom args
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openExternalUrl(String newUrl) → void
Open external url
openScreen(String url) → void
It goes to another screen reloading the page
pushHistoryState(String name, String args) → void
It pushes the history paths state
removeQueryArgs() → void
It cleans the query args from the current url
toString() String
A string representation of this object.
inherited

Operators

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