@@ -32,7 +32,7 @@ const SCREEN_MAKERS = [
32
32
/// and authentication states ([isLoggedInAndVerified], [isLoggedIn], [isLoggedOut]).
33
33
/// If a screen is found that matches the configuration and is accessible, it is
34
34
/// returned. Otherwise, `null` is returned.
35
- Screen<ModelScreenConfiguration> ? findScreenFromConfiguration({
35
+ Screen? findScreenFromConfiguration({
36
36
required ModelScreenConfiguration configuration,
37
37
required bool? isLoggedInAndVerified,
38
38
required bool? isLoggedIn,
@@ -45,7 +45,7 @@ Screen<ModelScreenConfiguration>? findScreenFromConfiguration({
45
45
isLoggedIn ?? false,
46
46
isLoggedOut ?? true,
47
47
);
48
- if (screen is Screen<ModelScreenConfiguration> ) {
48
+ if (screen != null ) {
49
49
return screen;
50
50
}
51
51
}
@@ -57,7 +57,7 @@ Screen<ModelScreenConfiguration>? findScreenFromConfiguration({
57
57
/// whether the user is logged in, verified, or logged out, and then calls
58
58
/// `findScreenFromConfiguration` with these states. If a matching screen is
59
59
/// found and accessible, it is returned; otherwise, `null` is returned.
60
- Screen<ModelScreenConfiguration> ? findScreenFromConfigurationAndAuthService({
60
+ Screen? findScreenFromConfigurationAndAuthService({
61
61
required ModelScreenConfiguration configuration,
62
62
required bool loggedIn,
63
63
required bool verified,
0 commit comments