delete method

  1. @override
Future<void> delete(
  1. String uri,
  2. bool isDir
)
override

Implementation

@override
Future<void> delete(String uri, bool isDir) async {
  final res = await methodChannel.invokeMethod<bool>(
    'delete',
    {'uri': uri, 'isDir': isDir},
  );
  if (res != true) {
    throw Exception('Failed to delete file: $uri');
  }
}