Increase the strictness of our requiring explicit types (#7585)
...now that we have generic methods, their types need to be specified too.
This commit is contained in:
@@ -46,7 +46,7 @@ class TestAssetBundle extends AssetBundle {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<dynamic> loadStructuredData(String key, Future<dynamic> parser(String value)) async {
|
||||
Future<dynamic> loadStructuredData<T>(String key, Future<T> parser(String value)) async {
|
||||
return parser(await loadString(key));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user