getFileIntent property

Future<File?> getFileIntent

Get the file received from Intent if a file is not residing it will return null

Implementation

static Future<File?> get getFileIntent async {
  final String? path = await _channel.invokeMethod('getFileIntent');

  if (path == null || path.isEmpty) {
    return null;
  } else {
    var file = await toFile(path);

    return file;
  }
}