Skip to content

Commit 457365f

Browse files
committed
update
1 parent b055054 commit 457365f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/v6/access.dart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const SCREEN_MAKERS = [
3232
/// and authentication states ([isLoggedInAndVerified], [isLoggedIn], [isLoggedOut]).
3333
/// If a screen is found that matches the configuration and is accessible, it is
3434
/// returned. Otherwise, `null` is returned.
35-
Screen? findScreenFromConfiguration({
35+
Screen<ModelScreenConfiguration>? findScreenFromConfiguration({
3636
required ModelScreenConfiguration configuration,
3737
required bool? isLoggedInAndVerified,
3838
required bool? isLoggedIn,
@@ -45,7 +45,7 @@ Screen? findScreenFromConfiguration({
4545
isLoggedIn ?? false,
4646
isLoggedOut ?? true,
4747
);
48-
if (screen != null) {
48+
if (screen is Screen<ModelScreenConfiguration>) {
4949
return screen;
5050
}
5151
}
@@ -57,7 +57,7 @@ Screen? findScreenFromConfiguration({
5757
/// whether the user is logged in, verified, or logged out, and then calls
5858
/// `findScreenFromConfiguration` with these states. If a matching screen is
5959
/// found and accessible, it is returned; otherwise, `null` is returned.
60-
Screen? findScreenFromConfigurationAndAuthService({
60+
Screen<ModelScreenConfiguration>? findScreenFromConfigurationAndAuthService({
6161
required ModelScreenConfiguration configuration,
6262
required bool loggedIn,
6363
required bool verified,

0 commit comments

Comments
 (0)