moveTo method

  1. @override
Future<SafDocumentFile> moveTo(
  1. String uri,
  2. bool isDir,
  3. String parentUri,
  4. String newParentUri,
)
override

Implementation

@override
Future<SafDocumentFile> moveTo(
    String uri, bool isDir, String parentUri, String newParentUri) async {
  final map = await methodChannel.invokeMapMethod<String, dynamic>(
    'moveTo',
    {
      'uri': uri,
      'isDir': isDir,
      'parentUri': parentUri,
      'newParentUri': newParentUri
    },
  );
  if (map == null) {
    throw Exception('Failed to move: $uri');
  }
  return SafDocumentFile.fromMap(map);
}