FaceDetectionResult.fromMap constructor Null safety
- 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(),
);
}