removeObject method

  1. @override
Future<bool> removeObject(
  1. String path
)

Removes the file from the given path

Implementation

@override
Future<bool> removeObject(String path) async {
  try {
    await FirebaseStorage.instance.ref(path).delete();
  } catch (err, stack) {
    if (kDebugMode) {
      print(err);
      print(stack);
    }
    return false;
  }
  return true;
}