mensapluskit 0.1.0 copy "mensapluskit: ^0.1.0" to clipboard
mensapluskit: ^0.1.0 copied to clipboard

Dart 1 only

A small dart library to access the latest menus of all student canteens in Dresden.

mensapluskit #

A small dart library to access the latest menus of all student canteens in Dresden.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:mensapluskit/mensapluskit.dart';

main() async {
 
  var canteens = await MensaPlusKit.getCanteens();
  
  var canteen = canteens.first
  
  // Get today's menu
  var todayMenu = await canteen.getMenu(new DateTime.now());
  todayMenu.items.forEach((item) {
    if (item is Meal) {
      // the item could be a meal..
    } else {
      // the item could be an information..
    }
  });
  
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A small dart library to access the latest menus of all student canteens in Dresden.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

html, http, intl, path, uuid

More

Packages that depend on mensapluskit