updateBug method

Future<void> updateBug(
  1. BugModelCustom bug
)

Updates an existing bug document in Firestore.

Identifies the document by bug.userId and updates its fields with bug.toMap()

Implementation

Future<void> updateBug(BugModelCustom bug) async {
  await bugcollection.doc(bug.userId).update(bug.toMap());
}