@@ -20,7 +20,7 @@ class LegacyStrategy extends LoadStrategy {
20
20
///
21
21
/// /packages/path/path.ddc.js -> packages/path/path
22
22
///
23
- final Future <String > Function (
23
+ final Future <String ? > Function (
24
24
MetadataProvider metadataProvider, String sourcePath)
25
25
_moduleForServerPath;
26
26
@@ -39,7 +39,7 @@ class LegacyStrategy extends LoadStrategy {
39
39
///
40
40
/// web/main -> main.ddc.js
41
41
///
42
- final Future <String > Function (
42
+ final Future <String ? > Function (
43
43
MetadataProvider metadataProvider, String module) _serverPathForModule;
44
44
45
45
/// Returns the source map path for the provided module.
@@ -48,7 +48,7 @@ class LegacyStrategy extends LoadStrategy {
48
48
///
49
49
/// web/main -> main.ddc.js.map
50
50
///
51
- final Future <String > Function (
51
+ final Future <String ? > Function (
52
52
MetadataProvider metadataProvider, String module) _sourceMapPathForModule;
53
53
54
54
/// Returns the server path for the app uri.
@@ -101,7 +101,7 @@ class LegacyStrategy extends LoadStrategy {
101
101
'window.\$ dartLoader.forceLoadModule("$clientScript ");\n ' ;
102
102
103
103
@override
104
- Future <String > moduleForServerPath (
104
+ Future <String ? > moduleForServerPath (
105
105
String entrypoint, String serverPath) async =>
106
106
_moduleForServerPath (metadataProviderFor (entrypoint), serverPath);
107
107
@@ -110,11 +110,11 @@ class LegacyStrategy extends LoadStrategy {
110
110
_moduleInfoForProvider (metadataProviderFor (entrypoint));
111
111
112
112
@override
113
- Future <String > serverPathForModule (String entrypoint, String module) async =>
113
+ Future <String ? > serverPathForModule (String entrypoint, String module) async =>
114
114
_serverPathForModule (metadataProviderFor (entrypoint), module);
115
115
116
116
@override
117
- Future <String > sourceMapPathForModule (
117
+ Future <String ? > sourceMapPathForModule (
118
118
String entrypoint, String module) async =>
119
119
_sourceMapPathForModule (metadataProviderFor (entrypoint), module);
120
120
0 commit comments