pickAndCropImage static method

Future<File?> pickAndCropImage()

Implementation

static Future<File?> pickAndCropImage() async {
    try {
      if(!Platform.isAndroid) {
        return null;
      }
      final String? resultPath =
          await _channel.invokeMethod('pickAndCropImage');
      return resultPath == null ? null : new File(resultPath);
    } catch (e) {}
    return null;
  }