removeFile static method

Future<bool> removeFile(
  1. String filePath
)

Implementation

static Future<bool> removeFile(String filePath) async {
  if (isFile(filePath)) {
    File file = File(filePath);
    try {
      await file.delete(recursive: true);
      return true;
    } catch (e) {
      print("removeFile error = $e");
      return false;
    }
  }
  return true;
}