takePhoto method

  1. @override
Future<String?> takePhoto(
  1. String savePath
)
override

Take a photo and save to the specified path. Returns the saved file path.

Implementation

@override
Future<String?> takePhoto(String savePath) async {
  final result = await methodChannel.invokeMethod<String>('takePhoto', {
    'savePath': savePath,
  });
  return result;
}