getAssigns method

Future<List<Assign>> getAssigns(
  1. String taskId
)

Get assingees of the task

Implementation

Future<List<Assign>> getAssigns(String taskId) async {
  final snapshot = await assignCol.where('taskId', isEqualTo: taskId).get();
  return snapshot.docs.map((e) => Assign.fromSnapshot(e)).toList();
}