detectFaces method
Implementation
@override
Future<List<Face>> detectFaces(Uint8List imageBytes) async {
final result = await methodChannel.invokeMethod<List<dynamic>>(
'detectFaces',
{'imageBytes': imageBytes},
);
if (result == null) {
return [];
}
return result.map((faceData) => Face.fromMap(faceData as Map<dynamic, dynamic>)).toList();
}