VisionResultData constructor

const VisionResultData({
  1. required Map<String, dynamic> result,
  2. required int width,
  3. required int height,
  4. int? timestamp,
  5. Float64List? landmarks,
  6. List<int>? counts,
  7. List<(String, List<int>)>? parts,
})

result holds the task's fields in Google's JavaScript shape, except that masks arrive as [width, height, Float32List or Uint8List] and that packed landmarks replace the image-space landmarks' JSON lists: landmarks with counts (points per subject). Holistic packs every part into landmarks in the order of parts, each entry a part name and its points per subject.

Implementation

const VisionResultData({
  required this.result,
  required this.width,
  required this.height,
  this.timestamp,
  this.landmarks,
  this.counts,
  this.parts,
});