DataSourceFirebaseSource<T extends BaseEntityDataModel>.delete constructor
DataSourceFirebaseSource<T extends BaseEntityDataModel>.delete ({})
Factory constructor for deleting data from Firebase.
The path parameter specifies the Firestore collection path.
The oldImg parameter specifies the old image URL to delete.
Implementation
factory DataSourceFirebaseSource.delete({
required String path,
String? oldImg,
}) {
return DataSourceFirebaseSource(path)..deleteUrl = oldImg ?? "";
}