implicit-casts: false (#47199)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
2b4b6eef5d
commit
c235998acf
@@ -4,10 +4,11 @@
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io' show File;
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_driver/flutter_driver.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:flutter_driver/flutter_driver.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
|
||||
const String _kPathParent = 'test_driver/goldens/';
|
||||
|
||||
@@ -43,8 +44,7 @@ class DriverScreenShotTester {
|
||||
Future<bool> compareScreenshots(List<int> screenshot) async {
|
||||
final File file = File(_getImageFilePath());
|
||||
final List<int> matcher = await file.readAsBytes();
|
||||
final Function listEquals = const ListEquality<int>().equals;
|
||||
return listEquals(screenshot, matcher);
|
||||
return listEquals<int>(screenshot, matcher);
|
||||
}
|
||||
|
||||
/// Returns a bytes representation of a screenshot on the current screen.
|
||||
|
||||
Reference in New Issue
Block a user