delete method

Future<void> delete(
  1. String path
)

Implementation

Future<void> delete(String path) async {
  final file = File(path);
  if (file.existsSync()) {
    await file.delete();
  }
}