mirror of https://github.com/AMT-Cheif/drift.git
Run tools/generate_all.sh
This commit is contained in:
parent
e12021150e
commit
8fe2f24e56
|
@ -1251,7 +1251,7 @@ class PureDefault extends DataClass implements Insertable<PureDefault> {
|
|||
serializer ??= driftRuntimeOptions.defaultSerializer;
|
||||
return PureDefault(
|
||||
txt: $PureDefaultsTable.$converter0n
|
||||
.fromJson(serializer.fromJson<String>(json['txt'])),
|
||||
.fromJson(serializer.fromJson<String?>(json['txt'])),
|
||||
);
|
||||
}
|
||||
factory PureDefault.fromJsonString(String encodedJson,
|
||||
|
|
|
@ -11,7 +11,7 @@ class Category extends DataClass implements Insertable<Category> {
|
|||
final int id;
|
||||
final String name;
|
||||
final Color color;
|
||||
Category({required this.id, required this.name, required this.color});
|
||||
const Category({required this.id, required this.name, required this.color});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
@ -216,7 +216,7 @@ class TodoEntry extends DataClass implements Insertable<TodoEntry> {
|
|||
final String description;
|
||||
final int? category;
|
||||
final DateTime? dueDate;
|
||||
TodoEntry(
|
||||
const TodoEntry(
|
||||
{required this.id,
|
||||
required this.description,
|
||||
this.category,
|
||||
|
@ -466,7 +466,7 @@ class $TodoEntriesTable extends TodoEntries
|
|||
|
||||
class TextEntrie extends DataClass implements Insertable<TextEntrie> {
|
||||
final String description;
|
||||
TextEntrie({required this.description});
|
||||
const TextEntrie({required this.description});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
|
|
@ -10,7 +10,7 @@ part of 'database.dart';
|
|||
class Entrie extends DataClass implements Insertable<Entrie> {
|
||||
final int id;
|
||||
final String value;
|
||||
Entrie({required this.id, required this.value});
|
||||
const Entrie({required this.id, required this.value});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
|
|
@ -11,7 +11,7 @@ class User extends DataClass implements Insertable<User> {
|
|||
final int id;
|
||||
final String name;
|
||||
final int? nextUser;
|
||||
User({required this.id, required this.name, this.nextUser});
|
||||
const User({required this.id, required this.name, this.nextUser});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
@ -216,7 +216,7 @@ class Group extends DataClass implements Insertable<Group> {
|
|||
final String title;
|
||||
final bool? deleted;
|
||||
final int owner;
|
||||
Group(
|
||||
const Group(
|
||||
{required this.id,
|
||||
required this.title,
|
||||
this.deleted,
|
||||
|
@ -465,7 +465,7 @@ class GroupCountData extends DataClass {
|
|||
final String name;
|
||||
final int? nextUser;
|
||||
final int groupCount;
|
||||
GroupCountData(
|
||||
const GroupCountData(
|
||||
{required this.id,
|
||||
required this.name,
|
||||
this.nextUser,
|
||||
|
|
|
@ -10,7 +10,7 @@ part of 'database.dart';
|
|||
class Entrie extends DataClass implements Insertable<Entrie> {
|
||||
final int id;
|
||||
final String value;
|
||||
Entrie({required this.id, required this.value});
|
||||
const Entrie({required this.id, required this.value});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
|
|
@ -10,7 +10,7 @@ part of 'database.dart';
|
|||
class User extends DataClass implements Insertable<User> {
|
||||
final int id;
|
||||
final String name;
|
||||
User({required this.id, required this.name});
|
||||
const User({required this.id, required this.name});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
|
|
@ -10,7 +10,7 @@ part of 'database.dart';
|
|||
class KeyValue extends DataClass implements Insertable<KeyValue> {
|
||||
final String key;
|
||||
final String value;
|
||||
KeyValue({required this.key, required this.value});
|
||||
const KeyValue({required this.key, required this.value});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
|
|
@ -31,7 +31,7 @@ class User extends DataClass implements Insertable<User> {
|
|||
final DateTime birthDate;
|
||||
final Uint8List? profilePicture;
|
||||
final Preferences? preferences;
|
||||
User(
|
||||
const User(
|
||||
{required this.id,
|
||||
required this.name,
|
||||
required this.birthDate,
|
||||
|
@ -326,7 +326,7 @@ class Friendship extends DataClass implements Insertable<Friendship> {
|
|||
final int firstUser;
|
||||
final int secondUser;
|
||||
final bool reallyGoodFriends;
|
||||
Friendship(
|
||||
const Friendship(
|
||||
{required this.firstUser,
|
||||
required this.secondUser,
|
||||
required this.reallyGoodFriends});
|
||||
|
|
|
@ -9,7 +9,7 @@ part of 'saves_after_migration_regression_test.dart';
|
|||
// ignore_for_file: type=lint
|
||||
class Foo extends DataClass implements Insertable<Foo> {
|
||||
final int id;
|
||||
Foo({required this.id});
|
||||
const Foo({required this.id});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
@ -144,7 +144,7 @@ class $FoosTable extends Foos with TableInfo<$FoosTable, Foo> {
|
|||
|
||||
class Bar extends DataClass implements Insertable<Bar> {
|
||||
final int id;
|
||||
Bar({required this.id});
|
||||
const Bar({required this.id});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
|
|
Loading…
Reference in New Issue