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

View File

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