get method
Implementation
@override
Future<AssignmentModel> get(String? id, {Function(Exception)? onError}) {
int index = _index(id!);
var completer = Completer<AssignmentModel>();
completer.complete(items[index]);
return completer.future;
}