run build with new formatter
This commit is contained in:
@@ -9,29 +9,20 @@ class Setting extends Table with TableInfo<Setting, SettingData> {
|
||||
final String? _alias;
|
||||
Setting(this.attachedDatabase, [this._alias]);
|
||||
late final GeneratedColumn<String> key = GeneratedColumn<String>(
|
||||
'key',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'PRIMARY KEY NOT NULL',
|
||||
);
|
||||
'key', aliasedName, false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||
late final GeneratedColumn<String> partitionKey = GeneratedColumn<String>(
|
||||
'partition_key',
|
||||
aliasedName,
|
||||
true,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: false,
|
||||
$customConstraints: '',
|
||||
);
|
||||
'partition_key', aliasedName, true,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: false,
|
||||
$customConstraints: '');
|
||||
late final GeneratedColumn<DriftAny> value = GeneratedColumn<DriftAny>(
|
||||
'value',
|
||||
aliasedName,
|
||||
true,
|
||||
type: DriftSqlType.any,
|
||||
requiredDuringInsert: false,
|
||||
$customConstraints: '',
|
||||
);
|
||||
'value', aliasedName, true,
|
||||
type: DriftSqlType.any,
|
||||
requiredDuringInsert: false,
|
||||
$customConstraints: '');
|
||||
@override
|
||||
List<GeneratedColumn> get $columns => [key, partitionKey, value];
|
||||
@override
|
||||
@@ -45,19 +36,12 @@ class Setting extends Table with TableInfo<Setting, SettingData> {
|
||||
SettingData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
||||
return SettingData(
|
||||
key:
|
||||
attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}key'],
|
||||
)!,
|
||||
partitionKey: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}partition_key'],
|
||||
),
|
||||
value: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.any,
|
||||
data['${effectivePrefix}value'],
|
||||
),
|
||||
key: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.string, data['${effectivePrefix}key'])!,
|
||||
partitionKey: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.string, data['${effectivePrefix}partition_key']),
|
||||
value: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.any, data['${effectivePrefix}value']),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -90,10 +74,8 @@ class SettingData extends DataClass implements Insertable<SettingData> {
|
||||
return map;
|
||||
}
|
||||
|
||||
factory SettingData.fromJson(
|
||||
Map<String, dynamic> json, {
|
||||
ValueSerializer? serializer,
|
||||
}) {
|
||||
factory SettingData.fromJson(Map<String, dynamic> json,
|
||||
{ValueSerializer? serializer}) {
|
||||
serializer ??= driftRuntimeOptions.defaultSerializer;
|
||||
return SettingData(
|
||||
key: serializer.fromJson<String>(json['key']),
|
||||
@@ -111,22 +93,22 @@ class SettingData extends DataClass implements Insertable<SettingData> {
|
||||
};
|
||||
}
|
||||
|
||||
SettingData copyWith({
|
||||
String? key,
|
||||
Value<String?> partitionKey = const Value.absent(),
|
||||
Value<DriftAny?> value = const Value.absent(),
|
||||
}) => SettingData(
|
||||
key: key ?? this.key,
|
||||
partitionKey: partitionKey.present ? partitionKey.value : this.partitionKey,
|
||||
value: value.present ? value.value : this.value,
|
||||
);
|
||||
SettingData copyWith(
|
||||
{String? key,
|
||||
Value<String?> partitionKey = const Value.absent(),
|
||||
Value<DriftAny?> value = const Value.absent()}) =>
|
||||
SettingData(
|
||||
key: key ?? this.key,
|
||||
partitionKey:
|
||||
partitionKey.present ? partitionKey.value : this.partitionKey,
|
||||
value: value.present ? value.value : this.value,
|
||||
);
|
||||
SettingData copyWithCompanion(SettingCompanion data) {
|
||||
return SettingData(
|
||||
key: data.key.present ? data.key.value : this.key,
|
||||
partitionKey:
|
||||
data.partitionKey.present
|
||||
? data.partitionKey.value
|
||||
: this.partitionKey,
|
||||
partitionKey: data.partitionKey.present
|
||||
? data.partitionKey.value
|
||||
: this.partitionKey,
|
||||
value: data.value.present ? data.value.value : this.value,
|
||||
);
|
||||
}
|
||||
@@ -183,12 +165,11 @@ class SettingCompanion extends UpdateCompanion<SettingData> {
|
||||
});
|
||||
}
|
||||
|
||||
SettingCompanion copyWith({
|
||||
Value<String>? key,
|
||||
Value<String?>? partitionKey,
|
||||
Value<DriftAny?>? value,
|
||||
Value<int>? rowid,
|
||||
}) {
|
||||
SettingCompanion copyWith(
|
||||
{Value<String>? key,
|
||||
Value<String?>? partitionKey,
|
||||
Value<DriftAny?>? value,
|
||||
Value<int>? rowid}) {
|
||||
return SettingCompanion(
|
||||
key: key ?? this.key,
|
||||
partitionKey: partitionKey ?? this.partitionKey,
|
||||
@@ -233,29 +214,20 @@ class IconCache extends Table with TableInfo<IconCache, IconCacheData> {
|
||||
final String? _alias;
|
||||
IconCache(this.attachedDatabase, [this._alias]);
|
||||
late final GeneratedColumn<String> origin = GeneratedColumn<String>(
|
||||
'origin',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'PRIMARY KEY NOT NULL',
|
||||
);
|
||||
'origin', aliasedName, false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||
late final GeneratedColumn<Uint8List> iconData = GeneratedColumn<Uint8List>(
|
||||
'icon_data',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.blob,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'NOT NULL',
|
||||
);
|
||||
'icon_data', aliasedName, false,
|
||||
type: DriftSqlType.blob,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'NOT NULL');
|
||||
late final GeneratedColumn<DateTime> fetchDate = GeneratedColumn<DateTime>(
|
||||
'fetch_date',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.dateTime,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'NOT NULL',
|
||||
);
|
||||
'fetch_date', aliasedName, false,
|
||||
type: DriftSqlType.dateTime,
|
||||
requiredDuringInsert: true,
|
||||
$customConstraints: 'NOT NULL');
|
||||
@override
|
||||
List<GeneratedColumn> get $columns => [origin, iconData, fetchDate];
|
||||
@override
|
||||
@@ -269,21 +241,12 @@ class IconCache extends Table with TableInfo<IconCache, IconCacheData> {
|
||||
IconCacheData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
||||
return IconCacheData(
|
||||
origin:
|
||||
attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}origin'],
|
||||
)!,
|
||||
iconData:
|
||||
attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.blob,
|
||||
data['${effectivePrefix}icon_data'],
|
||||
)!,
|
||||
fetchDate:
|
||||
attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.dateTime,
|
||||
data['${effectivePrefix}fetch_date'],
|
||||
)!,
|
||||
origin: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.string, data['${effectivePrefix}origin'])!,
|
||||
iconData: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.blob, data['${effectivePrefix}icon_data'])!,
|
||||
fetchDate: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.dateTime, data['${effectivePrefix}fetch_date'])!,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -300,11 +263,8 @@ class IconCacheData extends DataClass implements Insertable<IconCacheData> {
|
||||
final String origin;
|
||||
final Uint8List iconData;
|
||||
final DateTime fetchDate;
|
||||
const IconCacheData({
|
||||
required this.origin,
|
||||
required this.iconData,
|
||||
required this.fetchDate,
|
||||
});
|
||||
const IconCacheData(
|
||||
{required this.origin, required this.iconData, required this.fetchDate});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
@@ -314,10 +274,8 @@ class IconCacheData extends DataClass implements Insertable<IconCacheData> {
|
||||
return map;
|
||||
}
|
||||
|
||||
factory IconCacheData.fromJson(
|
||||
Map<String, dynamic> json, {
|
||||
ValueSerializer? serializer,
|
||||
}) {
|
||||
factory IconCacheData.fromJson(Map<String, dynamic> json,
|
||||
{ValueSerializer? serializer}) {
|
||||
serializer ??= driftRuntimeOptions.defaultSerializer;
|
||||
return IconCacheData(
|
||||
origin: serializer.fromJson<String>(json['origin']),
|
||||
@@ -335,15 +293,13 @@ class IconCacheData extends DataClass implements Insertable<IconCacheData> {
|
||||
};
|
||||
}
|
||||
|
||||
IconCacheData copyWith({
|
||||
String? origin,
|
||||
Uint8List? iconData,
|
||||
DateTime? fetchDate,
|
||||
}) => IconCacheData(
|
||||
origin: origin ?? this.origin,
|
||||
iconData: iconData ?? this.iconData,
|
||||
fetchDate: fetchDate ?? this.fetchDate,
|
||||
);
|
||||
IconCacheData copyWith(
|
||||
{String? origin, Uint8List? iconData, DateTime? fetchDate}) =>
|
||||
IconCacheData(
|
||||
origin: origin ?? this.origin,
|
||||
iconData: iconData ?? this.iconData,
|
||||
fetchDate: fetchDate ?? this.fetchDate,
|
||||
);
|
||||
IconCacheData copyWithCompanion(IconCacheCompanion data) {
|
||||
return IconCacheData(
|
||||
origin: data.origin.present ? data.origin.value : this.origin,
|
||||
@@ -390,9 +346,9 @@ class IconCacheCompanion extends UpdateCompanion<IconCacheData> {
|
||||
required Uint8List iconData,
|
||||
required DateTime fetchDate,
|
||||
this.rowid = const Value.absent(),
|
||||
}) : origin = Value(origin),
|
||||
iconData = Value(iconData),
|
||||
fetchDate = Value(fetchDate);
|
||||
}) : origin = Value(origin),
|
||||
iconData = Value(iconData),
|
||||
fetchDate = Value(fetchDate);
|
||||
static Insertable<IconCacheData> custom({
|
||||
Expression<String>? origin,
|
||||
Expression<Uint8List>? iconData,
|
||||
@@ -407,12 +363,11 @@ class IconCacheCompanion extends UpdateCompanion<IconCacheData> {
|
||||
});
|
||||
}
|
||||
|
||||
IconCacheCompanion copyWith({
|
||||
Value<String>? origin,
|
||||
Value<Uint8List>? iconData,
|
||||
Value<DateTime>? fetchDate,
|
||||
Value<int>? rowid,
|
||||
}) {
|
||||
IconCacheCompanion copyWith(
|
||||
{Value<String>? origin,
|
||||
Value<Uint8List>? iconData,
|
||||
Value<DateTime>? fetchDate,
|
||||
Value<int>? rowid}) {
|
||||
return IconCacheCompanion(
|
||||
origin: origin ?? this.origin,
|
||||
iconData: iconData ?? this.iconData,
|
||||
@@ -474,20 +429,18 @@ abstract class _$UserDatabase extends GeneratedDatabase {
|
||||
List<DatabaseSchemaEntity> get allSchemaEntities => [setting, iconCache];
|
||||
}
|
||||
|
||||
typedef $SettingCreateCompanionBuilder =
|
||||
SettingCompanion Function({
|
||||
required String key,
|
||||
Value<String?> partitionKey,
|
||||
Value<DriftAny?> value,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $SettingUpdateCompanionBuilder =
|
||||
SettingCompanion Function({
|
||||
Value<String> key,
|
||||
Value<String?> partitionKey,
|
||||
Value<DriftAny?> value,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $SettingCreateCompanionBuilder = SettingCompanion Function({
|
||||
required String key,
|
||||
Value<String?> partitionKey,
|
||||
Value<DriftAny?> value,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $SettingUpdateCompanionBuilder = SettingCompanion Function({
|
||||
Value<String> key,
|
||||
Value<String?> partitionKey,
|
||||
Value<DriftAny?> value,
|
||||
Value<int> rowid,
|
||||
});
|
||||
|
||||
class $SettingFilterComposer extends Composer<_$UserDatabase, Setting> {
|
||||
$SettingFilterComposer({
|
||||
@@ -498,19 +451,13 @@ class $SettingFilterComposer extends Composer<_$UserDatabase, Setting> {
|
||||
super.$removeJoinBuilderFromRootComposer,
|
||||
});
|
||||
ColumnFilters<String> get key => $composableBuilder(
|
||||
column: $table.key,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
column: $table.key, builder: (column) => ColumnFilters(column));
|
||||
|
||||
ColumnFilters<String> get partitionKey => $composableBuilder(
|
||||
column: $table.partitionKey,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
column: $table.partitionKey, builder: (column) => ColumnFilters(column));
|
||||
|
||||
ColumnFilters<DriftAny> get value => $composableBuilder(
|
||||
column: $table.value,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
column: $table.value, builder: (column) => ColumnFilters(column));
|
||||
}
|
||||
|
||||
class $SettingOrderingComposer extends Composer<_$UserDatabase, Setting> {
|
||||
@@ -522,19 +469,14 @@ class $SettingOrderingComposer extends Composer<_$UserDatabase, Setting> {
|
||||
super.$removeJoinBuilderFromRootComposer,
|
||||
});
|
||||
ColumnOrderings<String> get key => $composableBuilder(
|
||||
column: $table.key,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
column: $table.key, builder: (column) => ColumnOrderings(column));
|
||||
|
||||
ColumnOrderings<String> get partitionKey => $composableBuilder(
|
||||
column: $table.partitionKey,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
column: $table.partitionKey,
|
||||
builder: (column) => ColumnOrderings(column));
|
||||
|
||||
ColumnOrderings<DriftAny> get value => $composableBuilder(
|
||||
column: $table.value,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
column: $table.value, builder: (column) => ColumnOrderings(column));
|
||||
}
|
||||
|
||||
class $SettingAnnotationComposer extends Composer<_$UserDatabase, Setting> {
|
||||
@@ -549,107 +491,89 @@ class $SettingAnnotationComposer extends Composer<_$UserDatabase, Setting> {
|
||||
$composableBuilder(column: $table.key, builder: (column) => column);
|
||||
|
||||
GeneratedColumn<String> get partitionKey => $composableBuilder(
|
||||
column: $table.partitionKey,
|
||||
builder: (column) => column,
|
||||
);
|
||||
column: $table.partitionKey, builder: (column) => column);
|
||||
|
||||
GeneratedColumn<DriftAny> get value =>
|
||||
$composableBuilder(column: $table.value, builder: (column) => column);
|
||||
}
|
||||
|
||||
class $SettingTableManager
|
||||
extends
|
||||
RootTableManager<
|
||||
_$UserDatabase,
|
||||
Setting,
|
||||
SettingData,
|
||||
$SettingFilterComposer,
|
||||
$SettingOrderingComposer,
|
||||
$SettingAnnotationComposer,
|
||||
$SettingCreateCompanionBuilder,
|
||||
$SettingUpdateCompanionBuilder,
|
||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||
SettingData,
|
||||
PrefetchHooks Function()
|
||||
> {
|
||||
class $SettingTableManager extends RootTableManager<
|
||||
_$UserDatabase,
|
||||
Setting,
|
||||
SettingData,
|
||||
$SettingFilterComposer,
|
||||
$SettingOrderingComposer,
|
||||
$SettingAnnotationComposer,
|
||||
$SettingCreateCompanionBuilder,
|
||||
$SettingUpdateCompanionBuilder,
|
||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||
SettingData,
|
||||
PrefetchHooks Function()> {
|
||||
$SettingTableManager(_$UserDatabase db, Setting table)
|
||||
: super(
|
||||
TableManagerState(
|
||||
: super(TableManagerState(
|
||||
db: db,
|
||||
table: table,
|
||||
createFilteringComposer:
|
||||
() => $SettingFilterComposer($db: db, $table: table),
|
||||
createOrderingComposer:
|
||||
() => $SettingOrderingComposer($db: db, $table: table),
|
||||
createComputedFieldComposer:
|
||||
() => $SettingAnnotationComposer($db: db, $table: table),
|
||||
updateCompanionCallback:
|
||||
({
|
||||
Value<String> key = const Value.absent(),
|
||||
Value<String?> partitionKey = const Value.absent(),
|
||||
Value<DriftAny?> value = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => SettingCompanion(
|
||||
key: key,
|
||||
partitionKey: partitionKey,
|
||||
value: value,
|
||||
rowid: rowid,
|
||||
),
|
||||
createCompanionCallback:
|
||||
({
|
||||
required String key,
|
||||
Value<String?> partitionKey = const Value.absent(),
|
||||
Value<DriftAny?> value = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => SettingCompanion.insert(
|
||||
key: key,
|
||||
partitionKey: partitionKey,
|
||||
value: value,
|
||||
rowid: rowid,
|
||||
),
|
||||
withReferenceMapper:
|
||||
(p0) =>
|
||||
p0
|
||||
.map(
|
||||
(e) => (
|
||||
e.readTable(table),
|
||||
BaseReferences(db, table, e),
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
createFilteringComposer: () =>
|
||||
$SettingFilterComposer($db: db, $table: table),
|
||||
createOrderingComposer: () =>
|
||||
$SettingOrderingComposer($db: db, $table: table),
|
||||
createComputedFieldComposer: () =>
|
||||
$SettingAnnotationComposer($db: db, $table: table),
|
||||
updateCompanionCallback: ({
|
||||
Value<String> key = const Value.absent(),
|
||||
Value<String?> partitionKey = const Value.absent(),
|
||||
Value<DriftAny?> value = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) =>
|
||||
SettingCompanion(
|
||||
key: key,
|
||||
partitionKey: partitionKey,
|
||||
value: value,
|
||||
rowid: rowid,
|
||||
),
|
||||
createCompanionCallback: ({
|
||||
required String key,
|
||||
Value<String?> partitionKey = const Value.absent(),
|
||||
Value<DriftAny?> value = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) =>
|
||||
SettingCompanion.insert(
|
||||
key: key,
|
||||
partitionKey: partitionKey,
|
||||
value: value,
|
||||
rowid: rowid,
|
||||
),
|
||||
withReferenceMapper: (p0) => p0
|
||||
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||
.toList(),
|
||||
prefetchHooksCallback: null,
|
||||
),
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
typedef $SettingProcessedTableManager =
|
||||
ProcessedTableManager<
|
||||
_$UserDatabase,
|
||||
Setting,
|
||||
SettingData,
|
||||
$SettingFilterComposer,
|
||||
$SettingOrderingComposer,
|
||||
$SettingAnnotationComposer,
|
||||
$SettingCreateCompanionBuilder,
|
||||
$SettingUpdateCompanionBuilder,
|
||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||
SettingData,
|
||||
PrefetchHooks Function()
|
||||
>;
|
||||
typedef $IconCacheCreateCompanionBuilder =
|
||||
IconCacheCompanion Function({
|
||||
required String origin,
|
||||
required Uint8List iconData,
|
||||
required DateTime fetchDate,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $IconCacheUpdateCompanionBuilder =
|
||||
IconCacheCompanion Function({
|
||||
Value<String> origin,
|
||||
Value<Uint8List> iconData,
|
||||
Value<DateTime> fetchDate,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $SettingProcessedTableManager = ProcessedTableManager<
|
||||
_$UserDatabase,
|
||||
Setting,
|
||||
SettingData,
|
||||
$SettingFilterComposer,
|
||||
$SettingOrderingComposer,
|
||||
$SettingAnnotationComposer,
|
||||
$SettingCreateCompanionBuilder,
|
||||
$SettingUpdateCompanionBuilder,
|
||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||
SettingData,
|
||||
PrefetchHooks Function()>;
|
||||
typedef $IconCacheCreateCompanionBuilder = IconCacheCompanion Function({
|
||||
required String origin,
|
||||
required Uint8List iconData,
|
||||
required DateTime fetchDate,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $IconCacheUpdateCompanionBuilder = IconCacheCompanion Function({
|
||||
Value<String> origin,
|
||||
Value<Uint8List> iconData,
|
||||
Value<DateTime> fetchDate,
|
||||
Value<int> rowid,
|
||||
});
|
||||
|
||||
class $IconCacheFilterComposer extends Composer<_$UserDatabase, IconCache> {
|
||||
$IconCacheFilterComposer({
|
||||
@@ -660,19 +584,13 @@ class $IconCacheFilterComposer extends Composer<_$UserDatabase, IconCache> {
|
||||
super.$removeJoinBuilderFromRootComposer,
|
||||
});
|
||||
ColumnFilters<String> get origin => $composableBuilder(
|
||||
column: $table.origin,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
column: $table.origin, builder: (column) => ColumnFilters(column));
|
||||
|
||||
ColumnFilters<Uint8List> get iconData => $composableBuilder(
|
||||
column: $table.iconData,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
column: $table.iconData, builder: (column) => ColumnFilters(column));
|
||||
|
||||
ColumnFilters<DateTime> get fetchDate => $composableBuilder(
|
||||
column: $table.fetchDate,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
column: $table.fetchDate, builder: (column) => ColumnFilters(column));
|
||||
}
|
||||
|
||||
class $IconCacheOrderingComposer extends Composer<_$UserDatabase, IconCache> {
|
||||
@@ -684,19 +602,13 @@ class $IconCacheOrderingComposer extends Composer<_$UserDatabase, IconCache> {
|
||||
super.$removeJoinBuilderFromRootComposer,
|
||||
});
|
||||
ColumnOrderings<String> get origin => $composableBuilder(
|
||||
column: $table.origin,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
column: $table.origin, builder: (column) => ColumnOrderings(column));
|
||||
|
||||
ColumnOrderings<Uint8List> get iconData => $composableBuilder(
|
||||
column: $table.iconData,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
column: $table.iconData, builder: (column) => ColumnOrderings(column));
|
||||
|
||||
ColumnOrderings<DateTime> get fetchDate => $composableBuilder(
|
||||
column: $table.fetchDate,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
column: $table.fetchDate, builder: (column) => ColumnOrderings(column));
|
||||
}
|
||||
|
||||
class $IconCacheAnnotationComposer extends Composer<_$UserDatabase, IconCache> {
|
||||
@@ -717,88 +629,71 @@ class $IconCacheAnnotationComposer extends Composer<_$UserDatabase, IconCache> {
|
||||
$composableBuilder(column: $table.fetchDate, builder: (column) => column);
|
||||
}
|
||||
|
||||
class $IconCacheTableManager
|
||||
extends
|
||||
RootTableManager<
|
||||
_$UserDatabase,
|
||||
IconCache,
|
||||
IconCacheData,
|
||||
$IconCacheFilterComposer,
|
||||
$IconCacheOrderingComposer,
|
||||
$IconCacheAnnotationComposer,
|
||||
$IconCacheCreateCompanionBuilder,
|
||||
$IconCacheUpdateCompanionBuilder,
|
||||
(
|
||||
IconCacheData,
|
||||
BaseReferences<_$UserDatabase, IconCache, IconCacheData>,
|
||||
),
|
||||
IconCacheData,
|
||||
PrefetchHooks Function()
|
||||
> {
|
||||
class $IconCacheTableManager extends RootTableManager<
|
||||
_$UserDatabase,
|
||||
IconCache,
|
||||
IconCacheData,
|
||||
$IconCacheFilterComposer,
|
||||
$IconCacheOrderingComposer,
|
||||
$IconCacheAnnotationComposer,
|
||||
$IconCacheCreateCompanionBuilder,
|
||||
$IconCacheUpdateCompanionBuilder,
|
||||
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
||||
IconCacheData,
|
||||
PrefetchHooks Function()> {
|
||||
$IconCacheTableManager(_$UserDatabase db, IconCache table)
|
||||
: super(
|
||||
TableManagerState(
|
||||
: super(TableManagerState(
|
||||
db: db,
|
||||
table: table,
|
||||
createFilteringComposer:
|
||||
() => $IconCacheFilterComposer($db: db, $table: table),
|
||||
createOrderingComposer:
|
||||
() => $IconCacheOrderingComposer($db: db, $table: table),
|
||||
createComputedFieldComposer:
|
||||
() => $IconCacheAnnotationComposer($db: db, $table: table),
|
||||
updateCompanionCallback:
|
||||
({
|
||||
Value<String> origin = const Value.absent(),
|
||||
Value<Uint8List> iconData = const Value.absent(),
|
||||
Value<DateTime> fetchDate = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => IconCacheCompanion(
|
||||
origin: origin,
|
||||
iconData: iconData,
|
||||
fetchDate: fetchDate,
|
||||
rowid: rowid,
|
||||
),
|
||||
createCompanionCallback:
|
||||
({
|
||||
required String origin,
|
||||
required Uint8List iconData,
|
||||
required DateTime fetchDate,
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => IconCacheCompanion.insert(
|
||||
origin: origin,
|
||||
iconData: iconData,
|
||||
fetchDate: fetchDate,
|
||||
rowid: rowid,
|
||||
),
|
||||
withReferenceMapper:
|
||||
(p0) =>
|
||||
p0
|
||||
.map(
|
||||
(e) => (
|
||||
e.readTable(table),
|
||||
BaseReferences(db, table, e),
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
createFilteringComposer: () =>
|
||||
$IconCacheFilterComposer($db: db, $table: table),
|
||||
createOrderingComposer: () =>
|
||||
$IconCacheOrderingComposer($db: db, $table: table),
|
||||
createComputedFieldComposer: () =>
|
||||
$IconCacheAnnotationComposer($db: db, $table: table),
|
||||
updateCompanionCallback: ({
|
||||
Value<String> origin = const Value.absent(),
|
||||
Value<Uint8List> iconData = const Value.absent(),
|
||||
Value<DateTime> fetchDate = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) =>
|
||||
IconCacheCompanion(
|
||||
origin: origin,
|
||||
iconData: iconData,
|
||||
fetchDate: fetchDate,
|
||||
rowid: rowid,
|
||||
),
|
||||
createCompanionCallback: ({
|
||||
required String origin,
|
||||
required Uint8List iconData,
|
||||
required DateTime fetchDate,
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) =>
|
||||
IconCacheCompanion.insert(
|
||||
origin: origin,
|
||||
iconData: iconData,
|
||||
fetchDate: fetchDate,
|
||||
rowid: rowid,
|
||||
),
|
||||
withReferenceMapper: (p0) => p0
|
||||
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||
.toList(),
|
||||
prefetchHooksCallback: null,
|
||||
),
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
typedef $IconCacheProcessedTableManager =
|
||||
ProcessedTableManager<
|
||||
_$UserDatabase,
|
||||
IconCache,
|
||||
IconCacheData,
|
||||
$IconCacheFilterComposer,
|
||||
$IconCacheOrderingComposer,
|
||||
$IconCacheAnnotationComposer,
|
||||
$IconCacheCreateCompanionBuilder,
|
||||
$IconCacheUpdateCompanionBuilder,
|
||||
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
||||
IconCacheData,
|
||||
PrefetchHooks Function()
|
||||
>;
|
||||
typedef $IconCacheProcessedTableManager = ProcessedTableManager<
|
||||
_$UserDatabase,
|
||||
IconCache,
|
||||
IconCacheData,
|
||||
$IconCacheFilterComposer,
|
||||
$IconCacheOrderingComposer,
|
||||
$IconCacheAnnotationComposer,
|
||||
$IconCacheCreateCompanionBuilder,
|
||||
$IconCacheUpdateCompanionBuilder,
|
||||
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
||||
IconCacheData,
|
||||
PrefetchHooks Function()>;
|
||||
|
||||
class $UserDatabaseManager {
|
||||
final _$UserDatabase _db;
|
||||
|
||||
@@ -10,8 +10,7 @@ abstract class _$EngineSettingsCWProxy {
|
||||
EngineSettings javascriptEnabled(bool? javascriptEnabled);
|
||||
|
||||
EngineSettings trackingProtectionPolicy(
|
||||
TrackingProtectionPolicy? trackingProtectionPolicy,
|
||||
);
|
||||
TrackingProtectionPolicy? trackingProtectionPolicy);
|
||||
|
||||
EngineSettings httpsOnlyMode(HttpsOnlyMode? httpsOnlyMode);
|
||||
|
||||
@@ -20,24 +19,19 @@ abstract class _$EngineSettingsCWProxy {
|
||||
EngineSettings preferredColorScheme(ColorScheme? preferredColorScheme);
|
||||
|
||||
EngineSettings cookieBannerHandlingMode(
|
||||
CookieBannerHandlingMode? cookieBannerHandlingMode,
|
||||
);
|
||||
CookieBannerHandlingMode? cookieBannerHandlingMode);
|
||||
|
||||
EngineSettings cookieBannerHandlingModePrivateBrowsing(
|
||||
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing,
|
||||
);
|
||||
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing);
|
||||
|
||||
EngineSettings cookieBannerHandlingGlobalRules(
|
||||
bool? cookieBannerHandlingGlobalRules,
|
||||
);
|
||||
bool? cookieBannerHandlingGlobalRules);
|
||||
|
||||
EngineSettings cookieBannerHandlingGlobalRulesSubFrames(
|
||||
bool? cookieBannerHandlingGlobalRulesSubFrames,
|
||||
);
|
||||
bool? cookieBannerHandlingGlobalRulesSubFrames);
|
||||
|
||||
EngineSettings webContentIsolationStrategy(
|
||||
WebContentIsolationStrategy? webContentIsolationStrategy,
|
||||
);
|
||||
WebContentIsolationStrategy? webContentIsolationStrategy);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `EngineSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
///
|
||||
@@ -71,8 +65,8 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
||||
|
||||
@override
|
||||
EngineSettings trackingProtectionPolicy(
|
||||
TrackingProtectionPolicy? trackingProtectionPolicy,
|
||||
) => this(trackingProtectionPolicy: trackingProtectionPolicy);
|
||||
TrackingProtectionPolicy? trackingProtectionPolicy) =>
|
||||
this(trackingProtectionPolicy: trackingProtectionPolicy);
|
||||
|
||||
@override
|
||||
EngineSettings httpsOnlyMode(HttpsOnlyMode? httpsOnlyMode) =>
|
||||
@@ -80,8 +74,8 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
||||
|
||||
@override
|
||||
EngineSettings globalPrivacyControlEnabled(
|
||||
bool? globalPrivacyControlEnabled,
|
||||
) => this(globalPrivacyControlEnabled: globalPrivacyControlEnabled);
|
||||
bool? globalPrivacyControlEnabled) =>
|
||||
this(globalPrivacyControlEnabled: globalPrivacyControlEnabled);
|
||||
|
||||
@override
|
||||
EngineSettings preferredColorScheme(ColorScheme? preferredColorScheme) =>
|
||||
@@ -89,36 +83,35 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
||||
|
||||
@override
|
||||
EngineSettings cookieBannerHandlingMode(
|
||||
CookieBannerHandlingMode? cookieBannerHandlingMode,
|
||||
) => this(cookieBannerHandlingMode: cookieBannerHandlingMode);
|
||||
CookieBannerHandlingMode? cookieBannerHandlingMode) =>
|
||||
this(cookieBannerHandlingMode: cookieBannerHandlingMode);
|
||||
|
||||
@override
|
||||
EngineSettings cookieBannerHandlingModePrivateBrowsing(
|
||||
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing,
|
||||
) => this(
|
||||
cookieBannerHandlingModePrivateBrowsing:
|
||||
cookieBannerHandlingModePrivateBrowsing,
|
||||
);
|
||||
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing) =>
|
||||
this(
|
||||
cookieBannerHandlingModePrivateBrowsing:
|
||||
cookieBannerHandlingModePrivateBrowsing);
|
||||
|
||||
@override
|
||||
EngineSettings cookieBannerHandlingGlobalRules(
|
||||
bool? cookieBannerHandlingGlobalRules,
|
||||
) => this(cookieBannerHandlingGlobalRules: cookieBannerHandlingGlobalRules);
|
||||
bool? cookieBannerHandlingGlobalRules) =>
|
||||
this(cookieBannerHandlingGlobalRules: cookieBannerHandlingGlobalRules);
|
||||
|
||||
@override
|
||||
EngineSettings cookieBannerHandlingGlobalRulesSubFrames(
|
||||
bool? cookieBannerHandlingGlobalRulesSubFrames,
|
||||
) => this(
|
||||
cookieBannerHandlingGlobalRulesSubFrames:
|
||||
cookieBannerHandlingGlobalRulesSubFrames,
|
||||
);
|
||||
bool? cookieBannerHandlingGlobalRulesSubFrames) =>
|
||||
this(
|
||||
cookieBannerHandlingGlobalRulesSubFrames:
|
||||
cookieBannerHandlingGlobalRulesSubFrames);
|
||||
|
||||
@override
|
||||
EngineSettings webContentIsolationStrategy(
|
||||
WebContentIsolationStrategy? webContentIsolationStrategy,
|
||||
) => this(webContentIsolationStrategy: webContentIsolationStrategy);
|
||||
WebContentIsolationStrategy? webContentIsolationStrategy) =>
|
||||
this(webContentIsolationStrategy: webContentIsolationStrategy);
|
||||
|
||||
@override
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `EngineSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
///
|
||||
/// Usage
|
||||
@@ -140,31 +133,28 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
||||
Object? webContentIsolationStrategy = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return EngineSettings(
|
||||
javascriptEnabled:
|
||||
javascriptEnabled == const $CopyWithPlaceholder()
|
||||
? _value.javascriptEnabled
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: javascriptEnabled as bool?,
|
||||
javascriptEnabled: javascriptEnabled == const $CopyWithPlaceholder()
|
||||
? _value.javascriptEnabled
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: javascriptEnabled as bool?,
|
||||
trackingProtectionPolicy:
|
||||
trackingProtectionPolicy == const $CopyWithPlaceholder()
|
||||
? _value.trackingProtectionPolicy
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: trackingProtectionPolicy as TrackingProtectionPolicy?,
|
||||
httpsOnlyMode:
|
||||
httpsOnlyMode == const $CopyWithPlaceholder()
|
||||
? _value.httpsOnlyMode
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: httpsOnlyMode as HttpsOnlyMode?,
|
||||
httpsOnlyMode: httpsOnlyMode == const $CopyWithPlaceholder()
|
||||
? _value.httpsOnlyMode
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: httpsOnlyMode as HttpsOnlyMode?,
|
||||
globalPrivacyControlEnabled:
|
||||
globalPrivacyControlEnabled == const $CopyWithPlaceholder()
|
||||
? _value.globalPrivacyControlEnabled
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: globalPrivacyControlEnabled as bool?,
|
||||
preferredColorScheme:
|
||||
preferredColorScheme == const $CopyWithPlaceholder()
|
||||
? _value.preferredColorScheme
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: preferredColorScheme as ColorScheme?,
|
||||
preferredColorScheme: preferredColorScheme == const $CopyWithPlaceholder()
|
||||
? _value.preferredColorScheme
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: preferredColorScheme as ColorScheme?,
|
||||
cookieBannerHandlingMode:
|
||||
cookieBannerHandlingMode == const $CopyWithPlaceholder()
|
||||
? _value.cookieBannerHandlingMode
|
||||
@@ -211,57 +201,47 @@ EngineSettings _$EngineSettingsFromJson(Map<String, dynamic> json) =>
|
||||
EngineSettings.withDefaults(
|
||||
javascriptEnabled: json['javascriptEnabled'] as bool?,
|
||||
trackingProtectionPolicy: $enumDecodeNullable(
|
||||
_$TrackingProtectionPolicyEnumMap,
|
||||
json['trackingProtectionPolicy'],
|
||||
),
|
||||
httpsOnlyMode: $enumDecodeNullable(
|
||||
_$HttpsOnlyModeEnumMap,
|
||||
json['httpsOnlyMode'],
|
||||
),
|
||||
_$TrackingProtectionPolicyEnumMap, json['trackingProtectionPolicy']),
|
||||
httpsOnlyMode:
|
||||
$enumDecodeNullable(_$HttpsOnlyModeEnumMap, json['httpsOnlyMode']),
|
||||
globalPrivacyControlEnabled: json['globalPrivacyControlEnabled'] as bool?,
|
||||
preferredColorScheme: $enumDecodeNullable(
|
||||
_$ColorSchemeEnumMap,
|
||||
json['preferredColorScheme'],
|
||||
),
|
||||
_$ColorSchemeEnumMap, json['preferredColorScheme']),
|
||||
cookieBannerHandlingMode: $enumDecodeNullable(
|
||||
_$CookieBannerHandlingModeEnumMap,
|
||||
json['cookieBannerHandlingMode'],
|
||||
),
|
||||
_$CookieBannerHandlingModeEnumMap, json['cookieBannerHandlingMode']),
|
||||
cookieBannerHandlingModePrivateBrowsing: $enumDecodeNullable(
|
||||
_$CookieBannerHandlingModeEnumMap,
|
||||
json['cookieBannerHandlingModePrivateBrowsing'],
|
||||
),
|
||||
_$CookieBannerHandlingModeEnumMap,
|
||||
json['cookieBannerHandlingModePrivateBrowsing']),
|
||||
cookieBannerHandlingGlobalRules:
|
||||
json['cookieBannerHandlingGlobalRules'] as bool?,
|
||||
cookieBannerHandlingGlobalRulesSubFrames:
|
||||
json['cookieBannerHandlingGlobalRulesSubFrames'] as bool?,
|
||||
webContentIsolationStrategy: $enumDecodeNullable(
|
||||
_$WebContentIsolationStrategyEnumMap,
|
||||
json['webContentIsolationStrategy'],
|
||||
),
|
||||
_$WebContentIsolationStrategyEnumMap,
|
||||
json['webContentIsolationStrategy']),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$EngineSettingsToJson(
|
||||
EngineSettings instance,
|
||||
) => <String, dynamic>{
|
||||
'javascriptEnabled': instance.javascriptEnabled,
|
||||
'trackingProtectionPolicy':
|
||||
_$TrackingProtectionPolicyEnumMap[instance.trackingProtectionPolicy]!,
|
||||
'httpsOnlyMode': _$HttpsOnlyModeEnumMap[instance.httpsOnlyMode]!,
|
||||
'preferredColorScheme': _$ColorSchemeEnumMap[instance.preferredColorScheme]!,
|
||||
'globalPrivacyControlEnabled': instance.globalPrivacyControlEnabled,
|
||||
'cookieBannerHandlingMode':
|
||||
_$CookieBannerHandlingModeEnumMap[instance.cookieBannerHandlingMode]!,
|
||||
'cookieBannerHandlingModePrivateBrowsing':
|
||||
_$CookieBannerHandlingModeEnumMap[instance
|
||||
.cookieBannerHandlingModePrivateBrowsing]!,
|
||||
'cookieBannerHandlingGlobalRules': instance.cookieBannerHandlingGlobalRules,
|
||||
'cookieBannerHandlingGlobalRulesSubFrames':
|
||||
instance.cookieBannerHandlingGlobalRulesSubFrames,
|
||||
'webContentIsolationStrategy':
|
||||
_$WebContentIsolationStrategyEnumMap[instance
|
||||
.webContentIsolationStrategy]!,
|
||||
};
|
||||
Map<String, dynamic> _$EngineSettingsToJson(EngineSettings instance) =>
|
||||
<String, dynamic>{
|
||||
'javascriptEnabled': instance.javascriptEnabled,
|
||||
'trackingProtectionPolicy':
|
||||
_$TrackingProtectionPolicyEnumMap[instance.trackingProtectionPolicy]!,
|
||||
'httpsOnlyMode': _$HttpsOnlyModeEnumMap[instance.httpsOnlyMode]!,
|
||||
'preferredColorScheme':
|
||||
_$ColorSchemeEnumMap[instance.preferredColorScheme]!,
|
||||
'globalPrivacyControlEnabled': instance.globalPrivacyControlEnabled,
|
||||
'cookieBannerHandlingMode':
|
||||
_$CookieBannerHandlingModeEnumMap[instance.cookieBannerHandlingMode]!,
|
||||
'cookieBannerHandlingModePrivateBrowsing':
|
||||
_$CookieBannerHandlingModeEnumMap[
|
||||
instance.cookieBannerHandlingModePrivateBrowsing]!,
|
||||
'cookieBannerHandlingGlobalRules':
|
||||
instance.cookieBannerHandlingGlobalRules,
|
||||
'cookieBannerHandlingGlobalRulesSubFrames':
|
||||
instance.cookieBannerHandlingGlobalRulesSubFrames,
|
||||
'webContentIsolationStrategy': _$WebContentIsolationStrategyEnumMap[
|
||||
instance.webContentIsolationStrategy]!,
|
||||
};
|
||||
|
||||
const _$TrackingProtectionPolicyEnumMap = {
|
||||
TrackingProtectionPolicy.none: 'none',
|
||||
|
||||
@@ -12,8 +12,7 @@ abstract class _$GeneralSettingsCWProxy {
|
||||
GeneralSettings enableReadability(bool enableReadability);
|
||||
|
||||
GeneralSettings deleteBrowsingDataOnQuit(
|
||||
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit,
|
||||
);
|
||||
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `GeneralSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
///
|
||||
@@ -43,10 +42,11 @@ class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy {
|
||||
|
||||
@override
|
||||
GeneralSettings deleteBrowsingDataOnQuit(
|
||||
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit,
|
||||
) => this(deleteBrowsingDataOnQuit: deleteBrowsingDataOnQuit);
|
||||
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit) =>
|
||||
this(deleteBrowsingDataOnQuit: deleteBrowsingDataOnQuit);
|
||||
|
||||
@override
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `GeneralSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
///
|
||||
/// Usage
|
||||
@@ -59,16 +59,14 @@ class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy {
|
||||
Object? deleteBrowsingDataOnQuit = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return GeneralSettings(
|
||||
themeMode:
|
||||
themeMode == const $CopyWithPlaceholder()
|
||||
? _value.themeMode
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: themeMode as ThemeMode,
|
||||
enableReadability:
|
||||
enableReadability == const $CopyWithPlaceholder()
|
||||
? _value.enableReadability
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: enableReadability as bool,
|
||||
themeMode: themeMode == const $CopyWithPlaceholder()
|
||||
? _value.themeMode
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: themeMode as ThemeMode,
|
||||
enableReadability: enableReadability == const $CopyWithPlaceholder()
|
||||
? _value.enableReadability
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: enableReadability as bool,
|
||||
deleteBrowsingDataOnQuit:
|
||||
deleteBrowsingDataOnQuit == const $CopyWithPlaceholder()
|
||||
? _value.deleteBrowsingDataOnQuit
|
||||
@@ -102,10 +100,9 @@ Map<String, dynamic> _$GeneralSettingsToJson(GeneralSettings instance) =>
|
||||
<String, dynamic>{
|
||||
'themeMode': _$ThemeModeEnumMap[instance.themeMode]!,
|
||||
'enableReadability': instance.enableReadability,
|
||||
'deleteBrowsingDataOnQuit':
|
||||
instance.deleteBrowsingDataOnQuit
|
||||
?.map((e) => _$DeleteBrowsingDataTypeEnumMap[e]!)
|
||||
.toList(),
|
||||
'deleteBrowsingDataOnQuit': instance.deleteBrowsingDataOnQuit
|
||||
?.map((e) => _$DeleteBrowsingDataTypeEnumMap[e]!)
|
||||
.toList(),
|
||||
};
|
||||
|
||||
const _$ThemeModeEnumMap = {
|
||||
|
||||
@@ -13,15 +13,14 @@ String _$iconCacheSizeMegabytesHash() =>
|
||||
@ProviderFor(iconCacheSizeMegabytes)
|
||||
final iconCacheSizeMegabytesProvider =
|
||||
AutoDisposeStreamProvider<double>.internal(
|
||||
iconCacheSizeMegabytes,
|
||||
name: r'iconCacheSizeMegabytesProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$iconCacheSizeMegabytesHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
iconCacheSizeMegabytes,
|
||||
name: r'iconCacheSizeMegabytesProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$iconCacheSizeMegabytesHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
@@ -33,10 +32,9 @@ String _$storedAuthDataHash() => r'5f7e3ef6233a2036f7ce3728131901a46b1e548e';
|
||||
final _storedAuthDataProvider = AutoDisposeFutureProvider<String?>.internal(
|
||||
_storedAuthData,
|
||||
name: r'_storedAuthDataProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$storedAuthDataHash,
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$storedAuthDataHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@@ -100,10 +98,9 @@ String _$incognitoModeEnabledHash() =>
|
||||
final incognitoModeEnabledProvider = AutoDisposeProvider<bool>.internal(
|
||||
incognitoModeEnabled,
|
||||
name: r'incognitoModeEnabledProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$incognitoModeEnabledHash,
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$incognitoModeEnabledHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@@ -12,15 +12,14 @@ String _$authRepositoryHash() => r'90ea6f082ef968831763c7f7ee31863f1fe329fe';
|
||||
@ProviderFor(AuthRepository)
|
||||
final authRepositoryProvider =
|
||||
AutoDisposeNotifierProvider<AuthRepository, void>.internal(
|
||||
AuthRepository.new,
|
||||
name: r'authRepositoryProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$authRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
AuthRepository.new,
|
||||
name: r'authRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$authRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$AuthRepository = AutoDisposeNotifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@@ -12,15 +12,14 @@ String _$cacheRepositoryHash() => r'548b7cba9a23c21bba39f0918d7d90acaaf8d8e9';
|
||||
@ProviderFor(CacheRepository)
|
||||
final cacheRepositoryProvider =
|
||||
NotifierProvider<CacheRepository, void>.internal(
|
||||
CacheRepository.new,
|
||||
name: r'cacheRepositoryProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$cacheRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
CacheRepository.new,
|
||||
name: r'cacheRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$cacheRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$CacheRepository = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@@ -13,15 +13,14 @@ String _$engineSettingsRepositoryHash() =>
|
||||
@ProviderFor(EngineSettingsRepository)
|
||||
final engineSettingsRepositoryProvider =
|
||||
NotifierProvider<EngineSettingsRepository, EngineSettings>.internal(
|
||||
EngineSettingsRepository.new,
|
||||
name: r'engineSettingsRepositoryProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineSettingsRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
EngineSettingsRepository.new,
|
||||
name: r'engineSettingsRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineSettingsRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$EngineSettingsRepository = Notifier<EngineSettings>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@@ -13,15 +13,14 @@ String _$generalSettingsRepositoryHash() =>
|
||||
@ProviderFor(GeneralSettingsRepository)
|
||||
final generalSettingsRepositoryProvider =
|
||||
NotifierProvider<GeneralSettingsRepository, GeneralSettings>.internal(
|
||||
GeneralSettingsRepository.new,
|
||||
name: r'generalSettingsRepositoryProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$generalSettingsRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
GeneralSettingsRepository.new,
|
||||
name: r'generalSettingsRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$generalSettingsRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$GeneralSettingsRepository = Notifier<GeneralSettings>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@@ -13,15 +13,14 @@ String _$localAuthenticationServiceHash() =>
|
||||
@ProviderFor(LocalAuthenticationService)
|
||||
final localAuthenticationServiceProvider =
|
||||
AsyncNotifierProvider<LocalAuthenticationService, bool>.internal(
|
||||
LocalAuthenticationService.new,
|
||||
name: r'localAuthenticationServiceProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$localAuthenticationServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
LocalAuthenticationService.new,
|
||||
name: r'localAuthenticationServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$localAuthenticationServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$LocalAuthenticationService = AsyncNotifier<bool>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@@ -12,15 +12,14 @@ String _$authControllerHash() => r'5b56651948683d669f29946fe02bdb004f436afb';
|
||||
@ProviderFor(AuthController)
|
||||
final authControllerProvider =
|
||||
AutoDisposeAsyncNotifierProvider<AuthController, void>.internal(
|
||||
AuthController.new,
|
||||
name: r'authControllerProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$authControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
AuthController.new,
|
||||
name: r'authControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$authControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$AuthController = AutoDisposeAsyncNotifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
Reference in New Issue
Block a user