targetFilePath static method

Future targetFilePath(
  1. String fileName,
  2. String fileType,
  3. dynamic result(
    1. String path
    )
)

Implementation

static Future<dynamic> targetFilePath(
    String fileName, String fileType, Function(String path) result) async {
  Map args = {"name": fileName, "type": fileType};
  Future<dynamic> callback =
      _channel.invokeMethod(ShareSDKMethods.getSharedFilePath.name!, args);
  callback.then((dynamic response) {
    if (response != null) {
      result(response["path"]);
    }
  });
  return callback;
}