delete method

Future<bool> delete()

Deletes the file if it exists on disk.

Implementation

Future<bool> delete() async {
  if (!kIsWeb && path != null && path!.isNotEmpty) {
    return await io_helper.deleteFilePath(path!);
  }
  return false;
}