ziskejJidelnicek method
Získá jídelníček bez cen Tato feature není v prioritě, protože není moc užitečná. Je u ní menší šance, že bude fungovat pokud není v podporovaných verzích.
Výstup:
List
s Jidelnicek, který neobsahuje ceny
Lze použít bez přihlášení
Implementation
Future<List<Jidelnicek>> ziskejJidelnicek() async {
if (canteenInstance != null) {
return canteenInstance!.ziskejJidelnicek();
}
if (canteenInstance!.missingFeatures.contains(Features.jidelnicekBezCen)) {
return Future.error(CanteenLibExceptions.featureNepodporovana);
}
try {
await _ziskatInstanciProVerzi();
} catch (e) {
return Future.error(e);
}
return canteenInstance!.ziskejJidelnicek();
}