Make finals consts in gym_set

This commit is contained in:
Brandon Presley 2023-04-08 14:05:01 +12:00
parent 82ef2bf87c
commit 35787cc208
1 changed files with 9 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
class GymSet {
int? id; // added id for SQLite
int? id;
String name;
int reps;
int weight;
@ -17,16 +17,14 @@ class GymSet {
}
class GymSetDatabaseHelper {
static final _databaseName = "gym_set_database.db";
static final _databaseVersion = 1;
static final table = 'gym_sets';
static final columnId = '_id';
static final columnName = 'name';
static final columnReps = 'reps';
static final columnWeight = 'weight';
static final columnCreated = 'created';
static const _databaseName = "gym_set_database.db";
static const _databaseVersion = 1;
static const table = 'gym_sets';
static const columnId = '_id';
static const columnName = 'name';
static const columnReps = 'reps';
static const columnWeight = 'weight';
static const columnCreated = 'created';
GymSetDatabaseHelper._privateConstructor();
static final GymSetDatabaseHelper instance =