BugService class


BugService - Firestore Service for Bug Operations

Purpose: Provides CRUD operations for managing bug reports in Firestore. Handles adding, fetching, updating, and deleting bugs for the logged-in user.

Usage: Call this service from the repository or directly BLoC.

Firestore Collection: Defined by AppSession.BugCollectionBox

Constructors

BugService()

Properties

bugcollection CollectionReference<Map<String, dynamic>>
Firestore collection reference for storing bugs.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addBugs(BugModelCustom bugModel) Future<void>
Adds a new bug to Firestore.
bugDelete(dynamic userId) Future<void>
Deletes a bug document from Firestore by its userId.
getBugs() Future<List<BugModelCustom>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateBug(BugModelCustom bug) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited