Skip to content

Instantly share code, notes, and snippets.

@MwBakker
Created May 14, 2021 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MwBakker/09c4d8eda3fe19c45b6c6a7853e37136 to your computer and use it in GitHub Desktop.
Save MwBakker/09c4d8eda3fe19c45b6c6a7853e37136 to your computer and use it in GitHub Desktop.
import 'db_automotive.dart';
import 'db_event.dart';
import 'db_profile.dart';
import 'db_route.dart';
import 'db_vehicle.dart';
class DataController {
static VehicleDB vehicleDB = new VehicleDB();
static AutomotiveDB automotiveDB = new AutomotiveDB();
static EventDB eventDB = new EventDB();
static RouteDB routeDB = new RouteDB();
static ProfileDB profileDB = new ProfileDB();
static Future getUserVehicles() async {
return vehicleDB.getUserVehicles();
}
.....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment