takePhoto static method
Implementation
static Future<String?> takePhoto() async {
try {
final result = await channel.invokeMethod<String>('takePhoto');
return result;
} on PlatformException catch (e) {
if (kDebugMode) {
print('Take photo error: ${e.code} - ${e.message}');
}
rethrow;
}
}