TestImage constructor

TestImage({
  1. int? captureTime,
  2. required bool goldenCompatible,
  3. String? hash,
  4. required String id,
  5. Uint8List? image,
})

Implementation

TestImage({
  int? captureTime,
  required this.goldenCompatible,
  String? hash,
  required this.id,
  Uint8List? image,
})  : captureTime = captureTime ?? DateTime.now().millisecondsSinceEpoch,
      hash = hash ??
          hex.encode(
            SHA256Digest().process(image ?? Uint8List(0)),
          ),
      image = image;