@@ -20,7 +20,7 @@ class LegacyStrategy extends LoadStrategy {
2020 ///
2121 /// /packages/path/path.ddc.js -> packages/path/path
2222 ///
23- final Future <String > Function (
23+ final Future <String ? > Function (
2424 MetadataProvider metadataProvider, String sourcePath)
2525 _moduleForServerPath;
2626
@@ -39,7 +39,7 @@ class LegacyStrategy extends LoadStrategy {
3939 ///
4040 /// web/main -> main.ddc.js
4141 ///
42- final Future <String > Function (
42+ final Future <String ? > Function (
4343 MetadataProvider metadataProvider, String module) _serverPathForModule;
4444
4545 /// Returns the source map path for the provided module.
@@ -48,7 +48,7 @@ class LegacyStrategy extends LoadStrategy {
4848 ///
4949 /// web/main -> main.ddc.js.map
5050 ///
51- final Future <String > Function (
51+ final Future <String ? > Function (
5252 MetadataProvider metadataProvider, String module) _sourceMapPathForModule;
5353
5454 /// Returns the server path for the app uri.
@@ -101,7 +101,7 @@ class LegacyStrategy extends LoadStrategy {
101101 'window.\$ dartLoader.forceLoadModule("$clientScript ");\n ' ;
102102
103103 @override
104- Future <String > moduleForServerPath (
104+ Future <String ? > moduleForServerPath (
105105 String entrypoint, String serverPath) async =>
106106 _moduleForServerPath (metadataProviderFor (entrypoint), serverPath);
107107
@@ -110,11 +110,11 @@ class LegacyStrategy extends LoadStrategy {
110110 _moduleInfoForProvider (metadataProviderFor (entrypoint));
111111
112112 @override
113- Future <String > serverPathForModule (String entrypoint, String module) async =>
113+ Future <String ? > serverPathForModule (String entrypoint, String module) async =>
114114 _serverPathForModule (metadataProviderFor (entrypoint), module);
115115
116116 @override
117- Future <String > sourceMapPathForModule (
117+ Future <String ? > sourceMapPathForModule (
118118 String entrypoint, String module) async =>
119119 _sourceMapPathForModule (metadataProviderFor (entrypoint), module);
120120
0 commit comments