GenerateScreenBindings constructor
const
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.
Implementation
const GenerateScreenBindings({
this.path = '',
this.isAccessibleOnlyIfLoggedInAndVerified = false,
this.isAccessibleOnlyIfLoggedIn = false,
this.isAccessibleOnlyIfLoggedOut = false,
this.isRedirectable = false,
this.internalParameters = const {},
this.queryParameters = const {},
this.defaultTitle = '...',
this.makeup = 'null',
this.className,
this.screenKey,
}) : assert(
!isAccessibleOnlyIfLoggedInAndVerified || !isAccessibleOnlyIfLoggedIn,
'Cannot set both `isAccessibleOnlyIfLoggedInAndVerified` and `isAccessibleOnlyIfLoggedIn` to `true`.',
),
assert(
!isAccessibleOnlyIfLoggedInAndVerified ||
!isAccessibleOnlyIfLoggedOut,
'Cannot set both `isAccessibleOnlyIfLoggedInAndVerified` and `isAccessibleOnlyIfLoggedOut` to `true`.',
),
assert(
!isAccessibleOnlyIfLoggedIn || !isAccessibleOnlyIfLoggedOut,
'Cannot set both `isAccessibleOnlyIfLoggedIn` and `isAccessibleOnlyIfLoggedOut` to `true`.',
);