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