FirebaseVisionImageMetadata constructor

FirebaseVisionImageMetadata({
  1. required Size size,
  2. Object? rawFormat,
  3. List<FirebaseVisionImagePlaneMetadata>? planeData,
  4. ImageRotation rotation = ImageRotation.rotation0,
})

Implementation

FirebaseVisionImageMetadata({
  required this.size,
  this.rawFormat,
  this.planeData,
  this.rotation = ImageRotation.rotation0,
})  : assert(
        defaultTargetPlatform != TargetPlatform.iOS || rawFormat != null,
      ),
      assert(
        defaultTargetPlatform != TargetPlatform.iOS || planeData != null,
      );