get static method

Future<Assign?> get(
  1. String id
)

Get an assign by its id

Implementation

static Future<Assign?> get(String id) async {
  final snapshot = await TodoService.instance.assignCol.doc(id).get();
  if (!snapshot.exists) return null;
  return Assign.fromSnapshot(snapshot);
}