Public Access
squash! chore: fix some linter warnings
This commit is contained in:
@@ -2,7 +2,6 @@ import 'package:sqflite/sqflite.dart';
|
||||
// import './state_helper.dart';
|
||||
// import './db_helper.dart';
|
||||
|
||||
// TODO: get access to DB
|
||||
|
||||
class DbHelper {
|
||||
static late Database db;
|
||||
@@ -106,7 +105,6 @@ class Journey {
|
||||
}
|
||||
|
||||
// from trip API request
|
||||
// TODO: how to connect this best with the database for read/write?
|
||||
factory Journey.fromJson(Map<String, dynamic> json) {
|
||||
Journey newJourney = Journey(
|
||||
segments: json["LegList"]["Leg"].map((leg) => Segment.fromJson(leg)),
|
||||
@@ -558,7 +556,6 @@ class Station {
|
||||
.toList();
|
||||
}
|
||||
|
||||
//TODO: usage
|
||||
factory Station.fromMap(
|
||||
Map<String, Object?> map, {
|
||||
List<Line>? stationLines,
|
||||
@@ -1106,4 +1103,4 @@ enum VehicleType {
|
||||
subway,
|
||||
regionalTrain,
|
||||
PLACEHOLDER,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user