@@ -43,7 +43,8 @@ class HomeScreenConfiguration extends ModelScreenConfiguration {
4343 title: null ,
4444 path: _PATH ,
4545 args: args ?? {},
46- isAccessibleOnlyIfLoggedInAndVerified: _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED ,
46+ isAccessibleOnlyIfLoggedInAndVerified:
47+ _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED ,
4748 isAccessibleOnlyIfLoggedIn: _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN ,
4849 isAccessibleOnlyIfLoggedOut: _IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT ,
4950 isRedirectable: _IS_REDIRECTABLE ,
@@ -66,14 +67,16 @@ class HomeScreenConfiguration extends ModelScreenConfiguration {
6667 static const TR_KEY = _TR_KEY ;
6768
6869 /// Whether the corresponding [Screen] is only accessible if the user is logged in and verified.
69- static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN = _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN ;
70+ static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN =
71+ _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN ;
7072
7173 /// Whether the corresponding [Screen] is only accessible if the user is logged in.
7274 static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED =
7375 _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED ;
7476
7577 /// Whether the corresponding [Screen] is only accessible if the user is logged out.
76- static const IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT = _IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT ;
78+ static const IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT =
79+ _IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT ;
7780
7881 /// Whether the corresponding [Screen] is redirectable, i.e., if it can be requested from the browser URL.
7982 static const IS_REDIRECTABLE = _IS_REDIRECTABLE ;
@@ -120,10 +123,12 @@ final generatedHomeScreenRoute = GoRoute(
120123 extra: extra ??
121124 urlToScreenConfiguration (
122125 url: state.uri,
123- isAccessibleOnlyIfLoggedIn: HomeScreenConfiguration .IS_ACCESSIBLE_ONLY_IF_LOGGED_IN ,
124- isAccessibleOnlyIfLoggedInAndVerified:
125- HomeScreenConfiguration .IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED ,
126- isAccessibleOnlyIfLoggedOut: HomeScreenConfiguration .IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT ,
126+ isAccessibleOnlyIfLoggedIn:
127+ HomeScreenConfiguration .IS_ACCESSIBLE_ONLY_IF_LOGGED_IN ,
128+ isAccessibleOnlyIfLoggedInAndVerified: HomeScreenConfiguration
129+ .IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED ,
130+ isAccessibleOnlyIfLoggedOut:
131+ HomeScreenConfiguration .IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT ,
127132 isRedirectable: HomeScreenConfiguration .IS_REDIRECTABLE ,
128133 title: null ,
129134 ),
@@ -143,7 +148,8 @@ Screen? makerHomeScreen(
143148 bool isLoggedIn,
144149 bool isLoggedOut,
145150) {
146- if ((_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED && ! isLoggedInAndVerified) ||
151+ if ((_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED &&
152+ ! isLoggedInAndVerified) ||
147153 (_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN && ! isLoggedIn) ||
148154 (_IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT && ! isLoggedOut)) {
149155 return null ;
@@ -154,7 +160,8 @@ Screen? makerHomeScreen(
154160 extra: extra,
155161 );
156162 }
157- if (RegExp (r'^(' + _PATH + r')([?/].*)?$' ).hasMatch (Uri .decodeComponent (extra.path ?? '' ))) {
163+ if (RegExp (r'^(' + _PATH + r')([?/].*)?$' )
164+ .hasMatch (Uri .decodeComponent (extra.path ?? '' ))) {
158165 final temp = HomeScreenConfiguration .optional (
159166 args: extra.args,
160167 );
@@ -172,11 +179,12 @@ Screen? makerHomeScreen(
172179typedef THomeScreenController = _ControllerBroker <HomeScreen , _State >;
173180
174181/// A [AdaptiveScreenState] type corresponding to [HomeScreen] .
175- typedef TAdaptiveHomeScreenState
176- = AdaptiveScreenState < HomeScreen , HomeScreenConfiguration , HomeScreenController >;
182+ typedef TAdaptiveHomeScreenState = AdaptiveScreenState < HomeScreen ,
183+ HomeScreenConfiguration , HomeScreenController >;
177184
178185/// A [ScreenState] type corresponding to [HomeScreen] .
179- typedef THomeScreenState = ScreenState <HomeScreen , HomeScreenConfiguration , HomeScreenController >;
186+ typedef THomeScreenState
187+ = ScreenState <HomeScreen , HomeScreenConfiguration , HomeScreenController >;
180188
181189/// A [ScreenPageState] type corresponding to [HomeScreen] .
182190typedef THomeScreenPageState <T extends ScreenPage >
0 commit comments