changeStatus method

Future<void> changeStatus(
  1. String status
)

Change stauts

Implementation

Future<void> changeStatus(String status) async {
  await ref.update({
    'status': status,
    'updatedAt': FieldValue.serverTimestamp(),
  });
}