Null safety migration of packages/flutter_tools/test/general.shard, part 2/2 (#110712)

* Migrate packages/flutter_tools/test/general.shard, part 2/2

* Fix analysis

* Fix tests

* Fix analysis

* Apply suggestions from code review

Co-authored-by: Christopher Fujino <fujino@google.com>

Co-authored-by: Christopher Fujino <fujino@google.com>
This commit is contained in:
Liam Appelbe
2022-09-07 12:28:52 -07:00
committed by GitHub
parent 6c79dcca84
commit 4453ba0a4d
14 changed files with 343 additions and 353 deletions

View File

@@ -707,7 +707,7 @@ abstract class ResidentHandlers {
}
final List<FlutterView> views = await device!.vmService!.getFlutterViews();
for (final FlutterView view in views) {
final Map<String, Object>? rasterData =
final Map<String, Object?>? rasterData =
await device.vmService!.renderFrameWithRasterStats(
viewId: view.id,
uiIsolateId: view.uiIsolate!.id,

View File

@@ -557,7 +557,7 @@ class FlutterVmService {
/// for rasterization which is not reflective of how long the frame takes in
/// production. This is primarily intended to be used to identify the layers
/// that result in the most raster perf degradation.
Future<Map<String, Object>?> renderFrameWithRasterStats({
Future<Map<String, Object?>?> renderFrameWithRasterStats({
required String? viewId,
required String? uiIsolateId,
}) async {
@@ -568,7 +568,7 @@ class FlutterVmService {
'viewId': viewId,
},
);
return response?.json as Map<String, Object>?;
return response?.json;
}
Future<String> flutterDebugDumpApp({