FaceDetectionResult.fromMap constructor Null safety

FaceDetectionResult.fromMap(
  1. Map map
)

Implementation

factory FaceDetectionResult.fromMap(Map<dynamic, dynamic> map) {
  return FaceDetectionResult(
    detectResult: map['detectResult'],
    imageWidth: map['imageWidth'],
    imageHeight: map['imageHeight'],
    faces: (map['faces'] as List<dynamic>)
        .map((e) => Rectangle.fromMap(e))
        .toList(),
  );
}