getMeal method

Future<Meal?> getMeal(
  1. int canteenId,
  2. String dayDate,
  3. int mealId
)

Returns a meal at the given canteen at a given date with the given ID.

Implementation

Future<Meal?> getMeal(int canteenId, String dayDate, int mealId) async =>
    parseObject(
      await getResponse('canteens/$canteenId/days/$dayDate/meals/$mealId'),
      Meal.fromJson,
    );