TestImageReader typedef Null safety

Future<Uint8List?> TestImageReader(
  1. {required TestDeviceInfo deviceInfo,
  2. required String imageId,
  3. String? suiteName,
  4. required String testName,
  5. int? testVersion}
)

Reader to load a golden image from a data store and return it for comparison. If testVersion is omitted, this should default to the highest version listed in the golden file.

Implementation

typedef TestImageReader = Future<Uint8List?> Function({
  required TestDeviceInfo deviceInfo,
  required String imageId,
  String? suiteName,
  required String testName,
  int? testVersion,
});