decode static method

AnalysisImageWrapper decode(
  1. Object result
)

Implementation

static AnalysisImageWrapper decode(Object result) {
  result as List<Object?>;
  return AnalysisImageWrapper(
    format: AnalysisImageFormat.values[result[0]! as int],
    bytes: result[1] as Uint8List?,
    width: result[2]! as int,
    height: result[3]! as int,
    planes: (result[4] as List<Object?>?)?.cast<PlaneWrapper?>(),
    cropRect: result[5] != null
        ? CropRectWrapper.decode(result[5]! as List<Object?>)
        : null,
    rotation:
        result[6] != null ? AnalysisRotation.values[result[6]! as int] : null,
  );
}