GenerateScreenBindings class
final
Constructors
-
GenerateScreenBindings({String path = '', bool isAccessibleOnlyIfLoggedInAndVerified = false, bool isAccessibleOnlyIfLoggedIn = false, bool isAccessibleOnlyIfLoggedOut = false, bool isRedirectable = false, Set<Record> internalParameters = const {}, Set<Record> queryParameters = const {}, String defaultTitle = '...', String makeup = 'null', String? className, String? screenKey})
-
Generates boiler-plate code for the annotated screen class to make it
accessible.
const
Properties
-
className
→ String?
-
The name of the class to generate.
final
-
defaultTitle
→ String
-
Set the title of the screen, e.g. 'Delete Account'.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
internalParameters
→ Set<Record>
-
Specify a set of internal parameters that the Screen's configuration class can accept, e.g.
{'userId': 'String?'}
.
final
-
isAccessibleOnlyIfLoggedIn
→ bool
-
Set to
true
to ensure the screen can only be accessed if the current
user is logged in (and not necessarily verified).
final
-
isAccessibleOnlyIfLoggedInAndVerified
→ bool
-
Set to
true
to ensure the screen can only be accessed if the current
user is logged in and verified.
final
-
isAccessibleOnlyIfLoggedOut
→ bool
-
Set to
true
to ensure the screen can only be accessed if there are no
currently logged-in users.
final
-
isRedirectable
→ bool
-
Set to
false
to ensure that the screen is not redirectable.
final
-
makeup
→ String
-
Specify a valid makeup class for the screen, e.g.
'DefaultScreenMakeup()'
.
final
-
path
→ String
-
The path to the screen, e.g. '/delete_account'.
final
-
queryParameters
→ Set<Record>
-
Specify a set of query parameters that the screen can accept, e.g.
{'userId', 'orderId'}
.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
screenKey
→ String?
-
The key of the screen, e.g. 'delete_account'.
final
Methods
-
copyWith({bool? isAccessibleOnlyIfLoggedInAndVerified, bool? isAccessibleOnlyIfLoggedIn, bool? isAccessibleOnlyIfLoggedOut, bool? isRedirectable, String? path, Set<Record>? internalParameters, Set<Record>? queryParameters, List<Record>? pathSegments, String? navigationControlWidget, String? defaultTitle, String? makeup, String? className, String? screenKey})
→ GenerateScreenBindings
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited