getMetaData method

Map<String, dynamic> getMetaData()

Function to get the metadata of image processing purposes

Implementation

Map<String, dynamic> getMetaData() {
  var map = <String, dynamic>{
    'width': size.width,
    'height': size.height,
    'rotation': imageRotation.rawValue,
    'imageFormat': inputImageFormat.rawValue,
    'planeData': planeData
        ?.map((InputImagePlaneMetadata plane) => plane._serialize())
        .toList(),
  };
  return map;
}