getElement method
Implementation
@override
Future<TData> getElement(ApiRequest request, int id) async {
if (data.length > id) {
return data.elementAt(id);
}
throw ApiRequestException.notFound();
}
@override
Future<TData> getElement(ApiRequest request, int id) async {
if (data.length > id) {
return data.elementAt(id);
}
throw ApiRequestException.notFound();
}