migration done
This commit is contained in:
@@ -6,22 +6,44 @@ part of 'package_info_repository.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$packageInfoHash() => r'cc57db7b4684ab0d5df0f050b8ea045a3658e89a';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [packageInfo].
|
||||
@ProviderFor(packageInfo)
|
||||
final packageInfoProvider = FutureProvider<PackageInfo>.internal(
|
||||
packageInfo,
|
||||
name: r'packageInfoProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$packageInfoHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const packageInfoProvider = PackageInfoProvider._();
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef PackageInfoRef = FutureProviderRef<PackageInfo>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class PackageInfoProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<PackageInfo>,
|
||||
PackageInfo,
|
||||
FutureOr<PackageInfo>
|
||||
>
|
||||
with $FutureModifier<PackageInfo>, $FutureProvider<PackageInfo> {
|
||||
const PackageInfoProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'packageInfoProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$packageInfoHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$FutureProviderElement<PackageInfo> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $FutureProviderElement(pointer);
|
||||
|
||||
@override
|
||||
FutureOr<PackageInfo> create(Ref ref) {
|
||||
return packageInfo(ref);
|
||||
}
|
||||
}
|
||||
|
||||
String _$packageInfoHash() => r'cc57db7b4684ab0d5df0f050b8ea045a3658e89a';
|
||||
|
||||
@@ -6,42 +6,87 @@ part of 'home_widget.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(widgetPinnable)
|
||||
const widgetPinnableProvider = WidgetPinnableProvider._();
|
||||
|
||||
final class WidgetPinnableProvider
|
||||
extends $FunctionalProvider<AsyncValue<bool>, bool, FutureOr<bool>>
|
||||
with $FutureModifier<bool>, $FutureProvider<bool> {
|
||||
const WidgetPinnableProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'widgetPinnableProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$widgetPinnableHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$FutureProviderElement<bool> $createElement($ProviderPointer pointer) =>
|
||||
$FutureProviderElement(pointer);
|
||||
|
||||
@override
|
||||
FutureOr<bool> create(Ref ref) {
|
||||
return widgetPinnable(ref);
|
||||
}
|
||||
}
|
||||
|
||||
String _$widgetPinnableHash() => r'f91041f0f051ad0f00dd765cafea5571ca8c8088';
|
||||
|
||||
/// See also [widgetPinnable].
|
||||
@ProviderFor(widgetPinnable)
|
||||
final widgetPinnableProvider = FutureProvider<bool>.internal(
|
||||
widgetPinnable,
|
||||
name: r'widgetPinnableProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$widgetPinnableHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(appWidgetLaunchStream)
|
||||
const appWidgetLaunchStreamProvider = AppWidgetLaunchStreamProvider._();
|
||||
|
||||
final class AppWidgetLaunchStreamProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
Raw<Stream<ReceivedIntentParameter>>,
|
||||
Raw<Stream<ReceivedIntentParameter>>,
|
||||
Raw<Stream<ReceivedIntentParameter>>
|
||||
>
|
||||
with $Provider<Raw<Stream<ReceivedIntentParameter>>> {
|
||||
const AppWidgetLaunchStreamProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'appWidgetLaunchStreamProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$appWidgetLaunchStreamHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<Raw<Stream<ReceivedIntentParameter>>> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Raw<Stream<ReceivedIntentParameter>> create(Ref ref) {
|
||||
return appWidgetLaunchStream(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Raw<Stream<ReceivedIntentParameter>> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride:
|
||||
$SyncValueProvider<Raw<Stream<ReceivedIntentParameter>>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef WidgetPinnableRef = FutureProviderRef<bool>;
|
||||
String _$appWidgetLaunchStreamHash() =>
|
||||
r'ed042d1391ae3dbc26f806d6fa2e9a4a2464ae44';
|
||||
|
||||
/// See also [appWidgetLaunchStream].
|
||||
@ProviderFor(appWidgetLaunchStream)
|
||||
final appWidgetLaunchStreamProvider =
|
||||
AutoDisposeProvider<Raw<Stream<ReceivedIntentParameter>>>.internal(
|
||||
appWidgetLaunchStream,
|
||||
name: r'appWidgetLaunchStreamProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$appWidgetLaunchStreamHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef AppWidgetLaunchStreamRef =
|
||||
AutoDisposeProviderRef<Raw<Stream<ReceivedIntentParameter>>>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
*/
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:nullability/nullability.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/daos/bang.drift.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/database.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/definitions.drift.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang_data.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang_group.dart';
|
||||
|
||||
part 'bang.g.dart';
|
||||
|
||||
@DriftAccessor()
|
||||
class BangDao extends DatabaseAccessor<BangDatabase> with _$BangDaoMixin {
|
||||
class BangDao extends DatabaseAccessor<BangDatabase> with $BangDaoMixin {
|
||||
BangDao(super.db);
|
||||
|
||||
Selectable<Bang> getBangList({Iterable<BangGroup>? groups}) {
|
||||
@@ -122,9 +122,11 @@ class BangDao extends DatabaseAccessor<BangDatabase> with _$BangDaoMixin {
|
||||
final ftsQuery = db.buildFtsQuery(searchString);
|
||||
|
||||
if (ftsQuery.isNotEmpty) {
|
||||
return db.queryBangs(query: ftsQuery);
|
||||
return db.definitionsDrift.queryBangs(query: ftsQuery);
|
||||
} else {
|
||||
return db.queryBangsBasic(query: db.buildLikeQuery(searchString));
|
||||
return db.definitionsDrift.queryBangsBasic(
|
||||
query: db.buildLikeQuery(searchString),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
// dart format width=80
|
||||
// ignore_for_file: type=lint
|
||||
import 'package:drift/drift.dart' as i0;
|
||||
import 'package:weblibre/features/bangs/data/database/database.dart' as i1;
|
||||
|
||||
mixin $BangDaoMixin on i0.DatabaseAccessor<i1.BangDatabase> {}
|
||||
@@ -1,6 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'bang.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
mixin _$BangDaoMixin on DatabaseAccessor<BangDatabase> {}
|
||||
@@ -18,14 +18,14 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/daos/sync.drift.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/database.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/definitions.drift.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang_group.dart';
|
||||
|
||||
part 'sync.g.dart';
|
||||
|
||||
@DriftAccessor()
|
||||
class SyncDao extends DatabaseAccessor<BangDatabase> with _$SyncDaoMixin {
|
||||
class SyncDao extends DatabaseAccessor<BangDatabase> with $SyncDaoMixin {
|
||||
SyncDao(super.db);
|
||||
|
||||
SingleOrNullSelectable<DateTime?> getLastSyncOfGroup(BangGroup group) {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
// dart format width=80
|
||||
// ignore_for_file: type=lint
|
||||
import 'package:drift/drift.dart' as i0;
|
||||
import 'package:weblibre/features/bangs/data/database/database.dart' as i1;
|
||||
|
||||
mixin $SyncDaoMixin on i0.DatabaseAccessor<i1.BangDatabase> {}
|
||||
@@ -1,6 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'sync.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
mixin _$SyncDaoMixin on DatabaseAccessor<BangDatabase> {}
|
||||
@@ -20,17 +20,11 @@
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/daos/bang.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/daos/sync.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/drift/converters/bang_format.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang_data.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang_group.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/search_history_entry.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/database.drift.dart';
|
||||
import 'package:weblibre/features/search/domain/fts_tokenizer.dart';
|
||||
|
||||
part 'database.g.dart';
|
||||
|
||||
@DriftDatabase(include: {'database.drift'}, daos: [BangDao, SyncDao])
|
||||
class BangDatabase extends _$BangDatabase with PrefixQueryBuilderMixin {
|
||||
@DriftDatabase(include: {'definitions.drift'}, daos: [BangDao, SyncDao])
|
||||
class BangDatabase extends $BangDatabase with PrefixQueryBuilderMixin {
|
||||
@override
|
||||
final int schemaVersion = 1;
|
||||
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
// dart format width=80
|
||||
// ignore_for_file: type=lint
|
||||
import 'package:drift/drift.dart' as i0;
|
||||
import 'package:weblibre/features/bangs/data/database/definitions.drift.dart'
|
||||
as i1;
|
||||
import 'package:weblibre/features/bangs/data/database/daos/bang.dart' as i2;
|
||||
import 'package:weblibre/features/bangs/data/database/database.dart' as i3;
|
||||
import 'package:weblibre/features/bangs/data/database/daos/sync.dart' as i4;
|
||||
import 'package:drift/internal/modular.dart' as i5;
|
||||
import 'package:sqlite3/common.dart' as i6;
|
||||
|
||||
abstract class $BangDatabase extends i0.GeneratedDatabase {
|
||||
$BangDatabase(i0.QueryExecutor e) : super(e);
|
||||
$BangDatabaseManager get managers => $BangDatabaseManager(this);
|
||||
late final i1.BangTable bang = i1.BangTable(this);
|
||||
late final i1.BangSync bangSync = i1.BangSync(this);
|
||||
late final i1.BangFrequency bangFrequency = i1.BangFrequency(this);
|
||||
late final i1.BangHistory bangHistory = i1.BangHistory(this);
|
||||
late final i1.BangFts bangFts = i1.BangFts(this);
|
||||
late final i1.BangDataView bangDataView = i1.BangDataView(this);
|
||||
late final i2.BangDao bangDao = i2.BangDao(this as i3.BangDatabase);
|
||||
late final i4.SyncDao syncDao = i4.SyncDao(this as i3.BangDatabase);
|
||||
i1.DefinitionsDrift get definitionsDrift => i5.ReadDatabaseContainer(
|
||||
this,
|
||||
).accessor<i1.DefinitionsDrift>(i1.DefinitionsDrift.new);
|
||||
@override
|
||||
Iterable<i0.TableInfo<i0.Table, Object?>> get allTables =>
|
||||
allSchemaEntities.whereType<i0.TableInfo<i0.Table, Object?>>();
|
||||
@override
|
||||
List<i0.DatabaseSchemaEntity> get allSchemaEntities => [
|
||||
bang,
|
||||
bangSync,
|
||||
bangFrequency,
|
||||
bangHistory,
|
||||
bangFts,
|
||||
bangDataView,
|
||||
i1.bangAfterInsert,
|
||||
i1.bangAfterDelete,
|
||||
i1.bangAfterUpdate,
|
||||
];
|
||||
@override
|
||||
i0.StreamQueryUpdateRules get streamUpdateRules =>
|
||||
const i0.StreamQueryUpdateRules([
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'bang',
|
||||
limitUpdateKind: i0.UpdateKind.delete,
|
||||
),
|
||||
result: [
|
||||
i0.TableUpdate('bang_frequency', kind: i0.UpdateKind.delete),
|
||||
],
|
||||
),
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'bang',
|
||||
limitUpdateKind: i0.UpdateKind.insert,
|
||||
),
|
||||
result: [i0.TableUpdate('bang_fts', kind: i0.UpdateKind.insert)],
|
||||
),
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'bang',
|
||||
limitUpdateKind: i0.UpdateKind.delete,
|
||||
),
|
||||
result: [i0.TableUpdate('bang_fts', kind: i0.UpdateKind.insert)],
|
||||
),
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'bang',
|
||||
limitUpdateKind: i0.UpdateKind.update,
|
||||
),
|
||||
result: [i0.TableUpdate('bang_fts', kind: i0.UpdateKind.insert)],
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
class $BangDatabaseManager {
|
||||
final $BangDatabase _db;
|
||||
$BangDatabaseManager(this._db);
|
||||
i1.$BangTableTableManager get bang =>
|
||||
i1.$BangTableTableManager(_db, _db.bang);
|
||||
i1.$BangSyncTableManager get bangSync =>
|
||||
i1.$BangSyncTableManager(_db, _db.bangSync);
|
||||
i1.$BangFrequencyTableManager get bangFrequency =>
|
||||
i1.$BangFrequencyTableManager(_db, _db.bangFrequency);
|
||||
i1.$BangHistoryTableManager get bangHistory =>
|
||||
i1.$BangHistoryTableManager(_db, _db.bangHistory);
|
||||
i1.$BangFtsTableManager get bangFts =>
|
||||
i1.$BangFtsTableManager(_db, _db.bangFts);
|
||||
}
|
||||
|
||||
extension DefineFunctions on i6.CommonDatabase {
|
||||
void defineFunctions({
|
||||
required String Function(int, String?) lexoRankNext,
|
||||
required String Function(int, String?) lexoRankPrevious,
|
||||
required String Function(String?, String?) lexoRankReorderAfter,
|
||||
required String Function(String?, String?) lexoRankReorderBefore,
|
||||
}) {
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_next',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as int;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankNext(arg0, arg1);
|
||||
},
|
||||
);
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_previous',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as int;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankPrevious(arg0, arg1);
|
||||
},
|
||||
);
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_reorder_after',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as String?;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankReorderAfter(arg0, arg1);
|
||||
},
|
||||
);
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_reorder_before',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as String?;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankReorderBefore(arg0, arg1);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -21,8 +21,7 @@ import 'package:copy_with_extension/copy_with_extension.dart';
|
||||
import 'package:drift/drift.dart' show Expression, Insertable, Value;
|
||||
import 'package:fast_equatable/fast_equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:weblibre/features/bangs/data/database/database.dart'
|
||||
show BangCompanion;
|
||||
import 'package:weblibre/features/bangs/data/database/definitions.drift.dart';
|
||||
import 'package:weblibre/features/bangs/data/models/bang_group.dart';
|
||||
|
||||
part 'bang.g.dart';
|
||||
|
||||
@@ -23,12 +23,13 @@ abstract class _$BangCWProxy {
|
||||
|
||||
Bang format(Set<BangFormat>? format);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Bang(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `Bang(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// Bang(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
Bang call({
|
||||
String websiteName,
|
||||
String domain,
|
||||
@@ -41,43 +42,45 @@ abstract class _$BangCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfBang.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfBang.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfBang.copyWith(...)` or call `instanceOfBang.copyWith.fieldName(value)` for a single field.
|
||||
class _$BangCWProxyImpl implements _$BangCWProxy {
|
||||
const _$BangCWProxyImpl(this._value);
|
||||
|
||||
final Bang _value;
|
||||
|
||||
@override
|
||||
Bang websiteName(String websiteName) => this(websiteName: websiteName);
|
||||
Bang websiteName(String websiteName) => call(websiteName: websiteName);
|
||||
|
||||
@override
|
||||
Bang domain(String domain) => this(domain: domain);
|
||||
Bang domain(String domain) => call(domain: domain);
|
||||
|
||||
@override
|
||||
Bang trigger(String trigger) => this(trigger: trigger);
|
||||
Bang trigger(String trigger) => call(trigger: trigger);
|
||||
|
||||
@override
|
||||
Bang urlTemplate(String urlTemplate) => this(urlTemplate: urlTemplate);
|
||||
Bang urlTemplate(String urlTemplate) => call(urlTemplate: urlTemplate);
|
||||
|
||||
@override
|
||||
Bang group(BangGroup? group) => this(group: group);
|
||||
Bang group(BangGroup? group) => call(group: group);
|
||||
|
||||
@override
|
||||
Bang category(String? category) => this(category: category);
|
||||
Bang category(String? category) => call(category: category);
|
||||
|
||||
@override
|
||||
Bang subCategory(String? subCategory) => this(subCategory: subCategory);
|
||||
Bang subCategory(String? subCategory) => call(subCategory: subCategory);
|
||||
|
||||
@override
|
||||
Bang format(Set<BangFormat>? format) => this(format: format);
|
||||
Bang format(Set<BangFormat>? format) => call(format: format);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Bang(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `Bang(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// Bang(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
Bang call({
|
||||
Object? websiteName = const $CopyWithPlaceholder(),
|
||||
Object? domain = const $CopyWithPlaceholder(),
|
||||
@@ -89,19 +92,21 @@ class _$BangCWProxyImpl implements _$BangCWProxy {
|
||||
Object? format = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return Bang(
|
||||
websiteName: websiteName == const $CopyWithPlaceholder()
|
||||
websiteName:
|
||||
websiteName == const $CopyWithPlaceholder() || websiteName == null
|
||||
? _value.websiteName
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: websiteName as String,
|
||||
domain: domain == const $CopyWithPlaceholder()
|
||||
domain: domain == const $CopyWithPlaceholder() || domain == null
|
||||
? _value.domain
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: domain as String,
|
||||
trigger: trigger == const $CopyWithPlaceholder()
|
||||
trigger: trigger == const $CopyWithPlaceholder() || trigger == null
|
||||
? _value.trigger
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: trigger as String,
|
||||
urlTemplate: urlTemplate == const $CopyWithPlaceholder()
|
||||
urlTemplate:
|
||||
urlTemplate == const $CopyWithPlaceholder() || urlTemplate == null
|
||||
? _value.urlTemplate
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: urlTemplate as String,
|
||||
@@ -126,7 +131,8 @@ class _$BangCWProxyImpl implements _$BangCWProxy {
|
||||
}
|
||||
|
||||
extension $BangCopyWith on Bang {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfBang.copyWith(...)` or like so:`instanceOfBang.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfBang.copyWith(...)` or `instanceOfBang.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$BangCWProxy get copyWith => _$BangCWProxyImpl(this);
|
||||
}
|
||||
|
||||
@@ -27,12 +27,13 @@ abstract class _$BangDataCWProxy {
|
||||
|
||||
BangData icon(BrowserIcon? icon);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `BangData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `BangData(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// BangData(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
BangData call({
|
||||
String websiteName,
|
||||
String domain,
|
||||
@@ -47,49 +48,51 @@ abstract class _$BangDataCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfBangData.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfBangData.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfBangData.copyWith(...)` or call `instanceOfBangData.copyWith.fieldName(value)` for a single field.
|
||||
class _$BangDataCWProxyImpl implements _$BangDataCWProxy {
|
||||
const _$BangDataCWProxyImpl(this._value);
|
||||
|
||||
final BangData _value;
|
||||
|
||||
@override
|
||||
BangData websiteName(String websiteName) => this(websiteName: websiteName);
|
||||
BangData websiteName(String websiteName) => call(websiteName: websiteName);
|
||||
|
||||
@override
|
||||
BangData domain(String domain) => this(domain: domain);
|
||||
BangData domain(String domain) => call(domain: domain);
|
||||
|
||||
@override
|
||||
BangData trigger(String trigger) => this(trigger: trigger);
|
||||
BangData trigger(String trigger) => call(trigger: trigger);
|
||||
|
||||
@override
|
||||
BangData urlTemplate(String urlTemplate) => this(urlTemplate: urlTemplate);
|
||||
BangData urlTemplate(String urlTemplate) => call(urlTemplate: urlTemplate);
|
||||
|
||||
@override
|
||||
BangData category(String? category) => this(category: category);
|
||||
BangData category(String? category) => call(category: category);
|
||||
|
||||
@override
|
||||
BangData subCategory(String? subCategory) => this(subCategory: subCategory);
|
||||
BangData subCategory(String? subCategory) => call(subCategory: subCategory);
|
||||
|
||||
@override
|
||||
BangData format(Set<BangFormat>? format) => this(format: format);
|
||||
BangData format(Set<BangFormat>? format) => call(format: format);
|
||||
|
||||
@override
|
||||
BangData frequency(int? frequency) => this(frequency: frequency);
|
||||
BangData frequency(int? frequency) => call(frequency: frequency);
|
||||
|
||||
@override
|
||||
BangData lastUsed(DateTime? lastUsed) => this(lastUsed: lastUsed);
|
||||
BangData lastUsed(DateTime? lastUsed) => call(lastUsed: lastUsed);
|
||||
|
||||
@override
|
||||
BangData icon(BrowserIcon? icon) => this(icon: icon);
|
||||
BangData icon(BrowserIcon? icon) => call(icon: icon);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `BangData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `BangData(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// BangData(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
BangData call({
|
||||
Object? websiteName = const $CopyWithPlaceholder(),
|
||||
Object? domain = const $CopyWithPlaceholder(),
|
||||
@@ -103,19 +106,21 @@ class _$BangDataCWProxyImpl implements _$BangDataCWProxy {
|
||||
Object? icon = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return BangData(
|
||||
websiteName: websiteName == const $CopyWithPlaceholder()
|
||||
websiteName:
|
||||
websiteName == const $CopyWithPlaceholder() || websiteName == null
|
||||
? _value.websiteName
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: websiteName as String,
|
||||
domain: domain == const $CopyWithPlaceholder()
|
||||
domain: domain == const $CopyWithPlaceholder() || domain == null
|
||||
? _value.domain
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: domain as String,
|
||||
trigger: trigger == const $CopyWithPlaceholder()
|
||||
trigger: trigger == const $CopyWithPlaceholder() || trigger == null
|
||||
? _value.trigger
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: trigger as String,
|
||||
urlTemplate: urlTemplate == const $CopyWithPlaceholder()
|
||||
urlTemplate:
|
||||
urlTemplate == const $CopyWithPlaceholder() || urlTemplate == null
|
||||
? _value.urlTemplate
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: urlTemplate as String,
|
||||
@@ -148,7 +153,8 @@ class _$BangDataCWProxyImpl implements _$BangDataCWProxy {
|
||||
}
|
||||
|
||||
extension $BangDataCopyWith on BangData {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfBangData.copyWith(...)` or like so:`instanceOfBangData.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfBangData.copyWith(...)` or `instanceOfBangData.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$BangDataCWProxy get copyWith => _$BangDataCWProxyImpl(this);
|
||||
}
|
||||
|
||||
@@ -6,22 +6,46 @@ part of 'providers.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$bangDatabaseHash() => r'e31cf4b499300aff65174a16fb74c7dd8ec3d6f0';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [bangDatabase].
|
||||
@ProviderFor(bangDatabase)
|
||||
final bangDatabaseProvider = Provider<BangDatabase>.internal(
|
||||
bangDatabase,
|
||||
name: r'bangDatabaseProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$bangDatabaseHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const bangDatabaseProvider = BangDatabaseProvider._();
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef BangDatabaseRef = ProviderRef<BangDatabase>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class BangDatabaseProvider
|
||||
extends $FunctionalProvider<BangDatabase, BangDatabase, BangDatabase>
|
||||
with $Provider<BangDatabase> {
|
||||
const BangDatabaseProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bangDatabaseProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bangDatabaseHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<BangDatabase> $createElement($ProviderPointer pointer) =>
|
||||
$ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
BangDatabase create(Ref ref) {
|
||||
return bangDatabase(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(BangDatabase value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<BangDatabase>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$bangDatabaseHash() => r'e31cf4b499300aff65174a16fb74c7dd8ec3d6f0';
|
||||
|
||||
@@ -6,22 +6,59 @@ part of 'data_source.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BangDataSourceService)
|
||||
const bangDataSourceServiceProvider = BangDataSourceServiceProvider._();
|
||||
|
||||
final class BangDataSourceServiceProvider
|
||||
extends $NotifierProvider<BangDataSourceService, void> {
|
||||
const BangDataSourceServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bangDataSourceServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bangDataSourceServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BangDataSourceService create() => BangDataSourceService();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$bangDataSourceServiceHash() =>
|
||||
r'2ff811ece417ae498dacc04a2fa963cffb34c8a9';
|
||||
|
||||
/// See also [BangDataSourceService].
|
||||
@ProviderFor(BangDataSourceService)
|
||||
final bangDataSourceServiceProvider =
|
||||
NotifierProvider<BangDataSourceService, void>.internal(
|
||||
BangDataSourceService.new,
|
||||
name: r'bangDataSourceServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$bangDataSourceServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$BangDataSourceService = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$BangDataSourceService extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,40 +6,108 @@ part of 'search.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BangSearch)
|
||||
const bangSearchProvider = BangSearchProvider._();
|
||||
|
||||
final class BangSearchProvider
|
||||
extends $StreamNotifierProvider<BangSearch, List<BangData>> {
|
||||
const BangSearchProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bangSearchProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bangSearchHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BangSearch create() => BangSearch();
|
||||
}
|
||||
|
||||
String _$bangSearchHash() => r'6b7452d48698c01870c5c75f0c10cadaafc481c8';
|
||||
|
||||
/// See also [BangSearch].
|
||||
@ProviderFor(BangSearch)
|
||||
final bangSearchProvider =
|
||||
AutoDisposeStreamNotifierProvider<BangSearch, List<BangData>>.internal(
|
||||
BangSearch.new,
|
||||
name: r'bangSearchProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$bangSearchHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
abstract class _$BangSearch extends $StreamNotifier<List<BangData>> {
|
||||
Stream<List<BangData>> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<AsyncValue<List<BangData>>, List<BangData>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<List<BangData>>, List<BangData>>,
|
||||
AsyncValue<List<BangData>>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@ProviderFor(SeamlessBang)
|
||||
const seamlessBangProvider = SeamlessBangProvider._();
|
||||
|
||||
final class SeamlessBangProvider
|
||||
extends $NotifierProvider<SeamlessBang, AsyncValue<List<BangData>>> {
|
||||
const SeamlessBangProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'seamlessBangProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$seamlessBangHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
SeamlessBang create() => SeamlessBang();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(AsyncValue<List<BangData>> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<AsyncValue<List<BangData>>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
typedef _$BangSearch = AutoDisposeStreamNotifier<List<BangData>>;
|
||||
String _$seamlessBangHash() => r'8bd7a2cbe4c302ae08f85167290666a7437f8b9b';
|
||||
|
||||
/// See also [SeamlessBang].
|
||||
@ProviderFor(SeamlessBang)
|
||||
final seamlessBangProvider =
|
||||
AutoDisposeNotifierProvider<
|
||||
SeamlessBang,
|
||||
AsyncValue<List<BangData>>
|
||||
>.internal(
|
||||
SeamlessBang.new,
|
||||
name: r'seamlessBangProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$seamlessBangHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$SeamlessBang = AutoDisposeNotifier<AsyncValue<List<BangData>>>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$SeamlessBang extends $Notifier<AsyncValue<List<BangData>>> {
|
||||
AsyncValue<List<BangData>> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref =
|
||||
this.ref
|
||||
as $Ref<AsyncValue<List<BangData>>, AsyncValue<List<BangData>>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<
|
||||
AsyncValue<List<BangData>>,
|
||||
AsyncValue<List<BangData>>
|
||||
>,
|
||||
AsyncValue<List<BangData>>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,14 +46,17 @@ class BangDataRepository extends _$BangDataRepository {
|
||||
}
|
||||
|
||||
Stream<Map<String, List<String>>> watchCategories() {
|
||||
return ref.read(bangDatabaseProvider).categoriesJson().watchSingle().map((
|
||||
json,
|
||||
) {
|
||||
final decoded = jsonDecode(json) as Map<String, dynamic>;
|
||||
return decoded.map(
|
||||
(key, value) => MapEntry(key, (value as List<dynamic>).cast()),
|
||||
);
|
||||
});
|
||||
return ref
|
||||
.read(bangDatabaseProvider)
|
||||
.definitionsDrift
|
||||
.categoriesJson()
|
||||
.watchSingle()
|
||||
.map((json) {
|
||||
final decoded = jsonDecode(json) as Map<String, dynamic>;
|
||||
return decoded.map(
|
||||
(key, value) => MapEntry(key, (value as List<dynamic>).cast()),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Stream<int> watchBangCount(BangGroup group) {
|
||||
@@ -96,6 +99,7 @@ class BangDataRepository extends _$BangDataRepository {
|
||||
Stream<List<SearchHistoryEntry>> watchSearchHistory({required int limit}) {
|
||||
return ref
|
||||
.read(bangDatabaseProvider)
|
||||
.definitionsDrift
|
||||
.searchHistoryEntries(limit: limit)
|
||||
.watch();
|
||||
}
|
||||
@@ -116,7 +120,7 @@ class BangDataRepository extends _$BangDataRepository {
|
||||
//Pack in a transaction to bundle rebuilds of watch() queries
|
||||
return db.transaction(() async {
|
||||
await db.bangDao.addSearchEntry(trigger, searchQuery);
|
||||
await db.evictHistoryEntries(limit: maxEntryCount);
|
||||
await db.definitionsDrift.evictHistoryEntries(limit: maxEntryCount);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -6,22 +6,59 @@ part of 'data.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$bangDataRepositoryHash() =>
|
||||
r'095708cfffe8d0fb604dc02f69e77ae1c050a893';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [BangDataRepository].
|
||||
@ProviderFor(BangDataRepository)
|
||||
final bangDataRepositoryProvider =
|
||||
NotifierProvider<BangDataRepository, void>.internal(
|
||||
BangDataRepository.new,
|
||||
name: r'bangDataRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$bangDataRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const bangDataRepositoryProvider = BangDataRepositoryProvider._();
|
||||
|
||||
typedef _$BangDataRepository = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class BangDataRepositoryProvider
|
||||
extends $NotifierProvider<BangDataRepository, void> {
|
||||
const BangDataRepositoryProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bangDataRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bangDataRepositoryHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BangDataRepository create() => BangDataRepository();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$bangDataRepositoryHash() =>
|
||||
r'5e25ce123d4667a0b12316f5b771b6776c40f280';
|
||||
|
||||
abstract class _$BangDataRepository extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ class BangSyncRepository extends _$BangSyncRepository {
|
||||
remoteBangs: remoteBangs,
|
||||
syncTime: DateTime.now(),
|
||||
);
|
||||
await db.optimizeFtsIndex();
|
||||
await db.definitionsDrift.optimizeFtsIndex();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ class BangSyncRepository extends _$BangSyncRepository {
|
||||
remoteBangs: remoteBangs,
|
||||
syncTime: sourceDate,
|
||||
);
|
||||
await db.optimizeFtsIndex();
|
||||
await db.definitionsDrift.optimizeFtsIndex();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -6,22 +6,59 @@ part of 'sync.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$bangSyncRepositoryHash() =>
|
||||
r'0b83cd341c7a6b84cc59a4b077274e0cb0dd495a';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [BangSyncRepository].
|
||||
@ProviderFor(BangSyncRepository)
|
||||
final bangSyncRepositoryProvider =
|
||||
NotifierProvider<BangSyncRepository, void>.internal(
|
||||
BangSyncRepository.new,
|
||||
name: r'bangSyncRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$bangSyncRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const bangSyncRepositoryProvider = BangSyncRepositoryProvider._();
|
||||
|
||||
typedef _$BangSyncRepository = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class BangSyncRepositoryProvider
|
||||
extends $NotifierProvider<BangSyncRepository, void> {
|
||||
const BangSyncRepositoryProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bangSyncRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bangSyncRepositoryHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BangSyncRepository create() => BangSyncRepository();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$bangSyncRepositoryHash() =>
|
||||
r'bb977652087d2ff2cb75b093adcfc45dafa21d2a';
|
||||
|
||||
abstract class _$BangSyncRepository extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ class SiteSearch extends HookConsumerWidget {
|
||||
|
||||
final selectedBang = ref.watch(selectedBangDataProvider(domain: domain));
|
||||
final defaultSearchBang = ref.watch(
|
||||
defaultSearchBangDataProvider.select((value) => value.valueOrNull),
|
||||
defaultSearchBangDataProvider.select((value) => value.value),
|
||||
);
|
||||
|
||||
Future<void> submitSearch(String value) async {
|
||||
|
||||
@@ -6,38 +6,104 @@ part of 'bottom_sheet.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BottomSheetController)
|
||||
const bottomSheetControllerProvider = BottomSheetControllerProvider._();
|
||||
|
||||
final class BottomSheetControllerProvider
|
||||
extends $NotifierProvider<BottomSheetController, Sheet?> {
|
||||
const BottomSheetControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bottomSheetControllerProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bottomSheetControllerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BottomSheetController create() => BottomSheetController();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Sheet? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<Sheet?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$bottomSheetControllerHash() =>
|
||||
r'0b0ea53a96b80b8c1cba79b1d5913274b7127d5b';
|
||||
|
||||
/// See also [BottomSheetController].
|
||||
@ProviderFor(BottomSheetController)
|
||||
final bottomSheetControllerProvider =
|
||||
AutoDisposeNotifierProvider<BottomSheetController, Sheet?>.internal(
|
||||
BottomSheetController.new,
|
||||
name: r'bottomSheetControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$bottomSheetControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
abstract class _$BottomSheetController extends $Notifier<Sheet?> {
|
||||
Sheet? build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<Sheet?, Sheet?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<Sheet?, Sheet?>,
|
||||
Sheet?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@ProviderFor(BottomSheetExtend)
|
||||
const bottomSheetExtendProvider = BottomSheetExtendProvider._();
|
||||
|
||||
final class BottomSheetExtendProvider
|
||||
extends $StreamNotifierProvider<BottomSheetExtend, double> {
|
||||
const BottomSheetExtendProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bottomSheetExtendProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bottomSheetExtendHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BottomSheetExtend create() => BottomSheetExtend();
|
||||
}
|
||||
|
||||
typedef _$BottomSheetController = AutoDisposeNotifier<Sheet?>;
|
||||
String _$bottomSheetExtendHash() => r'7e11b9047c15bdeb4dfcb488a8573daadb64e25c';
|
||||
|
||||
/// See also [BottomSheetExtend].
|
||||
@ProviderFor(BottomSheetExtend)
|
||||
final bottomSheetExtendProvider =
|
||||
StreamNotifierProvider<BottomSheetExtend, double>.internal(
|
||||
BottomSheetExtend.new,
|
||||
name: r'bottomSheetExtendProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$bottomSheetExtendHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$BottomSheetExtend = StreamNotifier<double>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$BottomSheetExtend extends $StreamNotifier<double> {
|
||||
Stream<double> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<AsyncValue<double>, double>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<double>, double>,
|
||||
AsyncValue<double>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,21 +6,58 @@ part of 'overlay.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(OverlayController)
|
||||
const overlayControllerProvider = OverlayControllerProvider._();
|
||||
|
||||
final class OverlayControllerProvider
|
||||
extends $NotifierProvider<OverlayController, WidgetBuilder?> {
|
||||
const OverlayControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'overlayControllerProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$overlayControllerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
OverlayController create() => OverlayController();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(WidgetBuilder? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<WidgetBuilder?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$overlayControllerHash() => r'7b7885e07ae557c14199b6942b5d6392592ab747';
|
||||
|
||||
/// See also [OverlayController].
|
||||
@ProviderFor(OverlayController)
|
||||
final overlayControllerProvider =
|
||||
AutoDisposeNotifierProvider<OverlayController, WidgetBuilder?>.internal(
|
||||
OverlayController.new,
|
||||
name: r'overlayControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$overlayControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$OverlayController = AutoDisposeNotifier<WidgetBuilder?>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$OverlayController extends $Notifier<WidgetBuilder?> {
|
||||
WidgetBuilder? build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<WidgetBuilder?, WidgetBuilder?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<WidgetBuilder?, WidgetBuilder?>,
|
||||
WidgetBuilder?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,12 +35,13 @@ abstract class _$TabStateCWProxy {
|
||||
|
||||
TabState findResultState(FindResultState findResultState);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `TabState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `TabState(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// TabState(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
TabState call({
|
||||
String? parentId,
|
||||
String? contextId,
|
||||
@@ -59,65 +60,67 @@ abstract class _$TabStateCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfTabState.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfTabState.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfTabState.copyWith(...)` or call `instanceOfTabState.copyWith.fieldName(value)` for a single field.
|
||||
class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
||||
const _$TabStateCWProxyImpl(this._value);
|
||||
|
||||
final TabState _value;
|
||||
|
||||
@override
|
||||
TabState parentId(String? parentId) => this(parentId: parentId);
|
||||
TabState parentId(String? parentId) => call(parentId: parentId);
|
||||
|
||||
@override
|
||||
TabState contextId(String? contextId) => this(contextId: contextId);
|
||||
TabState contextId(String? contextId) => call(contextId: contextId);
|
||||
|
||||
@override
|
||||
TabState url(Uri url) => this(url: url);
|
||||
TabState url(Uri url) => call(url: url);
|
||||
|
||||
@override
|
||||
TabState title(String title) => this(title: title);
|
||||
TabState title(String title) => call(title: title);
|
||||
|
||||
@override
|
||||
TabState icon(EquatableImage? icon) => this(icon: icon);
|
||||
TabState icon(EquatableImage? icon) => call(icon: icon);
|
||||
|
||||
@override
|
||||
TabState thumbnail(EquatableImage? thumbnail) => this(thumbnail: thumbnail);
|
||||
TabState thumbnail(EquatableImage? thumbnail) => call(thumbnail: thumbnail);
|
||||
|
||||
@override
|
||||
TabState progress(int progress) => this(progress: progress);
|
||||
TabState progress(int progress) => call(progress: progress);
|
||||
|
||||
@override
|
||||
TabState isPrivate(bool isPrivate) => this(isPrivate: isPrivate);
|
||||
TabState isPrivate(bool isPrivate) => call(isPrivate: isPrivate);
|
||||
|
||||
@override
|
||||
TabState isFullScreen(bool isFullScreen) => this(isFullScreen: isFullScreen);
|
||||
TabState isFullScreen(bool isFullScreen) => call(isFullScreen: isFullScreen);
|
||||
|
||||
@override
|
||||
TabState isLoading(bool isLoading) => this(isLoading: isLoading);
|
||||
TabState isLoading(bool isLoading) => call(isLoading: isLoading);
|
||||
|
||||
@override
|
||||
TabState securityInfoState(SecurityState securityInfoState) =>
|
||||
this(securityInfoState: securityInfoState);
|
||||
call(securityInfoState: securityInfoState);
|
||||
|
||||
@override
|
||||
TabState historyState(HistoryState historyState) =>
|
||||
this(historyState: historyState);
|
||||
call(historyState: historyState);
|
||||
|
||||
@override
|
||||
TabState readerableState(ReaderableState readerableState) =>
|
||||
this(readerableState: readerableState);
|
||||
call(readerableState: readerableState);
|
||||
|
||||
@override
|
||||
TabState findResultState(FindResultState findResultState) =>
|
||||
this(findResultState: findResultState);
|
||||
call(findResultState: findResultState);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `TabState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `TabState(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// TabState(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
TabState call({
|
||||
Object? parentId = const $CopyWithPlaceholder(),
|
||||
Object? contextId = const $CopyWithPlaceholder(),
|
||||
@@ -144,11 +147,11 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
||||
? _value.contextId
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: contextId as String?,
|
||||
url: url == const $CopyWithPlaceholder()
|
||||
url: url == const $CopyWithPlaceholder() || url == null
|
||||
? _value.url
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: url as Uri,
|
||||
title: title == const $CopyWithPlaceholder()
|
||||
title: title == const $CopyWithPlaceholder() || title == null
|
||||
? _value.title
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: title as String,
|
||||
@@ -160,35 +163,43 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
||||
? _value.thumbnail
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: thumbnail as EquatableImage?,
|
||||
progress: progress == const $CopyWithPlaceholder()
|
||||
progress: progress == const $CopyWithPlaceholder() || progress == null
|
||||
? _value.progress
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: progress as int,
|
||||
isPrivate: isPrivate == const $CopyWithPlaceholder()
|
||||
isPrivate: isPrivate == const $CopyWithPlaceholder() || isPrivate == null
|
||||
? _value.isPrivate
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: isPrivate as bool,
|
||||
isFullScreen: isFullScreen == const $CopyWithPlaceholder()
|
||||
isFullScreen:
|
||||
isFullScreen == const $CopyWithPlaceholder() || isFullScreen == null
|
||||
? _value.isFullScreen
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: isFullScreen as bool,
|
||||
isLoading: isLoading == const $CopyWithPlaceholder()
|
||||
isLoading: isLoading == const $CopyWithPlaceholder() || isLoading == null
|
||||
? _value.isLoading
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: isLoading as bool,
|
||||
securityInfoState: securityInfoState == const $CopyWithPlaceholder()
|
||||
securityInfoState:
|
||||
securityInfoState == const $CopyWithPlaceholder() ||
|
||||
securityInfoState == null
|
||||
? _value.securityInfoState
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: securityInfoState as SecurityState,
|
||||
historyState: historyState == const $CopyWithPlaceholder()
|
||||
historyState:
|
||||
historyState == const $CopyWithPlaceholder() || historyState == null
|
||||
? _value.historyState
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: historyState as HistoryState,
|
||||
readerableState: readerableState == const $CopyWithPlaceholder()
|
||||
readerableState:
|
||||
readerableState == const $CopyWithPlaceholder() ||
|
||||
readerableState == null
|
||||
? _value.readerableState
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: readerableState as ReaderableState,
|
||||
findResultState: findResultState == const $CopyWithPlaceholder()
|
||||
findResultState:
|
||||
findResultState == const $CopyWithPlaceholder() ||
|
||||
findResultState == null
|
||||
? _value.findResultState
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: findResultState as FindResultState,
|
||||
@@ -197,7 +208,8 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
||||
}
|
||||
|
||||
extension $TabStateCopyWith on TabState {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfTabState.copyWith(...)` or like so:`instanceOfTabState.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfTabState.copyWith(...)` or `instanceOfTabState.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$TabStateCWProxy get copyWith => _$TabStateCWProxyImpl(this);
|
||||
}
|
||||
|
||||
@@ -21,12 +21,13 @@ abstract class _$WebExtensionStateCWProxy {
|
||||
|
||||
WebExtensionState icon(EquatableImage? icon);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `WebExtensionState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `WebExtensionState(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// WebExtensionState(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
WebExtensionState call({
|
||||
String extensionId,
|
||||
bool enabled,
|
||||
@@ -38,7 +39,8 @@ abstract class _$WebExtensionStateCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfWebExtensionState.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfWebExtensionState.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfWebExtensionState.copyWith(...)` or call `instanceOfWebExtensionState.copyWith.fieldName(value)` for a single field.
|
||||
class _$WebExtensionStateCWProxyImpl implements _$WebExtensionStateCWProxy {
|
||||
const _$WebExtensionStateCWProxyImpl(this._value);
|
||||
|
||||
@@ -46,35 +48,36 @@ class _$WebExtensionStateCWProxyImpl implements _$WebExtensionStateCWProxy {
|
||||
|
||||
@override
|
||||
WebExtensionState extensionId(String extensionId) =>
|
||||
this(extensionId: extensionId);
|
||||
call(extensionId: extensionId);
|
||||
|
||||
@override
|
||||
WebExtensionState enabled(bool enabled) => this(enabled: enabled);
|
||||
WebExtensionState enabled(bool enabled) => call(enabled: enabled);
|
||||
|
||||
@override
|
||||
WebExtensionState title(String? title) => this(title: title);
|
||||
WebExtensionState title(String? title) => call(title: title);
|
||||
|
||||
@override
|
||||
WebExtensionState badgeText(String? badgeText) => this(badgeText: badgeText);
|
||||
WebExtensionState badgeText(String? badgeText) => call(badgeText: badgeText);
|
||||
|
||||
@override
|
||||
WebExtensionState badgeTextColor(Color? badgeTextColor) =>
|
||||
this(badgeTextColor: badgeTextColor);
|
||||
call(badgeTextColor: badgeTextColor);
|
||||
|
||||
@override
|
||||
WebExtensionState badgeBackgroundColor(Color? badgeBackgroundColor) =>
|
||||
this(badgeBackgroundColor: badgeBackgroundColor);
|
||||
call(badgeBackgroundColor: badgeBackgroundColor);
|
||||
|
||||
@override
|
||||
WebExtensionState icon(EquatableImage? icon) => this(icon: icon);
|
||||
WebExtensionState icon(EquatableImage? icon) => call(icon: icon);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `WebExtensionState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `WebExtensionState(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// WebExtensionState(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
WebExtensionState call({
|
||||
Object? extensionId = const $CopyWithPlaceholder(),
|
||||
Object? enabled = const $CopyWithPlaceholder(),
|
||||
@@ -85,11 +88,12 @@ class _$WebExtensionStateCWProxyImpl implements _$WebExtensionStateCWProxy {
|
||||
Object? icon = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return WebExtensionState(
|
||||
extensionId: extensionId == const $CopyWithPlaceholder()
|
||||
extensionId:
|
||||
extensionId == const $CopyWithPlaceholder() || extensionId == null
|
||||
? _value.extensionId
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: extensionId as String,
|
||||
enabled: enabled == const $CopyWithPlaceholder()
|
||||
enabled: enabled == const $CopyWithPlaceholder() || enabled == null
|
||||
? _value.enabled
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: enabled as bool,
|
||||
@@ -118,7 +122,8 @@ class _$WebExtensionStateCWProxyImpl implements _$WebExtensionStateCWProxy {
|
||||
}
|
||||
|
||||
extension $WebExtensionStateCopyWith on WebExtensionState {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfWebExtensionState.copyWith(...)` or like so:`instanceOfWebExtensionState.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfWebExtensionState.copyWith(...)` or `instanceOfWebExtensionState.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$WebExtensionStateCWProxy get copyWith =>
|
||||
_$WebExtensionStateCWProxyImpl(this);
|
||||
|
||||
@@ -6,110 +6,295 @@ part of 'providers.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(selectionActionService)
|
||||
const selectionActionServiceProvider = SelectionActionServiceProvider._();
|
||||
|
||||
final class SelectionActionServiceProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
GeckoSelectionActionService,
|
||||
GeckoSelectionActionService,
|
||||
GeckoSelectionActionService
|
||||
>
|
||||
with $Provider<GeckoSelectionActionService> {
|
||||
const SelectionActionServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectionActionServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectionActionServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<GeckoSelectionActionService> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
GeckoSelectionActionService create(Ref ref) {
|
||||
return selectionActionService(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(GeckoSelectionActionService value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<GeckoSelectionActionService>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectionActionServiceHash() =>
|
||||
r'c89d981c2ba253ed940887fa59c11ad93d8589a8';
|
||||
|
||||
/// See also [selectionActionService].
|
||||
@ProviderFor(selectionActionService)
|
||||
final selectionActionServiceProvider =
|
||||
Provider<GeckoSelectionActionService>.internal(
|
||||
selectionActionService,
|
||||
name: r'selectionActionServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectionActionServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(eventService)
|
||||
const eventServiceProvider = EventServiceProvider._();
|
||||
|
||||
final class EventServiceProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
GeckoEventService,
|
||||
GeckoEventService,
|
||||
GeckoEventService
|
||||
>
|
||||
with $Provider<GeckoEventService> {
|
||||
const EventServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'eventServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$eventServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<GeckoEventService> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
GeckoEventService create(Ref ref) {
|
||||
return eventService(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(GeckoEventService value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<GeckoEventService>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectionActionServiceRef = ProviderRef<GeckoSelectionActionService>;
|
||||
String _$eventServiceHash() => r'166b01f636fbdd4355dbc55a18ca4f83e0006de8';
|
||||
|
||||
/// See also [eventService].
|
||||
@ProviderFor(eventService)
|
||||
final eventServiceProvider = Provider<GeckoEventService>.internal(
|
||||
eventService,
|
||||
name: r'eventServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$eventServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(addonService)
|
||||
const addonServiceProvider = AddonServiceProvider._();
|
||||
|
||||
final class AddonServiceProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
GeckoAddonService,
|
||||
GeckoAddonService,
|
||||
GeckoAddonService
|
||||
>
|
||||
with $Provider<GeckoAddonService> {
|
||||
const AddonServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'addonServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$addonServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<GeckoAddonService> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
GeckoAddonService create(Ref ref) {
|
||||
return addonService(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(GeckoAddonService value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<GeckoAddonService>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef EventServiceRef = ProviderRef<GeckoEventService>;
|
||||
String _$addonServiceHash() => r'c7aca09b99c3810908176f3464f5f90a185aa5e7';
|
||||
|
||||
/// See also [addonService].
|
||||
@ProviderFor(addonService)
|
||||
final addonServiceProvider = Provider<GeckoAddonService>.internal(
|
||||
addonService,
|
||||
name: r'addonServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$addonServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(tabContentService)
|
||||
const tabContentServiceProvider = TabContentServiceProvider._();
|
||||
|
||||
final class TabContentServiceProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
GeckoTabContentService,
|
||||
GeckoTabContentService,
|
||||
GeckoTabContentService
|
||||
>
|
||||
with $Provider<GeckoTabContentService> {
|
||||
const TabContentServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'tabContentServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabContentServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<GeckoTabContentService> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
GeckoTabContentService create(Ref ref) {
|
||||
return tabContentService(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(GeckoTabContentService value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<GeckoTabContentService>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef AddonServiceRef = ProviderRef<GeckoAddonService>;
|
||||
String _$tabContentServiceHash() => r'd9a991add907ecc138c62790883e59d8e9aa9266';
|
||||
|
||||
/// See also [tabContentService].
|
||||
@ProviderFor(tabContentService)
|
||||
final tabContentServiceProvider = Provider<GeckoTabContentService>.internal(
|
||||
tabContentService,
|
||||
name: r'tabContentServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabContentServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(engineSuggestionsService)
|
||||
const engineSuggestionsServiceProvider = EngineSuggestionsServiceProvider._();
|
||||
|
||||
final class EngineSuggestionsServiceProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
GeckoSuggestionsService,
|
||||
GeckoSuggestionsService,
|
||||
GeckoSuggestionsService
|
||||
>
|
||||
with $Provider<GeckoSuggestionsService> {
|
||||
const EngineSuggestionsServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'engineSuggestionsServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$engineSuggestionsServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<GeckoSuggestionsService> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
GeckoSuggestionsService create(Ref ref) {
|
||||
return engineSuggestionsService(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(GeckoSuggestionsService value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<GeckoSuggestionsService>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef TabContentServiceRef = ProviderRef<GeckoTabContentService>;
|
||||
String _$engineSuggestionsServiceHash() =>
|
||||
r'f7414b335564578b2c7f6a86baf8bf13f2d5ba2d';
|
||||
|
||||
/// See also [engineSuggestionsService].
|
||||
@ProviderFor(engineSuggestionsService)
|
||||
final engineSuggestionsServiceProvider =
|
||||
Provider<GeckoSuggestionsService>.internal(
|
||||
engineSuggestionsService,
|
||||
name: r'engineSuggestionsServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineSuggestionsServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(EngineReadyState)
|
||||
const engineReadyStateProvider = EngineReadyStateProvider._();
|
||||
|
||||
final class EngineReadyStateProvider
|
||||
extends $NotifierProvider<EngineReadyState, bool> {
|
||||
const EngineReadyStateProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'engineReadyStateProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$engineReadyStateHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
EngineReadyState create() => EngineReadyState();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(bool value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<bool>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef EngineSuggestionsServiceRef = ProviderRef<GeckoSuggestionsService>;
|
||||
String _$engineReadyStateHash() => r'a892c48ffc29e3414de12e66d9bfec522e4f40a8';
|
||||
|
||||
/// See also [EngineReadyState].
|
||||
@ProviderFor(EngineReadyState)
|
||||
final engineReadyStateProvider =
|
||||
NotifierProvider<EngineReadyState, bool>.internal(
|
||||
EngineReadyState.new,
|
||||
name: r'engineReadyStateProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineReadyStateHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$EngineReadyState = Notifier<bool>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$EngineReadyState extends $Notifier<bool> {
|
||||
bool build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<bool, bool>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<bool, bool>,
|
||||
bool,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,41 +6,86 @@ part of 'browser_extension.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(browserExtensionService)
|
||||
const browserExtensionServiceProvider = BrowserExtensionServiceProvider._();
|
||||
|
||||
final class BrowserExtensionServiceProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
GeckoBrowserExtensionService,
|
||||
GeckoBrowserExtensionService,
|
||||
GeckoBrowserExtensionService
|
||||
>
|
||||
with $Provider<GeckoBrowserExtensionService> {
|
||||
const BrowserExtensionServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'browserExtensionServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$browserExtensionServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<GeckoBrowserExtensionService> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
GeckoBrowserExtensionService create(Ref ref) {
|
||||
return browserExtensionService(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(GeckoBrowserExtensionService value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<GeckoBrowserExtensionService>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$browserExtensionServiceHash() =>
|
||||
r'c3f67763e0abb10039b407fced6e175e5ec7c6c3';
|
||||
|
||||
/// See also [browserExtensionService].
|
||||
@ProviderFor(browserExtensionService)
|
||||
final browserExtensionServiceProvider =
|
||||
Provider<GeckoBrowserExtensionService>.internal(
|
||||
browserExtensionService,
|
||||
name: r'browserExtensionServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$browserExtensionServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef BrowserExtensionServiceRef = ProviderRef<GeckoBrowserExtensionService>;
|
||||
String _$feedRequestedHash() => r'4f179d0878072a77a87422ff6afdac53a3d57c04';
|
||||
|
||||
/// See also [feedRequested].
|
||||
@ProviderFor(feedRequested)
|
||||
final feedRequestedProvider = AutoDisposeStreamProvider<String>.internal(
|
||||
feedRequested,
|
||||
name: r'feedRequestedProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$feedRequestedHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const feedRequestedProvider = FeedRequestedProvider._();
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef FeedRequestedRef = AutoDisposeStreamProviderRef<String>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class FeedRequestedProvider
|
||||
extends $FunctionalProvider<AsyncValue<String>, String, Stream<String>>
|
||||
with $FutureModifier<String>, $StreamProvider<String> {
|
||||
const FeedRequestedProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'feedRequestedProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$feedRequestedHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$StreamProviderElement<String> $createElement($ProviderPointer pointer) =>
|
||||
$StreamProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Stream<String> create(Ref ref) {
|
||||
return feedRequested(ref);
|
||||
}
|
||||
}
|
||||
|
||||
String _$feedRequestedHash() => r'4f179d0878072a77a87422ff6afdac53a3d57c04';
|
||||
|
||||
@@ -6,20 +6,58 @@ part of 'selected_tab.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(SelectedTab)
|
||||
const selectedTabProvider = SelectedTabProvider._();
|
||||
|
||||
final class SelectedTabProvider
|
||||
extends $NotifierProvider<SelectedTab, String?> {
|
||||
const SelectedTabProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedTabProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedTabHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
SelectedTab create() => SelectedTab();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(String? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<String?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectedTabHash() => r'26d1bb90c777d7011f4f27f7b962584a4a62a0a7';
|
||||
|
||||
/// See also [SelectedTab].
|
||||
@ProviderFor(SelectedTab)
|
||||
final selectedTabProvider = NotifierProvider<SelectedTab, String?>.internal(
|
||||
SelectedTab.new,
|
||||
name: r'selectedTabProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedTabHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$SelectedTab = Notifier<String?>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$SelectedTab extends $Notifier<String?> {
|
||||
String? build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<String?, String?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<String?, String?>,
|
||||
String?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,21 +6,63 @@ part of 'tab_list.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(TabList)
|
||||
const tabListProvider = TabListProvider._();
|
||||
|
||||
final class TabListProvider
|
||||
extends $NotifierProvider<TabList, EquatableValue<List<String>>> {
|
||||
const TabListProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'tabListProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabListHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
TabList create() => TabList();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(EquatableValue<List<String>> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<EquatableValue<List<String>>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabListHash() => r'0b9ca1e089a59895df4cbf28691c2849a7004f08';
|
||||
|
||||
/// See also [TabList].
|
||||
@ProviderFor(TabList)
|
||||
final tabListProvider =
|
||||
NotifierProvider<TabList, EquatableValue<List<String>>>.internal(
|
||||
TabList.new,
|
||||
name: r'tabListProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabListHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$TabList = Notifier<EquatableValue<List<String>>>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$TabList extends $Notifier<EquatableValue<List<String>>> {
|
||||
EquatableValue<List<String>> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref =
|
||||
this.ref
|
||||
as $Ref<EquatableValue<List<String>>, EquatableValue<List<String>>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<
|
||||
EquatableValue<List<String>>,
|
||||
EquatableValue<List<String>>
|
||||
>,
|
||||
EquatableValue<List<String>>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,174 +6,138 @@ part of 'tab_session.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$selectedTabSessionNotifierHash() =>
|
||||
r'aef19991d5b05a2bb28e8a6ccb57dc75c2f3148f';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [selectedTabSessionNotifier].
|
||||
@ProviderFor(selectedTabSessionNotifier)
|
||||
final selectedTabSessionNotifierProvider =
|
||||
AutoDisposeProvider<Raw<TabSession>>.internal(
|
||||
selectedTabSessionNotifier,
|
||||
name: r'selectedTabSessionNotifierProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedTabSessionNotifierHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectedTabSessionNotifierRef = AutoDisposeProviderRef<Raw<TabSession>>;
|
||||
String _$tabSessionHash() => r'33d68f3860b3bc9a92db386535c7482bf4416008';
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$TabSession extends BuildlessAutoDisposeNotifier<void> {
|
||||
late final String? tabId;
|
||||
|
||||
void build({required String? tabId});
|
||||
}
|
||||
|
||||
/// See also [TabSession].
|
||||
@ProviderFor(TabSession)
|
||||
const tabSessionProvider = TabSessionFamily();
|
||||
const tabSessionProvider = TabSessionFamily._();
|
||||
|
||||
/// See also [TabSession].
|
||||
class TabSessionFamily extends Family<void> {
|
||||
/// See also [TabSession].
|
||||
const TabSessionFamily();
|
||||
final class TabSessionProvider extends $NotifierProvider<TabSession, void> {
|
||||
const TabSessionProvider._({
|
||||
required TabSessionFamily super.from,
|
||||
required String? super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'tabSessionProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
/// See also [TabSession].
|
||||
TabSessionProvider call({required String? tabId}) {
|
||||
return TabSessionProvider(tabId: tabId);
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabSessionHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'tabSessionProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
TabSessionProvider getProviderOverride(
|
||||
covariant TabSessionProvider provider,
|
||||
) {
|
||||
return call(tabId: provider.tabId);
|
||||
}
|
||||
TabSession create() => TabSession();
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'tabSessionProvider';
|
||||
}
|
||||
|
||||
/// See also [TabSession].
|
||||
class TabSessionProvider
|
||||
extends AutoDisposeNotifierProviderImpl<TabSession, void> {
|
||||
/// See also [TabSession].
|
||||
TabSessionProvider({required String? tabId})
|
||||
: this._internal(
|
||||
() => TabSession()..tabId = tabId,
|
||||
from: tabSessionProvider,
|
||||
name: r'tabSessionProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabSessionHash,
|
||||
dependencies: TabSessionFamily._dependencies,
|
||||
allTransitiveDependencies: TabSessionFamily._allTransitiveDependencies,
|
||||
tabId: tabId,
|
||||
);
|
||||
|
||||
TabSessionProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.tabId,
|
||||
}) : super.internal();
|
||||
|
||||
final String? tabId;
|
||||
|
||||
@override
|
||||
void runNotifierBuild(covariant TabSession notifier) {
|
||||
return notifier.build(tabId: tabId);
|
||||
}
|
||||
|
||||
@override
|
||||
Override overrideWith(TabSession Function() create) {
|
||||
return ProviderOverride(
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
override: TabSessionProvider._internal(
|
||||
() => create()..tabId = tabId,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
tabId: tabId,
|
||||
),
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
AutoDisposeNotifierProviderElement<TabSession, void> createElement() {
|
||||
return _TabSessionProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is TabSessionProvider && other.tabId == tabId;
|
||||
return other is TabSessionProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, tabId.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin TabSessionRef on AutoDisposeNotifierProviderRef<void> {
|
||||
/// The parameter `tabId` of this provider.
|
||||
String? get tabId;
|
||||
}
|
||||
String _$tabSessionHash() => r'33d68f3860b3bc9a92db386535c7482bf4416008';
|
||||
|
||||
class _TabSessionProviderElement
|
||||
extends AutoDisposeNotifierProviderElement<TabSession, void>
|
||||
with TabSessionRef {
|
||||
_TabSessionProviderElement(super.provider);
|
||||
final class TabSessionFamily extends $Family
|
||||
with $ClassFamilyOverride<TabSession, void, void, void, String?> {
|
||||
const TabSessionFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'tabSessionProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: true,
|
||||
);
|
||||
|
||||
TabSessionProvider call({required String? tabId}) =>
|
||||
TabSessionProvider._(argument: tabId, from: this);
|
||||
|
||||
@override
|
||||
String? get tabId => (origin as TabSessionProvider).tabId;
|
||||
String toString() => r'tabSessionProvider';
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$TabSession extends $Notifier<void> {
|
||||
late final _$args = ref.$arg as String?;
|
||||
String? get tabId => _$args;
|
||||
|
||||
void build({required String? tabId});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build(tabId: _$args);
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
@ProviderFor(selectedTabSessionNotifier)
|
||||
const selectedTabSessionProvider = SelectedTabSessionNotifierProvider._();
|
||||
|
||||
final class SelectedTabSessionNotifierProvider
|
||||
extends
|
||||
$FunctionalProvider<Raw<TabSession>, Raw<TabSession>, Raw<TabSession>>
|
||||
with $Provider<Raw<TabSession>> {
|
||||
const SelectedTabSessionNotifierProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedTabSessionProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedTabSessionNotifierHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<Raw<TabSession>> $createElement($ProviderPointer pointer) =>
|
||||
$ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Raw<TabSession> create(Ref ref) {
|
||||
return selectedTabSessionNotifier(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Raw<TabSession> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<Raw<TabSession>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectedTabSessionNotifierHash() =>
|
||||
r'aef19991d5b05a2bb28e8a6ccb57dc75c2f3148f';
|
||||
|
||||
@@ -6,336 +6,334 @@ part of 'tab_state.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$tabStateHash() => r'f57b2353acc99ca73670d504b45ea5ff19df38c7';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
@ProviderFor(TabStates)
|
||||
const tabStatesProvider = TabStatesProvider._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
/// See also [tabState].
|
||||
@ProviderFor(tabState)
|
||||
const tabStateProvider = TabStateFamily();
|
||||
|
||||
/// See also [tabState].
|
||||
class TabStateFamily extends Family<TabState?> {
|
||||
/// See also [tabState].
|
||||
const TabStateFamily();
|
||||
|
||||
/// See also [tabState].
|
||||
TabStateProvider call(String? tabId) {
|
||||
return TabStateProvider(tabId);
|
||||
}
|
||||
|
||||
@override
|
||||
TabStateProvider getProviderOverride(covariant TabStateProvider provider) {
|
||||
return call(provider.tabId);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'tabStateProvider';
|
||||
}
|
||||
|
||||
/// See also [tabState].
|
||||
class TabStateProvider extends AutoDisposeProvider<TabState?> {
|
||||
/// See also [tabState].
|
||||
TabStateProvider(String? tabId)
|
||||
: this._internal(
|
||||
(ref) => tabState(ref as TabStateRef, tabId),
|
||||
from: tabStateProvider,
|
||||
name: r'tabStateProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabStateHash,
|
||||
dependencies: TabStateFamily._dependencies,
|
||||
allTransitiveDependencies: TabStateFamily._allTransitiveDependencies,
|
||||
tabId: tabId,
|
||||
final class TabStatesProvider
|
||||
extends $NotifierProvider<TabStates, Map<String, TabState>> {
|
||||
const TabStatesProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'tabStatesProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
TabStateProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.tabId,
|
||||
}) : super.internal();
|
||||
|
||||
final String? tabId;
|
||||
|
||||
@override
|
||||
Override overrideWith(TabState? Function(TabStateRef provider) create) {
|
||||
return ProviderOverride(
|
||||
String debugGetCreateSourceHash() => _$tabStatesHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
TabStates create() => TabStates();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Map<String, TabState> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
override: TabStateProvider._internal(
|
||||
(ref) => create(ref as TabStateRef),
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
tabId: tabId,
|
||||
),
|
||||
providerOverride: $SyncValueProvider<Map<String, TabState>>(value),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
AutoDisposeProviderElement<TabState?> createElement() {
|
||||
return _TabStateProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is TabStateProvider && other.tabId == tabId;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, tabId.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin TabStateRef on AutoDisposeProviderRef<TabState?> {
|
||||
/// The parameter `tabId` of this provider.
|
||||
String? get tabId;
|
||||
}
|
||||
|
||||
class _TabStateProviderElement extends AutoDisposeProviderElement<TabState?>
|
||||
with TabStateRef {
|
||||
_TabStateProviderElement(super.provider);
|
||||
|
||||
@override
|
||||
String? get tabId => (origin as TabStateProvider).tabId;
|
||||
}
|
||||
|
||||
String _$selectedTabStateHash() => r'dbd36af7af286bd9d079f30e8e11bbda23bf7728';
|
||||
|
||||
/// See also [selectedTabState].
|
||||
@ProviderFor(selectedTabState)
|
||||
final selectedTabStateProvider = AutoDisposeProvider<TabState?>.internal(
|
||||
selectedTabState,
|
||||
name: r'selectedTabStateProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedTabStateHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectedTabStateRef = AutoDisposeProviderRef<TabState?>;
|
||||
String _$selectedTabTypeHash() => r'53093fc6db8becde7500163661e087fb0a2eb955';
|
||||
|
||||
/// See also [selectedTabType].
|
||||
@ProviderFor(selectedTabType)
|
||||
final selectedTabTypeProvider = AutoDisposeProvider<TabType?>.internal(
|
||||
selectedTabType,
|
||||
name: r'selectedTabTypeProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedTabTypeHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectedTabTypeRef = AutoDisposeProviderRef<TabType?>;
|
||||
String _$selectedTabContainerIdHash() =>
|
||||
r'9f0246a02a069b1a66211a3924f32e9d75f0f344';
|
||||
|
||||
/// See also [selectedTabContainerId].
|
||||
@ProviderFor(selectedTabContainerId)
|
||||
final selectedTabContainerIdProvider = Provider<AsyncValue<String?>>.internal(
|
||||
selectedTabContainerId,
|
||||
name: r'selectedTabContainerIdProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedTabContainerIdHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectedTabContainerIdRef = ProviderRef<AsyncValue<String?>>;
|
||||
String _$tabScrollYHash() => r'dcb1e82b42bab98c4fc2ee4c7a22f37a28b8ce9e';
|
||||
|
||||
/// See also [tabScrollY].
|
||||
@ProviderFor(tabScrollY)
|
||||
const tabScrollYProvider = TabScrollYFamily();
|
||||
|
||||
/// See also [tabScrollY].
|
||||
class TabScrollYFamily extends Family<AsyncValue<int>> {
|
||||
/// See also [tabScrollY].
|
||||
const TabScrollYFamily();
|
||||
|
||||
/// See also [tabScrollY].
|
||||
TabScrollYProvider call(String? tabId, Duration sampleTime) {
|
||||
return TabScrollYProvider(tabId, sampleTime);
|
||||
}
|
||||
|
||||
@override
|
||||
TabScrollYProvider getProviderOverride(
|
||||
covariant TabScrollYProvider provider,
|
||||
) {
|
||||
return call(provider.tabId, provider.sampleTime);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'tabScrollYProvider';
|
||||
}
|
||||
|
||||
/// See also [tabScrollY].
|
||||
class TabScrollYProvider extends AutoDisposeStreamProvider<int> {
|
||||
/// See also [tabScrollY].
|
||||
TabScrollYProvider(String? tabId, Duration sampleTime)
|
||||
: this._internal(
|
||||
(ref) => tabScrollY(ref as TabScrollYRef, tabId, sampleTime),
|
||||
from: tabScrollYProvider,
|
||||
name: r'tabScrollYProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabScrollYHash,
|
||||
dependencies: TabScrollYFamily._dependencies,
|
||||
allTransitiveDependencies: TabScrollYFamily._allTransitiveDependencies,
|
||||
tabId: tabId,
|
||||
sampleTime: sampleTime,
|
||||
);
|
||||
|
||||
TabScrollYProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.tabId,
|
||||
required this.sampleTime,
|
||||
}) : super.internal();
|
||||
|
||||
final String? tabId;
|
||||
final Duration sampleTime;
|
||||
|
||||
@override
|
||||
Override overrideWith(Stream<int> Function(TabScrollYRef provider) create) {
|
||||
return ProviderOverride(
|
||||
origin: this,
|
||||
override: TabScrollYProvider._internal(
|
||||
(ref) => create(ref as TabScrollYRef),
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
tabId: tabId,
|
||||
sampleTime: sampleTime,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
AutoDisposeStreamProviderElement<int> createElement() {
|
||||
return _TabScrollYProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is TabScrollYProvider &&
|
||||
other.tabId == tabId &&
|
||||
other.sampleTime == sampleTime;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, tabId.hashCode);
|
||||
hash = _SystemHash.combine(hash, sampleTime.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin TabScrollYRef on AutoDisposeStreamProviderRef<int> {
|
||||
/// The parameter `tabId` of this provider.
|
||||
String? get tabId;
|
||||
|
||||
/// The parameter `sampleTime` of this provider.
|
||||
Duration get sampleTime;
|
||||
}
|
||||
|
||||
class _TabScrollYProviderElement extends AutoDisposeStreamProviderElement<int>
|
||||
with TabScrollYRef {
|
||||
_TabScrollYProviderElement(super.provider);
|
||||
|
||||
@override
|
||||
String? get tabId => (origin as TabScrollYProvider).tabId;
|
||||
@override
|
||||
Duration get sampleTime => (origin as TabScrollYProvider).sampleTime;
|
||||
}
|
||||
|
||||
String _$tabStatesHash() => r'66cff6a7b36328ee23b89fdd53046987b346bfcd';
|
||||
|
||||
/// See also [TabStates].
|
||||
@ProviderFor(TabStates)
|
||||
final tabStatesProvider =
|
||||
NotifierProvider<TabStates, Map<String, TabState>>.internal(
|
||||
TabStates.new,
|
||||
name: r'tabStatesProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabStatesHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
abstract class _$TabStates extends $Notifier<Map<String, TabState>> {
|
||||
Map<String, TabState> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<Map<String, TabState>, Map<String, TabState>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<Map<String, TabState>, Map<String, TabState>>,
|
||||
Map<String, TabState>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
typedef _$TabStates = Notifier<Map<String, TabState>>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
@ProviderFor(tabState)
|
||||
const tabStateProvider = TabStateFamily._();
|
||||
|
||||
final class TabStateProvider
|
||||
extends $FunctionalProvider<TabState?, TabState?, TabState?>
|
||||
with $Provider<TabState?> {
|
||||
const TabStateProvider._({
|
||||
required TabStateFamily super.from,
|
||||
required String? super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'tabStateProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabStateHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'tabStateProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<TabState?> $createElement($ProviderPointer pointer) =>
|
||||
$ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
TabState? create(Ref ref) {
|
||||
final argument = this.argument as String?;
|
||||
return tabState(ref, argument);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(TabState? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<TabState?>(value),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is TabStateProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabStateHash() => r'f57b2353acc99ca73670d504b45ea5ff19df38c7';
|
||||
|
||||
final class TabStateFamily extends $Family
|
||||
with $FunctionalFamilyOverride<TabState?, String?> {
|
||||
const TabStateFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'tabStateProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: true,
|
||||
);
|
||||
|
||||
TabStateProvider call(String? tabId) =>
|
||||
TabStateProvider._(argument: tabId, from: this);
|
||||
|
||||
@override
|
||||
String toString() => r'tabStateProvider';
|
||||
}
|
||||
|
||||
@ProviderFor(selectedTabState)
|
||||
const selectedTabStateProvider = SelectedTabStateProvider._();
|
||||
|
||||
final class SelectedTabStateProvider
|
||||
extends $FunctionalProvider<TabState?, TabState?, TabState?>
|
||||
with $Provider<TabState?> {
|
||||
const SelectedTabStateProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedTabStateProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedTabStateHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<TabState?> $createElement($ProviderPointer pointer) =>
|
||||
$ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
TabState? create(Ref ref) {
|
||||
return selectedTabState(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(TabState? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<TabState?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectedTabStateHash() => r'dbd36af7af286bd9d079f30e8e11bbda23bf7728';
|
||||
|
||||
@ProviderFor(selectedTabType)
|
||||
const selectedTabTypeProvider = SelectedTabTypeProvider._();
|
||||
|
||||
final class SelectedTabTypeProvider
|
||||
extends $FunctionalProvider<TabType?, TabType?, TabType?>
|
||||
with $Provider<TabType?> {
|
||||
const SelectedTabTypeProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedTabTypeProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedTabTypeHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<TabType?> $createElement($ProviderPointer pointer) =>
|
||||
$ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
TabType? create(Ref ref) {
|
||||
return selectedTabType(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(TabType? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<TabType?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectedTabTypeHash() => r'53093fc6db8becde7500163661e087fb0a2eb955';
|
||||
|
||||
@ProviderFor(selectedTabContainerId)
|
||||
const selectedTabContainerIdProvider = SelectedTabContainerIdProvider._();
|
||||
|
||||
final class SelectedTabContainerIdProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<String?>,
|
||||
AsyncValue<String?>,
|
||||
AsyncValue<String?>
|
||||
>
|
||||
with $Provider<AsyncValue<String?>> {
|
||||
const SelectedTabContainerIdProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedTabContainerIdProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedTabContainerIdHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<AsyncValue<String?>> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
AsyncValue<String?> create(Ref ref) {
|
||||
return selectedTabContainerId(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(AsyncValue<String?> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<AsyncValue<String?>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectedTabContainerIdHash() =>
|
||||
r'9f0246a02a069b1a66211a3924f32e9d75f0f344';
|
||||
|
||||
@ProviderFor(tabScrollY)
|
||||
const tabScrollYProvider = TabScrollYFamily._();
|
||||
|
||||
final class TabScrollYProvider
|
||||
extends $FunctionalProvider<AsyncValue<int>, int, Stream<int>>
|
||||
with $FutureModifier<int>, $StreamProvider<int> {
|
||||
const TabScrollYProvider._({
|
||||
required TabScrollYFamily super.from,
|
||||
required (String?, Duration) super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'tabScrollYProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabScrollYHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'tabScrollYProvider'
|
||||
''
|
||||
'$argument';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$StreamProviderElement<int> $createElement($ProviderPointer pointer) =>
|
||||
$StreamProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Stream<int> create(Ref ref) {
|
||||
final argument = this.argument as (String?, Duration);
|
||||
return tabScrollY(ref, argument.$1, argument.$2);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is TabScrollYProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabScrollYHash() => r'dcb1e82b42bab98c4fc2ee4c7a22f37a28b8ce9e';
|
||||
|
||||
final class TabScrollYFamily extends $Family
|
||||
with $FunctionalFamilyOverride<Stream<int>, (String?, Duration)> {
|
||||
const TabScrollYFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'tabScrollYProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: true,
|
||||
);
|
||||
|
||||
TabScrollYProvider call(String? tabId, Duration sampleTime) =>
|
||||
TabScrollYProvider._(argument: (tabId, sampleTime), from: this);
|
||||
|
||||
@override
|
||||
String toString() => r'tabScrollYProvider';
|
||||
}
|
||||
|
||||
@@ -6,172 +6,116 @@ part of 'web_extensions_state.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$webExtensionsStateHash() =>
|
||||
r'6fb44ab543250f2b2554e410ee749fdd035cd4e7';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$WebExtensionsState
|
||||
extends BuildlessNotifier<Map<String, WebExtensionState>> {
|
||||
late final WebExtensionActionType actionType;
|
||||
|
||||
Map<String, WebExtensionState> build(WebExtensionActionType actionType);
|
||||
}
|
||||
|
||||
/// See also [WebExtensionsState].
|
||||
@ProviderFor(WebExtensionsState)
|
||||
const webExtensionsStateProvider = WebExtensionsStateFamily();
|
||||
const webExtensionsStateProvider = WebExtensionsStateFamily._();
|
||||
|
||||
/// See also [WebExtensionsState].
|
||||
class WebExtensionsStateFamily extends Family<Map<String, WebExtensionState>> {
|
||||
/// See also [WebExtensionsState].
|
||||
const WebExtensionsStateFamily();
|
||||
|
||||
/// See also [WebExtensionsState].
|
||||
WebExtensionsStateProvider call(WebExtensionActionType actionType) {
|
||||
return WebExtensionsStateProvider(actionType);
|
||||
}
|
||||
|
||||
@override
|
||||
WebExtensionsStateProvider getProviderOverride(
|
||||
covariant WebExtensionsStateProvider provider,
|
||||
) {
|
||||
return call(provider.actionType);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'webExtensionsStateProvider';
|
||||
}
|
||||
|
||||
/// See also [WebExtensionsState].
|
||||
class WebExtensionsStateProvider
|
||||
final class WebExtensionsStateProvider
|
||||
extends
|
||||
NotifierProviderImpl<
|
||||
WebExtensionsState,
|
||||
Map<String, WebExtensionState>
|
||||
> {
|
||||
/// See also [WebExtensionsState].
|
||||
WebExtensionsStateProvider(WebExtensionActionType actionType)
|
||||
: this._internal(
|
||||
() => WebExtensionsState()..actionType = actionType,
|
||||
from: webExtensionsStateProvider,
|
||||
name: r'webExtensionsStateProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$webExtensionsStateHash,
|
||||
dependencies: WebExtensionsStateFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
WebExtensionsStateFamily._allTransitiveDependencies,
|
||||
actionType: actionType,
|
||||
);
|
||||
|
||||
WebExtensionsStateProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.actionType,
|
||||
}) : super.internal();
|
||||
|
||||
final WebExtensionActionType actionType;
|
||||
$NotifierProvider<WebExtensionsState, Map<String, WebExtensionState>> {
|
||||
const WebExtensionsStateProvider._({
|
||||
required WebExtensionsStateFamily super.from,
|
||||
required WebExtensionActionType super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'webExtensionsStateProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Map<String, WebExtensionState> runNotifierBuild(
|
||||
covariant WebExtensionsState notifier,
|
||||
) {
|
||||
return notifier.build(actionType);
|
||||
String debugGetCreateSourceHash() => _$webExtensionsStateHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'webExtensionsStateProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
Override overrideWith(WebExtensionsState Function() create) {
|
||||
return ProviderOverride(
|
||||
WebExtensionsState create() => WebExtensionsState();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Map<String, WebExtensionState> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
override: WebExtensionsStateProvider._internal(
|
||||
() => create()..actionType = actionType,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
actionType: actionType,
|
||||
providerOverride: $SyncValueProvider<Map<String, WebExtensionState>>(
|
||||
value,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
NotifierProviderElement<WebExtensionsState, Map<String, WebExtensionState>>
|
||||
createElement() {
|
||||
return _WebExtensionsStateProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is WebExtensionsStateProvider &&
|
||||
other.actionType == actionType;
|
||||
return other is WebExtensionsStateProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, actionType.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin WebExtensionsStateRef
|
||||
on NotifierProviderRef<Map<String, WebExtensionState>> {
|
||||
/// The parameter `actionType` of this provider.
|
||||
WebExtensionActionType get actionType;
|
||||
}
|
||||
String _$webExtensionsStateHash() =>
|
||||
r'6fb44ab543250f2b2554e410ee749fdd035cd4e7';
|
||||
|
||||
class _WebExtensionsStateProviderElement
|
||||
extends
|
||||
NotifierProviderElement<
|
||||
final class WebExtensionsStateFamily extends $Family
|
||||
with
|
||||
$ClassFamilyOverride<
|
||||
WebExtensionsState,
|
||||
Map<String, WebExtensionState>
|
||||
>
|
||||
with WebExtensionsStateRef {
|
||||
_WebExtensionsStateProviderElement(super.provider);
|
||||
Map<String, WebExtensionState>,
|
||||
Map<String, WebExtensionState>,
|
||||
Map<String, WebExtensionState>,
|
||||
WebExtensionActionType
|
||||
> {
|
||||
const WebExtensionsStateFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'webExtensionsStateProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: false,
|
||||
);
|
||||
|
||||
WebExtensionsStateProvider call(WebExtensionActionType actionType) =>
|
||||
WebExtensionsStateProvider._(argument: actionType, from: this);
|
||||
|
||||
@override
|
||||
WebExtensionActionType get actionType =>
|
||||
(origin as WebExtensionsStateProvider).actionType;
|
||||
String toString() => r'webExtensionsStateProvider';
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$WebExtensionsState
|
||||
extends $Notifier<Map<String, WebExtensionState>> {
|
||||
late final _$args = ref.$arg as WebExtensionActionType;
|
||||
WebExtensionActionType get actionType => _$args;
|
||||
|
||||
Map<String, WebExtensionState> build(WebExtensionActionType actionType);
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build(_$args);
|
||||
final ref =
|
||||
this.ref
|
||||
as $Ref<
|
||||
Map<String, WebExtensionState>,
|
||||
Map<String, WebExtensionState>
|
||||
>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<
|
||||
Map<String, WebExtensionState>,
|
||||
Map<String, WebExtensionState>
|
||||
>,
|
||||
Map<String, WebExtensionState>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +131,7 @@ class TabRepository extends _$TabRepository {
|
||||
Future<bool> selectPreviouslyOpenedTab(String tabId) async {
|
||||
final previousTabId = await ref
|
||||
.read(tabDatabaseProvider)
|
||||
.definitionsDrift
|
||||
.previousTabByTimestamp(tabId: tabId)
|
||||
.getSingleOrNull();
|
||||
|
||||
@@ -144,6 +145,7 @@ class TabRepository extends _$TabRepository {
|
||||
Future<bool> selectPreviousTab(String tabId) async {
|
||||
final previousTabId = await ref
|
||||
.read(tabDatabaseProvider)
|
||||
.definitionsDrift
|
||||
.previousTabByOrderKey(tabId: tabId)
|
||||
.getSingleOrNull();
|
||||
|
||||
@@ -157,6 +159,7 @@ class TabRepository extends _$TabRepository {
|
||||
Future<bool> selectNextTab(String tabId) async {
|
||||
final previousTabId = await ref
|
||||
.read(tabDatabaseProvider)
|
||||
.definitionsDrift
|
||||
.nextTabByOrderKey(tabId: tabId)
|
||||
.getSingleOrNull();
|
||||
|
||||
|
||||
@@ -6,20 +6,58 @@ part of 'tab.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$tabRepositoryHash() => r'45af26417881bca38973cf702073b1c7857f1cfa';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [TabRepository].
|
||||
@ProviderFor(TabRepository)
|
||||
final tabRepositoryProvider = NotifierProvider<TabRepository, void>.internal(
|
||||
TabRepository.new,
|
||||
name: r'tabRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const tabRepositoryProvider = TabRepositoryProvider._();
|
||||
|
||||
typedef _$TabRepository = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class TabRepositoryProvider
|
||||
extends $NotifierProvider<TabRepository, void> {
|
||||
const TabRepositoryProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'tabRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabRepositoryHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
TabRepository create() => TabRepository();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabRepositoryHash() => r'7cb56001fbb038321197d237148c9ebf35740521';
|
||||
|
||||
abstract class _$TabRepository extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,9 +83,7 @@ EquatableValue<List<String>> availableTabIds(
|
||||
ContainerFilter containerFilter,
|
||||
) {
|
||||
final containerTabs = ref.watch(
|
||||
containerTabIdsProvider(
|
||||
containerFilter,
|
||||
).select((value) => value.valueOrNull),
|
||||
containerTabIdsProvider(containerFilter).select((value) => value.value),
|
||||
);
|
||||
final tabList = ref.watch(tabListProvider);
|
||||
|
||||
@@ -118,13 +116,13 @@ EquatableValue<List<TabEntity>> suggestedTabEntities(
|
||||
containerTabIdsProvider(
|
||||
// ignore: provider_parameters
|
||||
ContainerFilterById(containerId: containerId),
|
||||
).select((value) => EquatableValue(value.valueOrNull)),
|
||||
).select((value) => EquatableValue(value.value)),
|
||||
);
|
||||
|
||||
final suggestions = ref.watch(
|
||||
containerTabSuggestionsProvider(containerId).select(
|
||||
(value) => EquatableValue(
|
||||
value.valueOrNull.mapNotNull(
|
||||
value.value.mapNotNull(
|
||||
(result) => result
|
||||
.whereNot(
|
||||
(tabId) => excludedTabIds.value?.contains(tabId) ?? false,
|
||||
@@ -151,7 +149,7 @@ EquatableValue<List<TabEntity>> seamlessFilteredTabEntities(
|
||||
.watch(
|
||||
tabSearchRepositoryProvider(searchPartition).select(
|
||||
(value) => EquatableValue(
|
||||
value.valueOrNull.mapNotNull(
|
||||
value.value.mapNotNull(
|
||||
(result) => result.results
|
||||
.map(
|
||||
(tab) => SearchResultTabEntity(
|
||||
@@ -179,7 +177,7 @@ EquatableValue<List<TabEntity>> seamlessFilteredTabEntities(
|
||||
final trees = ref.watch(
|
||||
tabTreesProvider.select(
|
||||
(value) => EquatableValue(
|
||||
value.valueOrNull
|
||||
value.value
|
||||
?.map(
|
||||
(tree) => TabTreeEntity(
|
||||
tabId: tree.latestTabId,
|
||||
@@ -228,7 +226,7 @@ EquatableValue<List<TabPreview>> seamlessFilteredTabPreviews(
|
||||
.watch(
|
||||
tabSearchRepositoryProvider(
|
||||
searchPartition,
|
||||
).select((value) => EquatableValue(value.valueOrNull)),
|
||||
).select((value) => EquatableValue(value.value)),
|
||||
)
|
||||
.value;
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,25 +6,52 @@ part of 'intent.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(EngineBoundIntentStream)
|
||||
const engineBoundIntentStreamProvider = EngineBoundIntentStreamProvider._();
|
||||
|
||||
final class EngineBoundIntentStreamProvider
|
||||
extends $StreamNotifierProvider<EngineBoundIntentStream, SharedContent> {
|
||||
const EngineBoundIntentStreamProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'engineBoundIntentStreamProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$engineBoundIntentStreamHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
EngineBoundIntentStream create() => EngineBoundIntentStream();
|
||||
}
|
||||
|
||||
String _$engineBoundIntentStreamHash() =>
|
||||
r'860e39a7b608d579f7383e2199719067ad26f268';
|
||||
|
||||
/// See also [EngineBoundIntentStream].
|
||||
@ProviderFor(EngineBoundIntentStream)
|
||||
final engineBoundIntentStreamProvider =
|
||||
AutoDisposeStreamNotifierProvider<
|
||||
EngineBoundIntentStream,
|
||||
SharedContent
|
||||
>.internal(
|
||||
EngineBoundIntentStream.new,
|
||||
name: r'engineBoundIntentStreamProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineBoundIntentStreamHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$EngineBoundIntentStream = AutoDisposeStreamNotifier<SharedContent>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$EngineBoundIntentStream
|
||||
extends $StreamNotifier<SharedContent> {
|
||||
Stream<SharedContent> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<AsyncValue<SharedContent>, SharedContent>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<SharedContent>, SharedContent>,
|
||||
AsyncValue<SharedContent>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,59 @@ part of 'lifecycle.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BrowserViewLifecycle)
|
||||
const browserViewLifecycleProvider = BrowserViewLifecycleProvider._();
|
||||
|
||||
final class BrowserViewLifecycleProvider
|
||||
extends $NotifierProvider<BrowserViewLifecycle, AppLifecycleState?> {
|
||||
const BrowserViewLifecycleProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'browserViewLifecycleProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$browserViewLifecycleHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BrowserViewLifecycle create() => BrowserViewLifecycle();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(AppLifecycleState? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<AppLifecycleState?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$browserViewLifecycleHash() =>
|
||||
r'9082d058611aaaae268b60b8ce130150f73d453d';
|
||||
|
||||
/// See also [BrowserViewLifecycle].
|
||||
@ProviderFor(BrowserViewLifecycle)
|
||||
final browserViewLifecycleProvider =
|
||||
NotifierProvider<BrowserViewLifecycle, AppLifecycleState?>.internal(
|
||||
BrowserViewLifecycle.new,
|
||||
name: r'browserViewLifecycleProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$browserViewLifecycleHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$BrowserViewLifecycle = Notifier<AppLifecycleState?>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$BrowserViewLifecycle extends $Notifier<AppLifecycleState?> {
|
||||
AppLifecycleState? build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<AppLifecycleState?, AppLifecycleState?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AppLifecycleState?, AppLifecycleState?>,
|
||||
AppLifecycleState?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,59 @@ part of 'browser_addon.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BrowserAddonService)
|
||||
const browserAddonServiceProvider = BrowserAddonServiceProvider._();
|
||||
|
||||
final class BrowserAddonServiceProvider
|
||||
extends $NotifierProvider<BrowserAddonService, void> {
|
||||
const BrowserAddonServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'browserAddonServiceProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$browserAddonServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BrowserAddonService create() => BrowserAddonService();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$browserAddonServiceHash() =>
|
||||
r'1dd73c322e712e1492d74f1af844d5b5cc8f81bb';
|
||||
|
||||
/// See also [BrowserAddonService].
|
||||
@ProviderFor(BrowserAddonService)
|
||||
final browserAddonServiceProvider =
|
||||
AutoDisposeNotifierProvider<BrowserAddonService, void>.internal(
|
||||
BrowserAddonService.new,
|
||||
name: r'browserAddonServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$browserAddonServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$BrowserAddonService = AutoDisposeNotifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$BrowserAddonService extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,59 @@ part of 'browser_data.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BrowserDataService)
|
||||
const browserDataServiceProvider = BrowserDataServiceProvider._();
|
||||
|
||||
final class BrowserDataServiceProvider
|
||||
extends $NotifierProvider<BrowserDataService, void> {
|
||||
const BrowserDataServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'browserDataServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$browserDataServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BrowserDataService create() => BrowserDataService();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$browserDataServiceHash() =>
|
||||
r'0a00db5b143d3851f2c171f4f939940f959b67bb';
|
||||
|
||||
/// See also [BrowserDataService].
|
||||
@ProviderFor(BrowserDataService)
|
||||
final browserDataServiceProvider =
|
||||
NotifierProvider<BrowserDataService, void>.internal(
|
||||
BrowserDataService.new,
|
||||
name: r'browserDataServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$browserDataServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$BrowserDataService = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$BrowserDataService extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
+13
-15
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
import 'package:flutter/material.dart' show ThemeMode;
|
||||
import 'package:flutter_mozilla_components/flutter_mozilla_components.dart';
|
||||
import 'package:riverpod/riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:weblibre/core/logger.dart';
|
||||
import 'package:weblibre/features/user/domain/repositories/engine_settings.dart';
|
||||
@@ -62,69 +63,66 @@ class EngineSettingsReplicationService
|
||||
fireImmediately: true,
|
||||
engineSettingsRepositoryProvider,
|
||||
(previous, next) async {
|
||||
final settings = next.valueOrNull;
|
||||
final settings = next.value;
|
||||
|
||||
if (settings != null) {
|
||||
if (initialSettingsSent && previous != null) {
|
||||
if (previous.valueOrNull?.javascriptEnabled !=
|
||||
if (previous.value?.javascriptEnabled !=
|
||||
settings.javascriptEnabled) {
|
||||
await _service.javascriptEnabled(settings.javascriptEnabled);
|
||||
}
|
||||
if (previous.valueOrNull?.trackingProtectionPolicy !=
|
||||
if (previous.value?.trackingProtectionPolicy !=
|
||||
settings.trackingProtectionPolicy) {
|
||||
await _service.trackingProtectionPolicy(
|
||||
settings.trackingProtectionPolicy,
|
||||
);
|
||||
}
|
||||
if (previous.valueOrNull?.httpsOnlyMode != settings.httpsOnlyMode) {
|
||||
if (previous.value?.httpsOnlyMode != settings.httpsOnlyMode) {
|
||||
await _service.httpsOnlyMode(settings.httpsOnlyMode);
|
||||
}
|
||||
if (previous.valueOrNull?.globalPrivacyControlEnabled !=
|
||||
if (previous.value?.globalPrivacyControlEnabled !=
|
||||
settings.globalPrivacyControlEnabled) {
|
||||
await _service.globalPrivacyControlEnabled(
|
||||
settings.globalPrivacyControlEnabled,
|
||||
);
|
||||
}
|
||||
if (previous.valueOrNull?.preferredColorScheme !=
|
||||
if (previous.value?.preferredColorScheme !=
|
||||
settings.preferredColorScheme) {
|
||||
await _service.preferredColorScheme(
|
||||
settings.preferredColorScheme,
|
||||
);
|
||||
}
|
||||
if (previous.valueOrNull?.cookieBannerHandlingMode !=
|
||||
if (previous.value?.cookieBannerHandlingMode !=
|
||||
settings.cookieBannerHandlingMode) {
|
||||
await _service.cookieBannerHandlingMode(
|
||||
settings.cookieBannerHandlingMode,
|
||||
);
|
||||
}
|
||||
if (previous.valueOrNull?.cookieBannerHandlingModePrivateBrowsing !=
|
||||
if (previous.value?.cookieBannerHandlingModePrivateBrowsing !=
|
||||
settings.cookieBannerHandlingModePrivateBrowsing) {
|
||||
await _service.cookieBannerHandlingModePrivateBrowsing(
|
||||
settings.cookieBannerHandlingModePrivateBrowsing,
|
||||
);
|
||||
}
|
||||
if (previous.valueOrNull?.cookieBannerHandlingGlobalRules !=
|
||||
if (previous.value?.cookieBannerHandlingGlobalRules !=
|
||||
settings.cookieBannerHandlingGlobalRules) {
|
||||
await _service.cookieBannerHandlingGlobalRules(
|
||||
settings.cookieBannerHandlingGlobalRules,
|
||||
);
|
||||
}
|
||||
if (previous
|
||||
.valueOrNull
|
||||
?.cookieBannerHandlingGlobalRulesSubFrames !=
|
||||
if (previous.value?.cookieBannerHandlingGlobalRulesSubFrames !=
|
||||
settings.cookieBannerHandlingGlobalRulesSubFrames) {
|
||||
await _service.cookieBannerHandlingGlobalRulesSubFrames(
|
||||
settings.cookieBannerHandlingGlobalRulesSubFrames,
|
||||
);
|
||||
}
|
||||
if (previous.valueOrNull?.webContentIsolationStrategy !=
|
||||
if (previous.value?.webContentIsolationStrategy !=
|
||||
settings.webContentIsolationStrategy) {
|
||||
await _service.webContentIsolationStrategy(
|
||||
settings.webContentIsolationStrategy,
|
||||
);
|
||||
}
|
||||
if (previous.valueOrNull?.contentBlocking !=
|
||||
settings.contentBlocking) {
|
||||
if (previous.value?.contentBlocking != settings.contentBlocking) {
|
||||
await _service.contentBlocking(settings.contentBlocking);
|
||||
}
|
||||
} else {
|
||||
|
||||
+55
-16
@@ -6,22 +6,61 @@ part of 'engine_settings_replication.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$engineSettingsReplicationServiceHash() =>
|
||||
r'be3001c952dac6c7c6be3927f6834dae57280601';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [EngineSettingsReplicationService].
|
||||
@ProviderFor(EngineSettingsReplicationService)
|
||||
final engineSettingsReplicationServiceProvider =
|
||||
NotifierProvider<EngineSettingsReplicationService, void>.internal(
|
||||
EngineSettingsReplicationService.new,
|
||||
name: r'engineSettingsReplicationServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineSettingsReplicationServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const engineSettingsReplicationServiceProvider =
|
||||
EngineSettingsReplicationServiceProvider._();
|
||||
|
||||
typedef _$EngineSettingsReplicationService = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class EngineSettingsReplicationServiceProvider
|
||||
extends $NotifierProvider<EngineSettingsReplicationService, void> {
|
||||
const EngineSettingsReplicationServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'engineSettingsReplicationServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$engineSettingsReplicationServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
EngineSettingsReplicationService create() =>
|
||||
EngineSettingsReplicationService();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$engineSettingsReplicationServiceHash() =>
|
||||
r'015bd9c923de0c09109d0fd489967f52a35ee944';
|
||||
|
||||
abstract class _$EngineSettingsReplicationService extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
+3
-2
@@ -20,6 +20,7 @@
|
||||
import 'package:fast_equatable/fast_equatable.dart';
|
||||
import 'package:flutter_mozilla_components/flutter_mozilla_components.dart';
|
||||
import 'package:nullability/nullability.dart';
|
||||
import 'package:riverpod/riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:weblibre/core/logger.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/domain/providers.dart';
|
||||
@@ -36,7 +37,7 @@ class ProxySettingsReplication extends _$ProxySettingsReplication {
|
||||
void build() {
|
||||
ref.listen(
|
||||
fireImmediately: true,
|
||||
torProxyServiceProvider.select((data) => data.valueOrNull),
|
||||
torProxyServiceProvider.select((data) => data.value),
|
||||
(previous, next) async {
|
||||
if (next != null) {
|
||||
await _service.setProxyPort(next);
|
||||
@@ -54,7 +55,7 @@ class ProxySettingsReplication extends _$ProxySettingsReplication {
|
||||
ref.listen(
|
||||
fireImmediately: true,
|
||||
containersWithCountProvider.select(
|
||||
(value) => EquatableValue(value.valueOrNull),
|
||||
(value) => EquatableValue(value.value),
|
||||
),
|
||||
(previous, next) async {
|
||||
if (next.value != null) {
|
||||
|
||||
+53
-16
@@ -6,22 +6,59 @@ part of 'proxy_settings_replication.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$proxySettingsReplicationHash() =>
|
||||
r'95e68c06df280d11730ec35f0cd93cf2b1e3c02d';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [ProxySettingsReplication].
|
||||
@ProviderFor(ProxySettingsReplication)
|
||||
final proxySettingsReplicationProvider =
|
||||
NotifierProvider<ProxySettingsReplication, void>.internal(
|
||||
ProxySettingsReplication.new,
|
||||
name: r'proxySettingsReplicationProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$proxySettingsReplicationHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const proxySettingsReplicationProvider = ProxySettingsReplicationProvider._();
|
||||
|
||||
typedef _$ProxySettingsReplication = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class ProxySettingsReplicationProvider
|
||||
extends $NotifierProvider<ProxySettingsReplication, void> {
|
||||
const ProxySettingsReplicationProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'proxySettingsReplicationProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$proxySettingsReplicationHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
ProxySettingsReplication create() => ProxySettingsReplication();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$proxySettingsReplicationHash() =>
|
||||
r'787545f882b97274dc67007a6404f170d40bdb64';
|
||||
|
||||
abstract class _$ProxySettingsReplication extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
+53
-16
@@ -6,22 +6,59 @@ part of 'tab_suggestions.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(TabSuggestionsController)
|
||||
const tabSuggestionsControllerProvider = TabSuggestionsControllerProvider._();
|
||||
|
||||
final class TabSuggestionsControllerProvider
|
||||
extends $NotifierProvider<TabSuggestionsController, bool> {
|
||||
const TabSuggestionsControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'tabSuggestionsControllerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabSuggestionsControllerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
TabSuggestionsController create() => TabSuggestionsController();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(bool value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<bool>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabSuggestionsControllerHash() =>
|
||||
r'5ce7f385b8aba14d432912cf0acb06aad04433fc';
|
||||
|
||||
/// See also [TabSuggestionsController].
|
||||
@ProviderFor(TabSuggestionsController)
|
||||
final tabSuggestionsControllerProvider =
|
||||
NotifierProvider<TabSuggestionsController, bool>.internal(
|
||||
TabSuggestionsController.new,
|
||||
name: r'tabSuggestionsControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabSuggestionsControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$TabSuggestionsController = Notifier<bool>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$TabSuggestionsController extends $Notifier<bool> {
|
||||
bool build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<bool, bool>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<bool, bool>,
|
||||
bool,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
+53
-16
@@ -6,22 +6,59 @@ part of 'tree_view.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(TreeViewController)
|
||||
const treeViewControllerProvider = TreeViewControllerProvider._();
|
||||
|
||||
final class TreeViewControllerProvider
|
||||
extends $NotifierProvider<TreeViewController, bool> {
|
||||
const TreeViewControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'treeViewControllerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$treeViewControllerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
TreeViewController create() => TreeViewController();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(bool value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<bool>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$treeViewControllerHash() =>
|
||||
r'1fac2a133d369e3bd3f8f75cdd2d0c862a6ab942';
|
||||
|
||||
/// See also [TreeViewController].
|
||||
@ProviderFor(TreeViewController)
|
||||
final treeViewControllerProvider =
|
||||
NotifierProvider<TreeViewController, bool>.internal(
|
||||
TreeViewController.new,
|
||||
name: r'treeViewControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$treeViewControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$TreeViewController = Notifier<bool>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$TreeViewController extends $Notifier<bool> {
|
||||
bool build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<bool, bool>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<bool, bool>,
|
||||
bool,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ class TabTreeDialog extends HookConsumerWidget {
|
||||
final graph = Graph()..isTree = true;
|
||||
|
||||
if (tabs.hasValue) {
|
||||
for (final MapEntry(:key, :value) in tabs.valueOrNull!.entries) {
|
||||
for (final MapEntry(:key, :value) in tabs.value!.entries) {
|
||||
if (value != null) {
|
||||
final current = Node.Id(key);
|
||||
final parent = Node.Id(value);
|
||||
@@ -113,7 +113,7 @@ class TabTreeDialog extends HookConsumerWidget {
|
||||
}
|
||||
|
||||
return graph;
|
||||
}, [EquatableValue(tabs.valueOrNull), selectedTabId]);
|
||||
}, [EquatableValue(tabs.value), selectedTabId]);
|
||||
|
||||
final graphAlgo = useMemoized(() {
|
||||
final config = BuchheimWalkerConfiguration()
|
||||
@@ -168,7 +168,7 @@ class TabTreeDialog extends HookConsumerWidget {
|
||||
minScale: 0.1,
|
||||
maxScale: 5.0,
|
||||
child: Skeletonizer(
|
||||
enabled: !tabs.hasValue || tabs.valueOrNull?.isEmpty == true,
|
||||
enabled: !tabs.hasValue || tabs.value?.isEmpty == true,
|
||||
child: Skeleton.replace(
|
||||
replacement: const Bone.square(),
|
||||
child: GraphView(
|
||||
|
||||
@@ -180,8 +180,7 @@ class BrowserScreen extends HookConsumerWidget {
|
||||
ref.listen(
|
||||
tabScrollYProvider(tabId, const Duration(milliseconds: 50)),
|
||||
(previous, next) {
|
||||
if (previous?.valueOrNull != null &&
|
||||
next.valueOrNull != null) {
|
||||
if (previous?.value != null && next.value != null) {
|
||||
final diff = previous!.value! - next.value!;
|
||||
if (diff < 0) {
|
||||
if (diffAcc.value > 0) {
|
||||
@@ -279,7 +278,7 @@ class BrowserScreen extends HookConsumerWidget {
|
||||
|
||||
if (tabState?.isFullScreen == true) {
|
||||
await ref
|
||||
.read(selectedTabSessionNotifierProvider)
|
||||
.read(selectedTabSessionProvider)
|
||||
.exitFullscreen();
|
||||
return true;
|
||||
}
|
||||
@@ -288,7 +287,7 @@ class BrowserScreen extends HookConsumerWidget {
|
||||
lastBackButtonPress.value = null;
|
||||
|
||||
final controller = ref.read(
|
||||
selectedTabSessionNotifierProvider,
|
||||
selectedTabSessionProvider,
|
||||
);
|
||||
|
||||
await controller.stopLoading();
|
||||
@@ -305,7 +304,7 @@ class BrowserScreen extends HookConsumerWidget {
|
||||
lastBackButtonPress.value = null;
|
||||
|
||||
final controller = ref.read(
|
||||
selectedTabSessionNotifierProvider,
|
||||
selectedTabSessionProvider,
|
||||
);
|
||||
|
||||
await controller.goBack();
|
||||
|
||||
+2
-2
@@ -72,7 +72,7 @@ class _BrowserViewState extends ConsumerState<BrowserView>
|
||||
|
||||
Future<void> _timerTick(Timer timer) async {
|
||||
await ref
|
||||
.read(selectedTabSessionNotifierProvider)
|
||||
.read(selectedTabSessionProvider)
|
||||
.requestScreenshot(requireImageResult: false)
|
||||
.onError((error, stackTrace) {
|
||||
logger.e(error, stackTrace: stackTrace);
|
||||
@@ -129,7 +129,7 @@ class _BrowserViewState extends ConsumerState<BrowserView>
|
||||
);
|
||||
|
||||
ref.listen(feedRequestedProvider, (previous, next) async {
|
||||
if (next.valueOrNull.mapNotNull(Uri.tryParse) case final Uri url) {
|
||||
if (next.value.mapNotNull(Uri.tryParse) case final Uri url) {
|
||||
if (GoRouterState.of(context).topRoute?.name != FeedAddRoute.name) {
|
||||
if (ref.read(addFeedDialogBlockingProvider.notifier).canPush(url)) {
|
||||
await FeedAddRoute($extra: url).push(context);
|
||||
|
||||
+3
-3
@@ -80,7 +80,7 @@ class ViewTabSheetWidget extends HookConsumerWidget {
|
||||
bangListProvider(
|
||||
domain: initialTabState.url.host,
|
||||
orderMostFrequentFirst: true,
|
||||
).select((value) => value.valueOrNull ?? const []),
|
||||
).select((value) => value.value ?? const []),
|
||||
);
|
||||
|
||||
final scrolledTo = useRef(0.0);
|
||||
@@ -306,7 +306,7 @@ class ViewTabSheetWidget extends HookConsumerWidget {
|
||||
final containerId = ref.watch(
|
||||
watchContainerTabIdProvider(
|
||||
initialTabState.id,
|
||||
).select((value) => value.valueOrNull),
|
||||
).select((value) => value.value),
|
||||
);
|
||||
|
||||
return Visibility(
|
||||
@@ -332,7 +332,7 @@ class ViewTabSheetWidget extends HookConsumerWidget {
|
||||
title: const Text('Share screenshot'),
|
||||
onTap: () async {
|
||||
final screenshot = await ref
|
||||
.read(selectedTabSessionNotifierProvider)
|
||||
.read(selectedTabSessionProvider)
|
||||
.requestScreenshot();
|
||||
|
||||
if (screenshot != null) {
|
||||
|
||||
+1
-1
@@ -272,7 +272,7 @@ class _TabSheetHeader extends HookConsumerWidget {
|
||||
builder: (context, ref, child) {
|
||||
final selectedContainer = ref.watch(
|
||||
selectedContainerDataProvider.select(
|
||||
(value) => value.valueOrNull,
|
||||
(value) => value.value,
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
+15
-11
@@ -11,41 +11,44 @@ abstract class _$FindInPageStateCWProxy {
|
||||
|
||||
FindInPageState lastSearchText(String? lastSearchText);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FindInPageState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `FindInPageState(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// FindInPageState(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
FindInPageState call({bool visible, String? lastSearchText});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfFindInPageState.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfFindInPageState.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfFindInPageState.copyWith(...)` or call `instanceOfFindInPageState.copyWith.fieldName(value)` for a single field.
|
||||
class _$FindInPageStateCWProxyImpl implements _$FindInPageStateCWProxy {
|
||||
const _$FindInPageStateCWProxyImpl(this._value);
|
||||
|
||||
final FindInPageState _value;
|
||||
|
||||
@override
|
||||
FindInPageState visible(bool visible) => this(visible: visible);
|
||||
FindInPageState visible(bool visible) => call(visible: visible);
|
||||
|
||||
@override
|
||||
FindInPageState lastSearchText(String? lastSearchText) =>
|
||||
this(lastSearchText: lastSearchText);
|
||||
call(lastSearchText: lastSearchText);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FindInPageState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `FindInPageState(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// FindInPageState(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
FindInPageState call({
|
||||
Object? visible = const $CopyWithPlaceholder(),
|
||||
Object? lastSearchText = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return FindInPageState(
|
||||
visible: visible == const $CopyWithPlaceholder()
|
||||
visible: visible == const $CopyWithPlaceholder() || visible == null
|
||||
? _value.visible
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: visible as bool,
|
||||
@@ -58,7 +61,8 @@ class _$FindInPageStateCWProxyImpl implements _$FindInPageStateCWProxy {
|
||||
}
|
||||
|
||||
extension $FindInPageStateCopyWith on FindInPageState {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfFindInPageState.copyWith(...)` or like so:`instanceOfFindInPageState.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfFindInPageState.copyWith(...)` or `instanceOfFindInPageState.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$FindInPageStateCWProxy get copyWith => _$FindInPageStateCWProxyImpl(this);
|
||||
}
|
||||
|
||||
+75
-128
@@ -6,157 +6,104 @@ part of 'find_in_page.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$findInPageRepositoryHash() =>
|
||||
r'c289f136c27a22978f15668a13d7044eb39c3355';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$FindInPageRepository extends BuildlessNotifier<String?> {
|
||||
late final String? tabId;
|
||||
|
||||
String? build(String? tabId);
|
||||
}
|
||||
|
||||
/// See also [FindInPageRepository].
|
||||
@ProviderFor(FindInPageRepository)
|
||||
const findInPageRepositoryProvider = FindInPageRepositoryFamily();
|
||||
const findInPageRepositoryProvider = FindInPageRepositoryFamily._();
|
||||
|
||||
/// See also [FindInPageRepository].
|
||||
class FindInPageRepositoryFamily extends Family<String?> {
|
||||
/// See also [FindInPageRepository].
|
||||
const FindInPageRepositoryFamily();
|
||||
final class FindInPageRepositoryProvider
|
||||
extends $NotifierProvider<FindInPageRepository, String?> {
|
||||
const FindInPageRepositoryProvider._({
|
||||
required FindInPageRepositoryFamily super.from,
|
||||
required String? super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'findInPageRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
/// See also [FindInPageRepository].
|
||||
FindInPageRepositoryProvider call(String? tabId) {
|
||||
return FindInPageRepositoryProvider(tabId);
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$findInPageRepositoryHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'findInPageRepositoryProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
FindInPageRepositoryProvider getProviderOverride(
|
||||
covariant FindInPageRepositoryProvider provider,
|
||||
) {
|
||||
return call(provider.tabId);
|
||||
}
|
||||
FindInPageRepository create() => FindInPageRepository();
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'findInPageRepositoryProvider';
|
||||
}
|
||||
|
||||
/// See also [FindInPageRepository].
|
||||
class FindInPageRepositoryProvider
|
||||
extends NotifierProviderImpl<FindInPageRepository, String?> {
|
||||
/// See also [FindInPageRepository].
|
||||
FindInPageRepositoryProvider(String? tabId)
|
||||
: this._internal(
|
||||
() => FindInPageRepository()..tabId = tabId,
|
||||
from: findInPageRepositoryProvider,
|
||||
name: r'findInPageRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$findInPageRepositoryHash,
|
||||
dependencies: FindInPageRepositoryFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
FindInPageRepositoryFamily._allTransitiveDependencies,
|
||||
tabId: tabId,
|
||||
);
|
||||
|
||||
FindInPageRepositoryProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.tabId,
|
||||
}) : super.internal();
|
||||
|
||||
final String? tabId;
|
||||
|
||||
@override
|
||||
String? runNotifierBuild(covariant FindInPageRepository notifier) {
|
||||
return notifier.build(tabId);
|
||||
}
|
||||
|
||||
@override
|
||||
Override overrideWith(FindInPageRepository Function() create) {
|
||||
return ProviderOverride(
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(String? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
override: FindInPageRepositoryProvider._internal(
|
||||
() => create()..tabId = tabId,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
tabId: tabId,
|
||||
),
|
||||
providerOverride: $SyncValueProvider<String?>(value),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
NotifierProviderElement<FindInPageRepository, String?> createElement() {
|
||||
return _FindInPageRepositoryProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is FindInPageRepositoryProvider && other.tabId == tabId;
|
||||
return other is FindInPageRepositoryProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, tabId.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin FindInPageRepositoryRef on NotifierProviderRef<String?> {
|
||||
/// The parameter `tabId` of this provider.
|
||||
String? get tabId;
|
||||
}
|
||||
String _$findInPageRepositoryHash() =>
|
||||
r'c289f136c27a22978f15668a13d7044eb39c3355';
|
||||
|
||||
class _FindInPageRepositoryProviderElement
|
||||
extends NotifierProviderElement<FindInPageRepository, String?>
|
||||
with FindInPageRepositoryRef {
|
||||
_FindInPageRepositoryProviderElement(super.provider);
|
||||
final class FindInPageRepositoryFamily extends $Family
|
||||
with
|
||||
$ClassFamilyOverride<
|
||||
FindInPageRepository,
|
||||
String?,
|
||||
String?,
|
||||
String?,
|
||||
String?
|
||||
> {
|
||||
const FindInPageRepositoryFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'findInPageRepositoryProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: false,
|
||||
);
|
||||
|
||||
FindInPageRepositoryProvider call(String? tabId) =>
|
||||
FindInPageRepositoryProvider._(argument: tabId, from: this);
|
||||
|
||||
@override
|
||||
String? get tabId => (origin as FindInPageRepositoryProvider).tabId;
|
||||
String toString() => r'findInPageRepositoryProvider';
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$FindInPageRepository extends $Notifier<String?> {
|
||||
late final _$args = ref.$arg as String?;
|
||||
String? get tabId => _$args;
|
||||
|
||||
String? build(String? tabId);
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build(_$args);
|
||||
final ref = this.ref as $Ref<String?, String?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<String?, String?>,
|
||||
String?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
+75
-130
@@ -6,159 +6,104 @@ part of 'find_in_page.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$findInPageControllerHash() =>
|
||||
r'da72e38225809af5c78a372e949a80207d7ce7c9';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$FindInPageController
|
||||
extends BuildlessNotifier<FindInPageState> {
|
||||
late final String tabId;
|
||||
|
||||
FindInPageState build(String tabId);
|
||||
}
|
||||
|
||||
/// See also [FindInPageController].
|
||||
@ProviderFor(FindInPageController)
|
||||
const findInPageControllerProvider = FindInPageControllerFamily();
|
||||
const findInPageControllerProvider = FindInPageControllerFamily._();
|
||||
|
||||
/// See also [FindInPageController].
|
||||
class FindInPageControllerFamily extends Family<FindInPageState> {
|
||||
/// See also [FindInPageController].
|
||||
const FindInPageControllerFamily();
|
||||
final class FindInPageControllerProvider
|
||||
extends $NotifierProvider<FindInPageController, FindInPageState> {
|
||||
const FindInPageControllerProvider._({
|
||||
required FindInPageControllerFamily super.from,
|
||||
required String super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'findInPageControllerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
/// See also [FindInPageController].
|
||||
FindInPageControllerProvider call(String tabId) {
|
||||
return FindInPageControllerProvider(tabId);
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$findInPageControllerHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'findInPageControllerProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
FindInPageControllerProvider getProviderOverride(
|
||||
covariant FindInPageControllerProvider provider,
|
||||
) {
|
||||
return call(provider.tabId);
|
||||
}
|
||||
FindInPageController create() => FindInPageController();
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'findInPageControllerProvider';
|
||||
}
|
||||
|
||||
/// See also [FindInPageController].
|
||||
class FindInPageControllerProvider
|
||||
extends NotifierProviderImpl<FindInPageController, FindInPageState> {
|
||||
/// See also [FindInPageController].
|
||||
FindInPageControllerProvider(String tabId)
|
||||
: this._internal(
|
||||
() => FindInPageController()..tabId = tabId,
|
||||
from: findInPageControllerProvider,
|
||||
name: r'findInPageControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$findInPageControllerHash,
|
||||
dependencies: FindInPageControllerFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
FindInPageControllerFamily._allTransitiveDependencies,
|
||||
tabId: tabId,
|
||||
);
|
||||
|
||||
FindInPageControllerProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.tabId,
|
||||
}) : super.internal();
|
||||
|
||||
final String tabId;
|
||||
|
||||
@override
|
||||
FindInPageState runNotifierBuild(covariant FindInPageController notifier) {
|
||||
return notifier.build(tabId);
|
||||
}
|
||||
|
||||
@override
|
||||
Override overrideWith(FindInPageController Function() create) {
|
||||
return ProviderOverride(
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(FindInPageState value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
override: FindInPageControllerProvider._internal(
|
||||
() => create()..tabId = tabId,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
tabId: tabId,
|
||||
),
|
||||
providerOverride: $SyncValueProvider<FindInPageState>(value),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
NotifierProviderElement<FindInPageController, FindInPageState>
|
||||
createElement() {
|
||||
return _FindInPageControllerProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is FindInPageControllerProvider && other.tabId == tabId;
|
||||
return other is FindInPageControllerProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, tabId.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin FindInPageControllerRef on NotifierProviderRef<FindInPageState> {
|
||||
/// The parameter `tabId` of this provider.
|
||||
String get tabId;
|
||||
}
|
||||
String _$findInPageControllerHash() =>
|
||||
r'da72e38225809af5c78a372e949a80207d7ce7c9';
|
||||
|
||||
class _FindInPageControllerProviderElement
|
||||
extends NotifierProviderElement<FindInPageController, FindInPageState>
|
||||
with FindInPageControllerRef {
|
||||
_FindInPageControllerProviderElement(super.provider);
|
||||
final class FindInPageControllerFamily extends $Family
|
||||
with
|
||||
$ClassFamilyOverride<
|
||||
FindInPageController,
|
||||
FindInPageState,
|
||||
FindInPageState,
|
||||
FindInPageState,
|
||||
String
|
||||
> {
|
||||
const FindInPageControllerFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'findInPageControllerProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: false,
|
||||
);
|
||||
|
||||
FindInPageControllerProvider call(String tabId) =>
|
||||
FindInPageControllerProvider._(argument: tabId, from: this);
|
||||
|
||||
@override
|
||||
String get tabId => (origin as FindInPageControllerProvider).tabId;
|
||||
String toString() => r'findInPageControllerProvider';
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$FindInPageController extends $Notifier<FindInPageState> {
|
||||
late final _$args = ref.$arg as String;
|
||||
String get tabId => _$args;
|
||||
|
||||
FindInPageState build(String tabId);
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build(_$args);
|
||||
final ref = this.ref as $Ref<FindInPageState, FindInPageState>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<FindInPageState, FindInPageState>,
|
||||
FindInPageState,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
+16
-11
@@ -11,19 +11,21 @@ abstract class _$HistoryFilterOptionsCWProxy {
|
||||
|
||||
HistoryFilterOptions visitTypes(Set<VisitType> visitTypes);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `HistoryFilterOptions(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `HistoryFilterOptions(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// HistoryFilterOptions(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
HistoryFilterOptions call({
|
||||
DateTimeRange<DateTime>? dateRange,
|
||||
Set<VisitType> visitTypes,
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfHistoryFilterOptions.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfHistoryFilterOptions.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfHistoryFilterOptions.copyWith(...)` or call `instanceOfHistoryFilterOptions.copyWith.fieldName(value)` for a single field.
|
||||
class _$HistoryFilterOptionsCWProxyImpl
|
||||
implements _$HistoryFilterOptionsCWProxy {
|
||||
const _$HistoryFilterOptionsCWProxyImpl(this._value);
|
||||
@@ -32,19 +34,20 @@ class _$HistoryFilterOptionsCWProxyImpl
|
||||
|
||||
@override
|
||||
HistoryFilterOptions dateRange(DateTimeRange<DateTime>? dateRange) =>
|
||||
this(dateRange: dateRange);
|
||||
call(dateRange: dateRange);
|
||||
|
||||
@override
|
||||
HistoryFilterOptions visitTypes(Set<VisitType> visitTypes) =>
|
||||
this(visitTypes: visitTypes);
|
||||
call(visitTypes: visitTypes);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `HistoryFilterOptions(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `HistoryFilterOptions(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// HistoryFilterOptions(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
HistoryFilterOptions call({
|
||||
Object? dateRange = const $CopyWithPlaceholder(),
|
||||
Object? visitTypes = const $CopyWithPlaceholder(),
|
||||
@@ -54,7 +57,8 @@ class _$HistoryFilterOptionsCWProxyImpl
|
||||
? _value.dateRange
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: dateRange as DateTimeRange<DateTime>?,
|
||||
visitTypes: visitTypes == const $CopyWithPlaceholder()
|
||||
visitTypes:
|
||||
visitTypes == const $CopyWithPlaceholder() || visitTypes == null
|
||||
? _value.visitTypes
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: visitTypes as Set<VisitType>,
|
||||
@@ -63,7 +67,8 @@ class _$HistoryFilterOptionsCWProxyImpl
|
||||
}
|
||||
|
||||
extension $HistoryFilterOptionsCopyWith on HistoryFilterOptions {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfHistoryFilterOptions.copyWith(...)` or like so:`instanceOfHistoryFilterOptions.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfHistoryFilterOptions.copyWith(...)` or `instanceOfHistoryFilterOptions.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$HistoryFilterOptionsCWProxy get copyWith =>
|
||||
_$HistoryFilterOptionsCWProxyImpl(this);
|
||||
|
||||
@@ -6,39 +6,97 @@ part of 'providers.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$browsingHistoryHash() => r'6447fd4d8209c3befb07f2d82fa41a24bd3accb1';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [browsingHistory].
|
||||
@ProviderFor(browsingHistory)
|
||||
final browsingHistoryProvider =
|
||||
AutoDisposeFutureProvider<List<VisitInfo>>.internal(
|
||||
browsingHistory,
|
||||
name: r'browsingHistoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$browsingHistoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
@ProviderFor(HistoryFilter)
|
||||
const historyFilterProvider = HistoryFilterProvider._();
|
||||
|
||||
final class HistoryFilterProvider
|
||||
extends $NotifierProvider<HistoryFilter, HistoryFilterOptions> {
|
||||
const HistoryFilterProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'historyFilterProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$historyFilterHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
HistoryFilter create() => HistoryFilter();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(HistoryFilterOptions value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<HistoryFilterOptions>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef BrowsingHistoryRef = AutoDisposeFutureProviderRef<List<VisitInfo>>;
|
||||
String _$historyFilterHash() => r'68a604fe857476f7c15be89352a7b10bc456c3d6';
|
||||
|
||||
/// See also [HistoryFilter].
|
||||
@ProviderFor(HistoryFilter)
|
||||
final historyFilterProvider =
|
||||
NotifierProvider<HistoryFilter, HistoryFilterOptions>.internal(
|
||||
HistoryFilter.new,
|
||||
name: r'historyFilterProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$historyFilterHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
abstract class _$HistoryFilter extends $Notifier<HistoryFilterOptions> {
|
||||
HistoryFilterOptions build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<HistoryFilterOptions, HistoryFilterOptions>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<HistoryFilterOptions, HistoryFilterOptions>,
|
||||
HistoryFilterOptions,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
typedef _$HistoryFilter = Notifier<HistoryFilterOptions>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
@ProviderFor(browsingHistory)
|
||||
const browsingHistoryProvider = BrowsingHistoryProvider._();
|
||||
|
||||
final class BrowsingHistoryProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<List<VisitInfo>>,
|
||||
List<VisitInfo>,
|
||||
FutureOr<List<VisitInfo>>
|
||||
>
|
||||
with $FutureModifier<List<VisitInfo>>, $FutureProvider<List<VisitInfo>> {
|
||||
const BrowsingHistoryProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'browsingHistoryProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$browsingHistoryHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$FutureProviderElement<List<VisitInfo>> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $FutureProviderElement(pointer);
|
||||
|
||||
@override
|
||||
FutureOr<List<VisitInfo>> create(Ref ref) {
|
||||
return browsingHistory(ref);
|
||||
}
|
||||
}
|
||||
|
||||
String _$browsingHistoryHash() => r'6447fd4d8209c3befb07f2d82fa41a24bd3accb1';
|
||||
|
||||
+40
-28
@@ -11,19 +11,21 @@ abstract class _$PreferenceSettingGroupCWProxy {
|
||||
|
||||
PreferenceSettingGroup settings(Map<String, PreferenceSetting> settings);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `PreferenceSettingGroup(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `PreferenceSettingGroup(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// PreferenceSettingGroup(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
PreferenceSettingGroup call({
|
||||
String? description,
|
||||
Map<String, PreferenceSetting> settings,
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfPreferenceSettingGroup.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfPreferenceSettingGroup.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfPreferenceSettingGroup.copyWith(...)` or call `instanceOfPreferenceSettingGroup.copyWith.fieldName(value)` for a single field.
|
||||
class _$PreferenceSettingGroupCWProxyImpl
|
||||
implements _$PreferenceSettingGroupCWProxy {
|
||||
const _$PreferenceSettingGroupCWProxyImpl(this._value);
|
||||
@@ -32,19 +34,20 @@ class _$PreferenceSettingGroupCWProxyImpl
|
||||
|
||||
@override
|
||||
PreferenceSettingGroup description(String? description) =>
|
||||
this(description: description);
|
||||
call(description: description);
|
||||
|
||||
@override
|
||||
PreferenceSettingGroup settings(Map<String, PreferenceSetting> settings) =>
|
||||
this(settings: settings);
|
||||
call(settings: settings);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `PreferenceSettingGroup(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `PreferenceSettingGroup(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// PreferenceSettingGroup(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
PreferenceSettingGroup call({
|
||||
Object? description = const $CopyWithPlaceholder(),
|
||||
Object? settings = const $CopyWithPlaceholder(),
|
||||
@@ -54,7 +57,7 @@ class _$PreferenceSettingGroupCWProxyImpl
|
||||
? _value.description
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: description as String?,
|
||||
settings: settings == const $CopyWithPlaceholder()
|
||||
settings: settings == const $CopyWithPlaceholder() || settings == null
|
||||
? _value.settings
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: settings as Map<String, PreferenceSetting>,
|
||||
@@ -63,7 +66,8 @@ class _$PreferenceSettingGroupCWProxyImpl
|
||||
}
|
||||
|
||||
extension $PreferenceSettingGroupCopyWith on PreferenceSettingGroup {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfPreferenceSettingGroup.copyWith(...)` or like so:`instanceOfPreferenceSettingGroup.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfPreferenceSettingGroup.copyWith(...)` or `instanceOfPreferenceSettingGroup.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$PreferenceSettingGroupCWProxy get copyWith =>
|
||||
_$PreferenceSettingGroupCWProxyImpl(this);
|
||||
@@ -82,12 +86,13 @@ abstract class _$PreferenceSettingCWProxy {
|
||||
|
||||
PreferenceSetting shouldBeDefault(bool shouldBeDefault);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `PreferenceSetting(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `PreferenceSetting(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// PreferenceSetting(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
PreferenceSetting call({
|
||||
Object value,
|
||||
String? title,
|
||||
@@ -98,41 +103,43 @@ abstract class _$PreferenceSettingCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfPreferenceSetting.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfPreferenceSetting.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfPreferenceSetting.copyWith(...)` or call `instanceOfPreferenceSetting.copyWith.fieldName(value)` for a single field.
|
||||
class _$PreferenceSettingCWProxyImpl implements _$PreferenceSettingCWProxy {
|
||||
const _$PreferenceSettingCWProxyImpl(this._value);
|
||||
|
||||
final PreferenceSetting _value;
|
||||
|
||||
@override
|
||||
PreferenceSetting value(Object value) => this(value: value);
|
||||
PreferenceSetting value(Object value) => call(value: value);
|
||||
|
||||
@override
|
||||
PreferenceSetting title(String? title) => this(title: title);
|
||||
PreferenceSetting title(String? title) => call(title: title);
|
||||
|
||||
@override
|
||||
PreferenceSetting description(String? description) =>
|
||||
this(description: description);
|
||||
call(description: description);
|
||||
|
||||
@override
|
||||
PreferenceSetting actualValue(Object? actualValue) =>
|
||||
this(actualValue: actualValue);
|
||||
call(actualValue: actualValue);
|
||||
|
||||
@override
|
||||
PreferenceSetting requireUserOptIn(bool requireUserOptIn) =>
|
||||
this(requireUserOptIn: requireUserOptIn);
|
||||
call(requireUserOptIn: requireUserOptIn);
|
||||
|
||||
@override
|
||||
PreferenceSetting shouldBeDefault(bool shouldBeDefault) =>
|
||||
this(shouldBeDefault: shouldBeDefault);
|
||||
call(shouldBeDefault: shouldBeDefault);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `PreferenceSetting(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `PreferenceSetting(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// PreferenceSetting(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
PreferenceSetting call({
|
||||
Object? value = const $CopyWithPlaceholder(),
|
||||
Object? title = const $CopyWithPlaceholder(),
|
||||
@@ -142,7 +149,7 @@ class _$PreferenceSettingCWProxyImpl implements _$PreferenceSettingCWProxy {
|
||||
Object? shouldBeDefault = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return PreferenceSetting(
|
||||
value: value == const $CopyWithPlaceholder()
|
||||
value: value == const $CopyWithPlaceholder() || value == null
|
||||
? _value.value
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: value as Object,
|
||||
@@ -158,11 +165,15 @@ class _$PreferenceSettingCWProxyImpl implements _$PreferenceSettingCWProxy {
|
||||
? _value.actualValue
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: actualValue as Object?,
|
||||
requireUserOptIn: requireUserOptIn == const $CopyWithPlaceholder()
|
||||
requireUserOptIn:
|
||||
requireUserOptIn == const $CopyWithPlaceholder() ||
|
||||
requireUserOptIn == null
|
||||
? _value.requireUserOptIn
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: requireUserOptIn as bool,
|
||||
shouldBeDefault: shouldBeDefault == const $CopyWithPlaceholder()
|
||||
shouldBeDefault:
|
||||
shouldBeDefault == const $CopyWithPlaceholder() ||
|
||||
shouldBeDefault == null
|
||||
? _value.shouldBeDefault
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: shouldBeDefault as bool,
|
||||
@@ -171,7 +182,8 @@ class _$PreferenceSettingCWProxyImpl implements _$PreferenceSettingCWProxy {
|
||||
}
|
||||
|
||||
extension $PreferenceSettingCopyWith on PreferenceSetting {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfPreferenceSetting.copyWith(...)` or like so:`instanceOfPreferenceSetting.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfPreferenceSetting.copyWith(...)` or `instanceOfPreferenceSetting.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$PreferenceSettingCWProxy get copyWith =>
|
||||
_$PreferenceSettingCWProxyImpl(this);
|
||||
|
||||
+426
-594
File diff suppressed because it is too large
Load Diff
@@ -6,41 +6,87 @@ part of 'readerable.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(readerableService)
|
||||
const readerableServiceProvider = ReaderableServiceProvider._();
|
||||
|
||||
final class ReaderableServiceProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
GeckoReaderableService,
|
||||
GeckoReaderableService,
|
||||
GeckoReaderableService
|
||||
>
|
||||
with $Provider<GeckoReaderableService> {
|
||||
const ReaderableServiceProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'readerableServiceProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$readerableServiceHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<GeckoReaderableService> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
GeckoReaderableService create(Ref ref) {
|
||||
return readerableService(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(GeckoReaderableService value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<GeckoReaderableService>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$readerableServiceHash() => r'03182c8afc41f5184322a3206473cbfa96df5819';
|
||||
|
||||
/// See also [readerableService].
|
||||
@ProviderFor(readerableService)
|
||||
final readerableServiceProvider = Provider<GeckoReaderableService>.internal(
|
||||
readerableService,
|
||||
name: r'readerableServiceProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$readerableServiceHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(appearanceButtonVisibility)
|
||||
const appearanceButtonVisibilityProvider =
|
||||
AppearanceButtonVisibilityProvider._();
|
||||
|
||||
final class AppearanceButtonVisibilityProvider
|
||||
extends $FunctionalProvider<AsyncValue<bool>, bool, Stream<bool>>
|
||||
with $FutureModifier<bool>, $StreamProvider<bool> {
|
||||
const AppearanceButtonVisibilityProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'appearanceButtonVisibilityProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$appearanceButtonVisibilityHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$StreamProviderElement<bool> $createElement($ProviderPointer pointer) =>
|
||||
$StreamProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Stream<bool> create(Ref ref) {
|
||||
return appearanceButtonVisibility(ref);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef ReaderableServiceRef = ProviderRef<GeckoReaderableService>;
|
||||
String _$appearanceButtonVisibilityHash() =>
|
||||
r'e7102b63113937dd5d17028a5ec8dac428c38bbb';
|
||||
|
||||
/// See also [appearanceButtonVisibility].
|
||||
@ProviderFor(appearanceButtonVisibility)
|
||||
final appearanceButtonVisibilityProvider =
|
||||
AutoDisposeStreamProvider<bool>.internal(
|
||||
appearanceButtonVisibility,
|
||||
name: r'appearanceButtonVisibilityProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$appearanceButtonVisibilityHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef AppearanceButtonVisibilityRef = AutoDisposeStreamProviderRef<bool>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
|
||||
+46
-16
@@ -6,22 +6,52 @@ part of 'readerable.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(ReaderableScreenController)
|
||||
const readerableScreenControllerProvider =
|
||||
ReaderableScreenControllerProvider._();
|
||||
|
||||
final class ReaderableScreenControllerProvider
|
||||
extends $AsyncNotifierProvider<ReaderableScreenController, void> {
|
||||
const ReaderableScreenControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'readerableScreenControllerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$readerableScreenControllerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
ReaderableScreenController create() => ReaderableScreenController();
|
||||
}
|
||||
|
||||
String _$readerableScreenControllerHash() =>
|
||||
r'62b2167ff8f9fe21c3cf3339e135a50aa684160c';
|
||||
|
||||
/// See also [ReaderableScreenController].
|
||||
@ProviderFor(ReaderableScreenController)
|
||||
final readerableScreenControllerProvider =
|
||||
AsyncNotifierProvider<ReaderableScreenController, void>.internal(
|
||||
ReaderableScreenController.new,
|
||||
name: r'readerableScreenControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$readerableScreenControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$ReaderableScreenController = AsyncNotifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$ReaderableScreenController extends $AsyncNotifier<void> {
|
||||
FutureOr<void> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<AsyncValue<void>, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<void>, void>,
|
||||
AsyncValue<void>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ class ReaderAppearanceButton extends HookConsumerWidget {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final buttonVisible = ref.watch(
|
||||
appearanceButtonVisibilityProvider.select(
|
||||
(value) => value.valueOrNull ?? false,
|
||||
(value) => value.value ?? false,
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
+98
-36
@@ -6,44 +6,106 @@ part of 'engine_suggestions.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$engineHistorySuggestionsHash() =>
|
||||
r'7e6c17e6a2df98098ca1a683a438d1c261ccabdf';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [engineHistorySuggestions].
|
||||
@ProviderFor(engineHistorySuggestions)
|
||||
final engineHistorySuggestionsProvider =
|
||||
AutoDisposeProvider<AsyncValue<List<GeckoSuggestion>>>.internal(
|
||||
engineHistorySuggestions,
|
||||
name: r'engineHistorySuggestionsProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineHistorySuggestionsHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(EngineSuggestions)
|
||||
const engineSuggestionsProvider = EngineSuggestionsProvider._();
|
||||
|
||||
final class EngineSuggestionsProvider
|
||||
extends $StreamNotifierProvider<EngineSuggestions, List<GeckoSuggestion>> {
|
||||
const EngineSuggestionsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'engineSuggestionsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$engineSuggestionsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
EngineSuggestions create() => EngineSuggestions();
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef EngineHistorySuggestionsRef =
|
||||
AutoDisposeProviderRef<AsyncValue<List<GeckoSuggestion>>>;
|
||||
String _$engineSuggestionsHash() => r'ba2c2d7f0a5e99fd9e639acd020b8cf3016c6126';
|
||||
|
||||
/// See also [EngineSuggestions].
|
||||
@ProviderFor(EngineSuggestions)
|
||||
final engineSuggestionsProvider =
|
||||
AutoDisposeStreamNotifierProvider<
|
||||
EngineSuggestions,
|
||||
List<GeckoSuggestion>
|
||||
>.internal(
|
||||
EngineSuggestions.new,
|
||||
name: r'engineSuggestionsProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$engineSuggestionsHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
abstract class _$EngineSuggestions
|
||||
extends $StreamNotifier<List<GeckoSuggestion>> {
|
||||
Stream<List<GeckoSuggestion>> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref =
|
||||
this.ref
|
||||
as $Ref<AsyncValue<List<GeckoSuggestion>>, List<GeckoSuggestion>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<
|
||||
AsyncValue<List<GeckoSuggestion>>,
|
||||
List<GeckoSuggestion>
|
||||
>,
|
||||
AsyncValue<List<GeckoSuggestion>>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
typedef _$EngineSuggestions = AutoDisposeStreamNotifier<List<GeckoSuggestion>>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
@ProviderFor(engineHistorySuggestions)
|
||||
const engineHistorySuggestionsProvider = EngineHistorySuggestionsProvider._();
|
||||
|
||||
final class EngineHistorySuggestionsProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<List<GeckoSuggestion>>,
|
||||
AsyncValue<List<GeckoSuggestion>>,
|
||||
AsyncValue<List<GeckoSuggestion>>
|
||||
>
|
||||
with $Provider<AsyncValue<List<GeckoSuggestion>>> {
|
||||
const EngineHistorySuggestionsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'engineHistorySuggestionsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$engineHistorySuggestionsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<AsyncValue<List<GeckoSuggestion>>> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
AsyncValue<List<GeckoSuggestion>> create(Ref ref) {
|
||||
return engineHistorySuggestions(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(AsyncValue<List<GeckoSuggestion>> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<AsyncValue<List<GeckoSuggestion>>>(
|
||||
value,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$engineHistorySuggestionsHash() =>
|
||||
r'7e6c17e6a2df98098ca1a683a438d1c261ccabdf';
|
||||
|
||||
+116
-159
@@ -6,187 +6,144 @@ part of 'search_suggestions.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(defaultSearchSuggestions)
|
||||
const defaultSearchSuggestionsProvider = DefaultSearchSuggestionsProvider._();
|
||||
|
||||
final class DefaultSearchSuggestionsProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
ISearchSuggestionProvider,
|
||||
ISearchSuggestionProvider,
|
||||
ISearchSuggestionProvider
|
||||
>
|
||||
with $Provider<ISearchSuggestionProvider> {
|
||||
const DefaultSearchSuggestionsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'defaultSearchSuggestionsProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$defaultSearchSuggestionsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<ISearchSuggestionProvider> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
ISearchSuggestionProvider create(Ref ref) {
|
||||
return defaultSearchSuggestions(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(ISearchSuggestionProvider value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<ISearchSuggestionProvider>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$defaultSearchSuggestionsHash() =>
|
||||
r'6d7a387c7daeb790a4c9a5cdc105d2a2bdbacd2b';
|
||||
|
||||
/// See also [defaultSearchSuggestions].
|
||||
@ProviderFor(defaultSearchSuggestions)
|
||||
final defaultSearchSuggestionsProvider =
|
||||
Provider<ISearchSuggestionProvider>.internal(
|
||||
defaultSearchSuggestions,
|
||||
name: r'defaultSearchSuggestionsProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$defaultSearchSuggestionsHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef DefaultSearchSuggestionsRef = ProviderRef<ISearchSuggestionProvider>;
|
||||
String _$searchSuggestionsHash() => r'8d1fb72cab374491a53f7a814f87af6a26356f42';
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$SearchSuggestions
|
||||
extends BuildlessAutoDisposeStreamNotifier<List<String>> {
|
||||
late final ISearchSuggestionProvider? suggestionsProvider;
|
||||
|
||||
Stream<List<String>> build({ISearchSuggestionProvider? suggestionsProvider});
|
||||
}
|
||||
|
||||
/// See also [SearchSuggestions].
|
||||
@ProviderFor(SearchSuggestions)
|
||||
const searchSuggestionsProvider = SearchSuggestionsFamily();
|
||||
const searchSuggestionsProvider = SearchSuggestionsFamily._();
|
||||
|
||||
/// See also [SearchSuggestions].
|
||||
class SearchSuggestionsFamily extends Family<AsyncValue<List<String>>> {
|
||||
/// See also [SearchSuggestions].
|
||||
const SearchSuggestionsFamily();
|
||||
final class SearchSuggestionsProvider
|
||||
extends $StreamNotifierProvider<SearchSuggestions, List<String>> {
|
||||
const SearchSuggestionsProvider._({
|
||||
required SearchSuggestionsFamily super.from,
|
||||
required ISearchSuggestionProvider? super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'searchSuggestionsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
/// See also [SearchSuggestions].
|
||||
SearchSuggestionsProvider call({
|
||||
ISearchSuggestionProvider? suggestionsProvider,
|
||||
}) {
|
||||
return SearchSuggestionsProvider(suggestionsProvider: suggestionsProvider);
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$searchSuggestionsHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'searchSuggestionsProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
SearchSuggestionsProvider getProviderOverride(
|
||||
covariant SearchSuggestionsProvider provider,
|
||||
) {
|
||||
return call(suggestionsProvider: provider.suggestionsProvider);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'searchSuggestionsProvider';
|
||||
}
|
||||
|
||||
/// See also [SearchSuggestions].
|
||||
class SearchSuggestionsProvider
|
||||
extends
|
||||
AutoDisposeStreamNotifierProviderImpl<SearchSuggestions, List<String>> {
|
||||
/// See also [SearchSuggestions].
|
||||
SearchSuggestionsProvider({ISearchSuggestionProvider? suggestionsProvider})
|
||||
: this._internal(
|
||||
() => SearchSuggestions()..suggestionsProvider = suggestionsProvider,
|
||||
from: searchSuggestionsProvider,
|
||||
name: r'searchSuggestionsProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$searchSuggestionsHash,
|
||||
dependencies: SearchSuggestionsFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
SearchSuggestionsFamily._allTransitiveDependencies,
|
||||
suggestionsProvider: suggestionsProvider,
|
||||
);
|
||||
|
||||
SearchSuggestionsProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.suggestionsProvider,
|
||||
}) : super.internal();
|
||||
|
||||
final ISearchSuggestionProvider? suggestionsProvider;
|
||||
|
||||
@override
|
||||
Stream<List<String>> runNotifierBuild(covariant SearchSuggestions notifier) {
|
||||
return notifier.build(suggestionsProvider: suggestionsProvider);
|
||||
}
|
||||
|
||||
@override
|
||||
Override overrideWith(SearchSuggestions Function() create) {
|
||||
return ProviderOverride(
|
||||
origin: this,
|
||||
override: SearchSuggestionsProvider._internal(
|
||||
() => create()..suggestionsProvider = suggestionsProvider,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
suggestionsProvider: suggestionsProvider,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
AutoDisposeStreamNotifierProviderElement<SearchSuggestions, List<String>>
|
||||
createElement() {
|
||||
return _SearchSuggestionsProviderElement(this);
|
||||
}
|
||||
SearchSuggestions create() => SearchSuggestions();
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is SearchSuggestionsProvider &&
|
||||
other.suggestionsProvider == suggestionsProvider;
|
||||
return other is SearchSuggestionsProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, suggestionsProvider.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin SearchSuggestionsRef
|
||||
on AutoDisposeStreamNotifierProviderRef<List<String>> {
|
||||
/// The parameter `suggestionsProvider` of this provider.
|
||||
ISearchSuggestionProvider? get suggestionsProvider;
|
||||
}
|
||||
String _$searchSuggestionsHash() => r'8d1fb72cab374491a53f7a814f87af6a26356f42';
|
||||
|
||||
class _SearchSuggestionsProviderElement
|
||||
extends
|
||||
AutoDisposeStreamNotifierProviderElement<
|
||||
final class SearchSuggestionsFamily extends $Family
|
||||
with
|
||||
$ClassFamilyOverride<
|
||||
SearchSuggestions,
|
||||
List<String>
|
||||
>
|
||||
with SearchSuggestionsRef {
|
||||
_SearchSuggestionsProviderElement(super.provider);
|
||||
AsyncValue<List<String>>,
|
||||
List<String>,
|
||||
Stream<List<String>>,
|
||||
ISearchSuggestionProvider?
|
||||
> {
|
||||
const SearchSuggestionsFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'searchSuggestionsProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: true,
|
||||
);
|
||||
|
||||
SearchSuggestionsProvider call({
|
||||
ISearchSuggestionProvider? suggestionsProvider,
|
||||
}) => SearchSuggestionsProvider._(argument: suggestionsProvider, from: this);
|
||||
|
||||
@override
|
||||
ISearchSuggestionProvider? get suggestionsProvider =>
|
||||
(origin as SearchSuggestionsProvider).suggestionsProvider;
|
||||
String toString() => r'searchSuggestionsProvider';
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$SearchSuggestions extends $StreamNotifier<List<String>> {
|
||||
late final _$args = ref.$arg as ISearchSuggestionProvider?;
|
||||
ISearchSuggestionProvider? get suggestionsProvider => _$args;
|
||||
|
||||
Stream<List<String>> build({ISearchSuggestionProvider? suggestionsProvider});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build(suggestionsProvider: _$args);
|
||||
final ref = this.ref as $Ref<AsyncValue<List<String>>, List<String>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<List<String>>, List<String>>,
|
||||
AsyncValue<List<String>>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
+83
-148
@@ -6,183 +6,118 @@ part of 'search_suggestions.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$searchSuggestionsRepositoryHash() =>
|
||||
r'be75d075c3479c3d5e462211dec8bbd21b106820';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$SearchSuggestionsRepository
|
||||
extends BuildlessNotifier<Raw<Stream<List<String>>>> {
|
||||
late final ISearchSuggestionProvider suggestionsProvider;
|
||||
|
||||
Raw<Stream<List<String>>> build(
|
||||
ISearchSuggestionProvider suggestionsProvider,
|
||||
);
|
||||
}
|
||||
|
||||
/// See also [SearchSuggestionsRepository].
|
||||
@ProviderFor(SearchSuggestionsRepository)
|
||||
const searchSuggestionsRepositoryProvider = SearchSuggestionsRepositoryFamily();
|
||||
const searchSuggestionsRepositoryProvider =
|
||||
SearchSuggestionsRepositoryFamily._();
|
||||
|
||||
/// See also [SearchSuggestionsRepository].
|
||||
class SearchSuggestionsRepositoryFamily
|
||||
extends Family<Raw<Stream<List<String>>>> {
|
||||
/// See also [SearchSuggestionsRepository].
|
||||
const SearchSuggestionsRepositoryFamily();
|
||||
|
||||
/// See also [SearchSuggestionsRepository].
|
||||
SearchSuggestionsRepositoryProvider call(
|
||||
ISearchSuggestionProvider suggestionsProvider,
|
||||
) {
|
||||
return SearchSuggestionsRepositoryProvider(suggestionsProvider);
|
||||
}
|
||||
|
||||
@override
|
||||
SearchSuggestionsRepositoryProvider getProviderOverride(
|
||||
covariant SearchSuggestionsRepositoryProvider provider,
|
||||
) {
|
||||
return call(provider.suggestionsProvider);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'searchSuggestionsRepositoryProvider';
|
||||
}
|
||||
|
||||
/// See also [SearchSuggestionsRepository].
|
||||
class SearchSuggestionsRepositoryProvider
|
||||
final class SearchSuggestionsRepositoryProvider
|
||||
extends
|
||||
NotifierProviderImpl<
|
||||
$NotifierProvider<
|
||||
SearchSuggestionsRepository,
|
||||
Raw<Stream<List<String>>>
|
||||
> {
|
||||
/// See also [SearchSuggestionsRepository].
|
||||
SearchSuggestionsRepositoryProvider(
|
||||
ISearchSuggestionProvider suggestionsProvider,
|
||||
) : this._internal(
|
||||
() =>
|
||||
SearchSuggestionsRepository()
|
||||
..suggestionsProvider = suggestionsProvider,
|
||||
from: searchSuggestionsRepositoryProvider,
|
||||
name: r'searchSuggestionsRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$searchSuggestionsRepositoryHash,
|
||||
dependencies: SearchSuggestionsRepositoryFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
SearchSuggestionsRepositoryFamily._allTransitiveDependencies,
|
||||
suggestionsProvider: suggestionsProvider,
|
||||
);
|
||||
|
||||
SearchSuggestionsRepositoryProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.suggestionsProvider,
|
||||
}) : super.internal();
|
||||
|
||||
final ISearchSuggestionProvider suggestionsProvider;
|
||||
const SearchSuggestionsRepositoryProvider._({
|
||||
required SearchSuggestionsRepositoryFamily super.from,
|
||||
required ISearchSuggestionProvider super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'searchSuggestionsRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
Raw<Stream<List<String>>> runNotifierBuild(
|
||||
covariant SearchSuggestionsRepository notifier,
|
||||
) {
|
||||
return notifier.build(suggestionsProvider);
|
||||
String debugGetCreateSourceHash() => _$searchSuggestionsRepositoryHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'searchSuggestionsRepositoryProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
Override overrideWith(SearchSuggestionsRepository Function() create) {
|
||||
return ProviderOverride(
|
||||
SearchSuggestionsRepository create() => SearchSuggestionsRepository();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Raw<Stream<List<String>>> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
override: SearchSuggestionsRepositoryProvider._internal(
|
||||
() => create()..suggestionsProvider = suggestionsProvider,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
suggestionsProvider: suggestionsProvider,
|
||||
),
|
||||
providerOverride: $SyncValueProvider<Raw<Stream<List<String>>>>(value),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
NotifierProviderElement<
|
||||
SearchSuggestionsRepository,
|
||||
Raw<Stream<List<String>>>
|
||||
>
|
||||
createElement() {
|
||||
return _SearchSuggestionsRepositoryProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is SearchSuggestionsRepositoryProvider &&
|
||||
other.suggestionsProvider == suggestionsProvider;
|
||||
other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, suggestionsProvider.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin SearchSuggestionsRepositoryRef
|
||||
on NotifierProviderRef<Raw<Stream<List<String>>>> {
|
||||
/// The parameter `suggestionsProvider` of this provider.
|
||||
ISearchSuggestionProvider get suggestionsProvider;
|
||||
}
|
||||
String _$searchSuggestionsRepositoryHash() =>
|
||||
r'be75d075c3479c3d5e462211dec8bbd21b106820';
|
||||
|
||||
class _SearchSuggestionsRepositoryProviderElement
|
||||
extends
|
||||
NotifierProviderElement<
|
||||
final class SearchSuggestionsRepositoryFamily extends $Family
|
||||
with
|
||||
$ClassFamilyOverride<
|
||||
SearchSuggestionsRepository,
|
||||
Raw<Stream<List<String>>>
|
||||
>
|
||||
with SearchSuggestionsRepositoryRef {
|
||||
_SearchSuggestionsRepositoryProviderElement(super.provider);
|
||||
Raw<Stream<List<String>>>,
|
||||
Raw<Stream<List<String>>>,
|
||||
Raw<Stream<List<String>>>,
|
||||
ISearchSuggestionProvider
|
||||
> {
|
||||
const SearchSuggestionsRepositoryFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'searchSuggestionsRepositoryProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: false,
|
||||
);
|
||||
|
||||
SearchSuggestionsRepositoryProvider call(
|
||||
ISearchSuggestionProvider suggestionsProvider,
|
||||
) => SearchSuggestionsRepositoryProvider._(
|
||||
argument: suggestionsProvider,
|
||||
from: this,
|
||||
);
|
||||
|
||||
@override
|
||||
ISearchSuggestionProvider get suggestionsProvider =>
|
||||
(origin as SearchSuggestionsRepositoryProvider).suggestionsProvider;
|
||||
String toString() => r'searchSuggestionsRepositoryProvider';
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$SearchSuggestionsRepository
|
||||
extends $Notifier<Raw<Stream<List<String>>>> {
|
||||
late final _$args = ref.$arg as ISearchSuggestionProvider;
|
||||
ISearchSuggestionProvider get suggestionsProvider => _$args;
|
||||
|
||||
Raw<Stream<List<String>>> build(
|
||||
ISearchSuggestionProvider suggestionsProvider,
|
||||
);
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build(_$args);
|
||||
final ref =
|
||||
this.ref as $Ref<Raw<Stream<List<String>>>, Raw<Stream<List<String>>>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<Raw<Stream<List<String>>>, Raw<Stream<List<String>>>>,
|
||||
Raw<Stream<List<String>>>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ class SearchScreen extends HookConsumerWidget {
|
||||
final searchFocusNode = useFocusNode();
|
||||
|
||||
final defaultSearchBang = ref.watch(
|
||||
defaultSearchBangDataProvider.select((value) => value.valueOrNull),
|
||||
defaultSearchBangDataProvider.select((value) => value.value),
|
||||
);
|
||||
|
||||
final selectedBang = useState<BangData?>(null);
|
||||
|
||||
+2
-2
@@ -62,7 +62,7 @@ class FeedSearch extends HookConsumerWidget {
|
||||
);
|
||||
});
|
||||
|
||||
if (articlesAsync.hasValue && (articlesAsync.valueOrNull.isEmpty)) {
|
||||
if (articlesAsync.hasValue && (articlesAsync.value.isEmpty)) {
|
||||
return const SliverToBoxAdapter(child: SizedBox.shrink());
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ class FeedSearch extends HookConsumerWidget {
|
||||
);
|
||||
},
|
||||
loading: () => SliverList.builder(
|
||||
itemCount: articlesAsync.valueOrNull?.length ?? 3,
|
||||
itemCount: articlesAsync.value?.length ?? 3,
|
||||
itemBuilder: (context, index) {
|
||||
return const ListTile(title: Bone.text());
|
||||
},
|
||||
|
||||
+2
-2
@@ -69,8 +69,8 @@ class FixedSearchTermSuggestions extends HookConsumerWidget {
|
||||
final prioritizedSuggestions = isSuggestableText
|
||||
? [
|
||||
searchTextController.text,
|
||||
if (searchSuggestions.valueOrNull != null)
|
||||
...searchSuggestions.valueOrNull!
|
||||
if (searchSuggestions.value != null)
|
||||
...searchSuggestions.value!
|
||||
.whereNot(
|
||||
(suggestion) => suggestion == searchTextController.text,
|
||||
)
|
||||
|
||||
+2
-2
@@ -94,8 +94,8 @@ class FullSearchTermSuggestions extends HookConsumerWidget {
|
||||
} else {
|
||||
final prioritizedSuggestions = [
|
||||
if (searchTextIsNotEmpty) searchTextController.text,
|
||||
if (searchSuggestions.valueOrNull != null)
|
||||
...searchSuggestions.valueOrNull!.whereNot(
|
||||
if (searchSuggestions.value != null)
|
||||
...searchSuggestions.value!.whereNot(
|
||||
(suggestion) => suggestion == searchTextController.text,
|
||||
),
|
||||
];
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ class HistorySuggestions extends HookConsumerWidget {
|
||||
});
|
||||
|
||||
if (historySuggestionsAsync.hasValue &&
|
||||
(historySuggestionsAsync.valueOrNull.isEmpty)) {
|
||||
(historySuggestionsAsync.value.isEmpty)) {
|
||||
return const SliverToBoxAdapter(child: SizedBox.shrink());
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ class HistorySuggestions extends HookConsumerWidget {
|
||||
);
|
||||
},
|
||||
loading: () => SliverList.builder(
|
||||
itemCount: historySuggestionsAsync.valueOrNull?.length ?? 3,
|
||||
itemCount: historySuggestionsAsync.value?.length ?? 3,
|
||||
itemBuilder: (context, index) {
|
||||
return const ListTile(title: Bone.text());
|
||||
},
|
||||
|
||||
+1
-3
@@ -49,9 +49,7 @@ class TabSearch extends HookConsumerWidget {
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final selectedContainer = useState<ContainerData?>(
|
||||
ref.read(
|
||||
selectedContainerDataProvider.select((value) => value.valueOrNull),
|
||||
),
|
||||
ref.read(selectedContainerDataProvider.select((value) => value.value)),
|
||||
);
|
||||
|
||||
final tabs = ref
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/daos/container.drift.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/database.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/definitions.drift.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/models/container_data.dart';
|
||||
|
||||
part 'container.g.dart';
|
||||
|
||||
@DriftAccessor()
|
||||
class ContainerDao extends DatabaseAccessor<TabDatabase>
|
||||
with _$ContainerDaoMixin {
|
||||
with $ContainerDaoMixin {
|
||||
ContainerDao(super.db);
|
||||
|
||||
Future<void> addContainer(ContainerData container) {
|
||||
@@ -99,27 +99,39 @@ class ContainerDao extends DatabaseAccessor<TabDatabase>
|
||||
String? containerId, {
|
||||
int bucket = 0,
|
||||
}) {
|
||||
return db.leadingOrderKey(bucket: bucket, containerId: containerId);
|
||||
return db.definitionsDrift.leadingOrderKey(
|
||||
bucket: bucket,
|
||||
containerId: containerId,
|
||||
);
|
||||
}
|
||||
|
||||
SingleSelectable<String> generateTrailingOrderKey(
|
||||
String? containerId, {
|
||||
int bucket = 0,
|
||||
}) {
|
||||
return db.trailingOrderKey(bucket: bucket, containerId: containerId);
|
||||
return db.definitionsDrift.trailingOrderKey(
|
||||
bucket: bucket,
|
||||
containerId: containerId,
|
||||
);
|
||||
}
|
||||
|
||||
SingleSelectable<String> generateOrderKeyAfterTabId(
|
||||
String? containerId,
|
||||
String tabId,
|
||||
) {
|
||||
return db.orderKeyAfterTab(containerId: containerId, tabId: tabId);
|
||||
return db.definitionsDrift.orderKeyAfterTab(
|
||||
containerId: containerId,
|
||||
tabId: tabId,
|
||||
);
|
||||
}
|
||||
|
||||
SingleSelectable<String> generateOrderKeyBeforeTabId(
|
||||
String? containerId,
|
||||
String tabId,
|
||||
) {
|
||||
return db.orderKeyBeforeTab(containerId: containerId, tabId: tabId);
|
||||
return db.definitionsDrift.orderKeyBeforeTab(
|
||||
containerId: containerId,
|
||||
tabId: tabId,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// dart format width=80
|
||||
// ignore_for_file: type=lint
|
||||
import 'package:drift/drift.dart' as i0;
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/database.dart'
|
||||
as i1;
|
||||
|
||||
mixin $ContainerDaoMixin on i0.DatabaseAccessor<i1.TabDatabase> {}
|
||||
@@ -1,6 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'container.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
mixin _$ContainerDaoMixin on DatabaseAccessor<TabDatabase> {}
|
||||
@@ -23,13 +23,13 @@ import 'package:drift/drift.dart';
|
||||
import 'package:lexo_rank/lexo_rank.dart';
|
||||
import 'package:nullability/nullability.dart';
|
||||
import 'package:weblibre/features/geckoview/domain/entities/states/tab.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/daos/tab.drift.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/database.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/definitions.drift.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/models/tab_query_result.dart';
|
||||
|
||||
part 'tab.g.dart';
|
||||
|
||||
@DriftAccessor()
|
||||
class TabDao extends DatabaseAccessor<TabDatabase> with _$TabDaoMixin {
|
||||
class TabDao extends DatabaseAccessor<TabDatabase> with $TabDaoMixin {
|
||||
final _undoHistory = <String, TabData>{};
|
||||
Timer? _clearHistoryTimer;
|
||||
|
||||
@@ -258,7 +258,7 @@ class TabDao extends DatabaseAccessor<TabDatabase> with _$TabDaoMixin {
|
||||
final ftsQuery = db.buildFtsQuery(searchString);
|
||||
|
||||
if (ftsQuery.isNotEmpty) {
|
||||
return db.queryTabsFullContent(
|
||||
return db.definitionsDrift.queryTabsFullContent(
|
||||
query: ftsQuery,
|
||||
snippetLength: snippetLength,
|
||||
beforeMatch: matchPrefix,
|
||||
@@ -266,7 +266,9 @@ class TabDao extends DatabaseAccessor<TabDatabase> with _$TabDaoMixin {
|
||||
ellipsis: ellipsis,
|
||||
);
|
||||
} else {
|
||||
return db.queryTabsBasic(query: db.buildLikeQuery(searchString));
|
||||
return db.definitionsDrift.queryTabsBasic(
|
||||
query: db.buildLikeQuery(searchString),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// dart format width=80
|
||||
// ignore_for_file: type=lint
|
||||
import 'package:drift/drift.dart' as i0;
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/database.dart'
|
||||
as i1;
|
||||
|
||||
mixin $TabDaoMixin on i0.DatabaseAccessor<i1.TabDatabase> {}
|
||||
@@ -1,6 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'tab.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
mixin _$TabDaoMixin on DatabaseAccessor<TabDatabase> {}
|
||||
@@ -18,20 +18,13 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:flutter/widgets.dart' show Color;
|
||||
import 'package:weblibre/data/database/converters/color.dart';
|
||||
import 'package:weblibre/data/database/converters/uri.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/converters/container_metadata_converter.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/daos/container.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/daos/tab.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/models/container_data.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/models/tab_query_result.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/database.drift.dart';
|
||||
import 'package:weblibre/features/search/domain/fts_tokenizer.dart';
|
||||
|
||||
part 'database.g.dart';
|
||||
|
||||
@DriftDatabase(include: {'database.drift'}, daos: [ContainerDao, TabDao])
|
||||
class TabDatabase extends _$TabDatabase with TrigramQueryBuilderMixin {
|
||||
@DriftDatabase(include: {'definitions.drift'}, daos: [ContainerDao, TabDao])
|
||||
class TabDatabase extends $TabDatabase with TrigramQueryBuilderMixin {
|
||||
@override
|
||||
final int schemaVersion = 2;
|
||||
|
||||
@@ -44,7 +37,7 @@ class TabDatabase extends _$TabDatabase with TrigramQueryBuilderMixin {
|
||||
MigrationStrategy get migration => MigrationStrategy(
|
||||
beforeOpen: (details) async {
|
||||
await customStatement('PRAGMA foreign_keys = ON;');
|
||||
await optimizeFtsIndex();
|
||||
await definitionsDrift.optimizeFtsIndex();
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
// dart format width=80
|
||||
// ignore_for_file: type=lint
|
||||
import 'package:drift/drift.dart' as i0;
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/definitions.drift.dart'
|
||||
as i1;
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/daos/container.dart'
|
||||
as i2;
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/database.dart'
|
||||
as i3;
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/daos/tab.dart'
|
||||
as i4;
|
||||
import 'package:drift/internal/modular.dart' as i5;
|
||||
import 'package:sqlite3/common.dart' as i6;
|
||||
|
||||
abstract class $TabDatabase extends i0.GeneratedDatabase {
|
||||
$TabDatabase(i0.QueryExecutor e) : super(e);
|
||||
$TabDatabaseManager get managers => $TabDatabaseManager(this);
|
||||
late final i1.Container container = i1.Container(this);
|
||||
late final i1.Tab tab = i1.Tab(this);
|
||||
late final i1.TabFts tabFts = i1.TabFts(this);
|
||||
late final i2.ContainerDao containerDao = i2.ContainerDao(
|
||||
this as i3.TabDatabase,
|
||||
);
|
||||
late final i4.TabDao tabDao = i4.TabDao(this as i3.TabDatabase);
|
||||
i1.DefinitionsDrift get definitionsDrift => i5.ReadDatabaseContainer(
|
||||
this,
|
||||
).accessor<i1.DefinitionsDrift>(i1.DefinitionsDrift.new);
|
||||
@override
|
||||
Iterable<i0.TableInfo<i0.Table, Object?>> get allTables =>
|
||||
allSchemaEntities.whereType<i0.TableInfo<i0.Table, Object?>>();
|
||||
@override
|
||||
List<i0.DatabaseSchemaEntity> get allSchemaEntities => [
|
||||
container,
|
||||
tab,
|
||||
tabFts,
|
||||
i1.tabMaintainParentChainOnDelete,
|
||||
i1.tabAfterInsert,
|
||||
i1.tabAfterDelete,
|
||||
i1.tabAfterUpdate,
|
||||
];
|
||||
@override
|
||||
i0.StreamQueryUpdateRules get streamUpdateRules =>
|
||||
const i0.StreamQueryUpdateRules([
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'container',
|
||||
limitUpdateKind: i0.UpdateKind.delete,
|
||||
),
|
||||
result: [i0.TableUpdate('tab', kind: i0.UpdateKind.delete)],
|
||||
),
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'tab',
|
||||
limitUpdateKind: i0.UpdateKind.delete,
|
||||
),
|
||||
result: [i0.TableUpdate('tab', kind: i0.UpdateKind.update)],
|
||||
),
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'tab',
|
||||
limitUpdateKind: i0.UpdateKind.insert,
|
||||
),
|
||||
result: [i0.TableUpdate('tab_fts', kind: i0.UpdateKind.insert)],
|
||||
),
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'tab',
|
||||
limitUpdateKind: i0.UpdateKind.delete,
|
||||
),
|
||||
result: [i0.TableUpdate('tab_fts', kind: i0.UpdateKind.insert)],
|
||||
),
|
||||
i0.WritePropagation(
|
||||
on: i0.TableUpdateQuery.onTableName(
|
||||
'tab',
|
||||
limitUpdateKind: i0.UpdateKind.update,
|
||||
),
|
||||
result: [i0.TableUpdate('tab_fts', kind: i0.UpdateKind.insert)],
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
class $TabDatabaseManager {
|
||||
final $TabDatabase _db;
|
||||
$TabDatabaseManager(this._db);
|
||||
i1.$ContainerTableManager get container =>
|
||||
i1.$ContainerTableManager(_db, _db.container);
|
||||
i1.$TabTableManager get tab => i1.$TabTableManager(_db, _db.tab);
|
||||
i1.$TabFtsTableManager get tabFts => i1.$TabFtsTableManager(_db, _db.tabFts);
|
||||
}
|
||||
|
||||
extension DefineFunctions on i6.CommonDatabase {
|
||||
void defineFunctions({
|
||||
required String Function(int, String?) lexoRankNext,
|
||||
required String Function(int, String?) lexoRankPrevious,
|
||||
required String Function(String?, String?) lexoRankReorderAfter,
|
||||
required String Function(String?, String?) lexoRankReorderBefore,
|
||||
}) {
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_next',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as int;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankNext(arg0, arg1);
|
||||
},
|
||||
);
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_previous',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as int;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankPrevious(arg0, arg1);
|
||||
},
|
||||
);
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_reorder_after',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as String?;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankReorderAfter(arg0, arg1);
|
||||
},
|
||||
);
|
||||
createFunction(
|
||||
functionName: 'lexo_rank_reorder_before',
|
||||
argumentCount: const i6.AllowedArgumentCount(2),
|
||||
function: (args) {
|
||||
final arg0 = args[0] as String?;
|
||||
final arg1 = args[1] as String?;
|
||||
return lexoRankReorderBefore(arg0, arg1);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
+1398
-1372
File diff suppressed because it is too large
Load Diff
@@ -13,12 +13,13 @@ abstract class _$ContainerAuthSettingsCWProxy {
|
||||
|
||||
ContainerAuthSettings lockTimeout(Duration? lockTimeout);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ContainerAuthSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `ContainerAuthSettings(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// ContainerAuthSettings(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
ContainerAuthSettings call({
|
||||
bool authenticationRequired,
|
||||
bool lockOnAppBackground,
|
||||
@@ -26,7 +27,8 @@ abstract class _$ContainerAuthSettingsCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfContainerAuthSettings.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfContainerAuthSettings.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfContainerAuthSettings.copyWith(...)` or call `instanceOfContainerAuthSettings.copyWith.fieldName(value)` for a single field.
|
||||
class _$ContainerAuthSettingsCWProxyImpl
|
||||
implements _$ContainerAuthSettingsCWProxy {
|
||||
const _$ContainerAuthSettingsCWProxyImpl(this._value);
|
||||
@@ -35,23 +37,24 @@ class _$ContainerAuthSettingsCWProxyImpl
|
||||
|
||||
@override
|
||||
ContainerAuthSettings authenticationRequired(bool authenticationRequired) =>
|
||||
this(authenticationRequired: authenticationRequired);
|
||||
call(authenticationRequired: authenticationRequired);
|
||||
|
||||
@override
|
||||
ContainerAuthSettings lockOnAppBackground(bool lockOnAppBackground) =>
|
||||
this(lockOnAppBackground: lockOnAppBackground);
|
||||
call(lockOnAppBackground: lockOnAppBackground);
|
||||
|
||||
@override
|
||||
ContainerAuthSettings lockTimeout(Duration? lockTimeout) =>
|
||||
this(lockTimeout: lockTimeout);
|
||||
call(lockTimeout: lockTimeout);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ContainerAuthSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `ContainerAuthSettings(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// ContainerAuthSettings(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
ContainerAuthSettings call({
|
||||
Object? authenticationRequired = const $CopyWithPlaceholder(),
|
||||
Object? lockOnAppBackground = const $CopyWithPlaceholder(),
|
||||
@@ -59,11 +62,14 @@ class _$ContainerAuthSettingsCWProxyImpl
|
||||
}) {
|
||||
return ContainerAuthSettings(
|
||||
authenticationRequired:
|
||||
authenticationRequired == const $CopyWithPlaceholder()
|
||||
authenticationRequired == const $CopyWithPlaceholder() ||
|
||||
authenticationRequired == null
|
||||
? _value.authenticationRequired
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: authenticationRequired as bool,
|
||||
lockOnAppBackground: lockOnAppBackground == const $CopyWithPlaceholder()
|
||||
lockOnAppBackground:
|
||||
lockOnAppBackground == const $CopyWithPlaceholder() ||
|
||||
lockOnAppBackground == null
|
||||
? _value.lockOnAppBackground
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: lockOnAppBackground as bool,
|
||||
@@ -76,7 +82,8 @@ class _$ContainerAuthSettingsCWProxyImpl
|
||||
}
|
||||
|
||||
extension $ContainerAuthSettingsCopyWith on ContainerAuthSettings {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfContainerAuthSettings.copyWith(...)` or like so:`instanceOfContainerAuthSettings.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfContainerAuthSettings.copyWith(...)` or `instanceOfContainerAuthSettings.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$ContainerAuthSettingsCWProxy get copyWith =>
|
||||
_$ContainerAuthSettingsCWProxyImpl(this);
|
||||
@@ -91,12 +98,13 @@ abstract class _$ContainerMetadataCWProxy {
|
||||
|
||||
ContainerMetadata useProxy(bool useProxy);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ContainerMetadata(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `ContainerMetadata(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// ContainerMetadata(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
ContainerMetadata call({
|
||||
IconData? iconData,
|
||||
String? contextualIdentity,
|
||||
@@ -105,33 +113,35 @@ abstract class _$ContainerMetadataCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfContainerMetadata.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfContainerMetadata.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfContainerMetadata.copyWith(...)` or call `instanceOfContainerMetadata.copyWith.fieldName(value)` for a single field.
|
||||
class _$ContainerMetadataCWProxyImpl implements _$ContainerMetadataCWProxy {
|
||||
const _$ContainerMetadataCWProxyImpl(this._value);
|
||||
|
||||
final ContainerMetadata _value;
|
||||
|
||||
@override
|
||||
ContainerMetadata iconData(IconData? iconData) => this(iconData: iconData);
|
||||
ContainerMetadata iconData(IconData? iconData) => call(iconData: iconData);
|
||||
|
||||
@override
|
||||
ContainerMetadata contextualIdentity(String? contextualIdentity) =>
|
||||
this(contextualIdentity: contextualIdentity);
|
||||
call(contextualIdentity: contextualIdentity);
|
||||
|
||||
@override
|
||||
ContainerMetadata authSettings(ContainerAuthSettings authSettings) =>
|
||||
this(authSettings: authSettings);
|
||||
call(authSettings: authSettings);
|
||||
|
||||
@override
|
||||
ContainerMetadata useProxy(bool useProxy) => this(useProxy: useProxy);
|
||||
ContainerMetadata useProxy(bool useProxy) => call(useProxy: useProxy);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ContainerMetadata(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `ContainerMetadata(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// ContainerMetadata(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
ContainerMetadata call({
|
||||
Object? iconData = const $CopyWithPlaceholder(),
|
||||
Object? contextualIdentity = const $CopyWithPlaceholder(),
|
||||
@@ -147,11 +157,12 @@ class _$ContainerMetadataCWProxyImpl implements _$ContainerMetadataCWProxy {
|
||||
? _value.contextualIdentity
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: contextualIdentity as String?,
|
||||
authSettings: authSettings == const $CopyWithPlaceholder()
|
||||
authSettings:
|
||||
authSettings == const $CopyWithPlaceholder() || authSettings == null
|
||||
? _value.authSettings
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: authSettings as ContainerAuthSettings,
|
||||
useProxy: useProxy == const $CopyWithPlaceholder()
|
||||
useProxy: useProxy == const $CopyWithPlaceholder() || useProxy == null
|
||||
? _value.useProxy
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: useProxy as bool,
|
||||
@@ -160,7 +171,8 @@ class _$ContainerMetadataCWProxyImpl implements _$ContainerMetadataCWProxy {
|
||||
}
|
||||
|
||||
extension $ContainerMetadataCopyWith on ContainerMetadata {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfContainerMetadata.copyWith(...)` or like so:`instanceOfContainerMetadata.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfContainerMetadata.copyWith(...)` or `instanceOfContainerMetadata.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$ContainerMetadataCWProxy get copyWith =>
|
||||
_$ContainerMetadataCWProxyImpl(this);
|
||||
@@ -175,12 +187,13 @@ abstract class _$ContainerDataCWProxy {
|
||||
|
||||
ContainerData metadata(ContainerMetadata? metadata);
|
||||
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ContainerData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `ContainerData(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// ContainerData(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
ContainerData call({
|
||||
String id,
|
||||
String? name,
|
||||
@@ -189,32 +202,34 @@ abstract class _$ContainerDataCWProxy {
|
||||
});
|
||||
}
|
||||
|
||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfContainerData.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfContainerData.copyWith.fieldName(...)`
|
||||
/// Callable proxy for `copyWith` functionality.
|
||||
/// Use as `instanceOfContainerData.copyWith(...)` or call `instanceOfContainerData.copyWith.fieldName(value)` for a single field.
|
||||
class _$ContainerDataCWProxyImpl implements _$ContainerDataCWProxy {
|
||||
const _$ContainerDataCWProxyImpl(this._value);
|
||||
|
||||
final ContainerData _value;
|
||||
|
||||
@override
|
||||
ContainerData id(String id) => this(id: id);
|
||||
ContainerData id(String id) => call(id: id);
|
||||
|
||||
@override
|
||||
ContainerData name(String? name) => this(name: name);
|
||||
ContainerData name(String? name) => call(name: name);
|
||||
|
||||
@override
|
||||
ContainerData color(Color color) => this(color: color);
|
||||
ContainerData color(Color color) => call(color: color);
|
||||
|
||||
@override
|
||||
ContainerData metadata(ContainerMetadata? metadata) =>
|
||||
this(metadata: metadata);
|
||||
call(metadata: metadata);
|
||||
|
||||
@override
|
||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ContainerData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||
/// Creates a new instance with the provided field values.
|
||||
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `ContainerData(...).copyWith.fieldName(value)`.
|
||||
///
|
||||
/// Usage
|
||||
/// Example:
|
||||
/// ```dart
|
||||
/// ContainerData(...).copyWith(id: 12, name: "My name")
|
||||
/// ````
|
||||
/// ```
|
||||
ContainerData call({
|
||||
Object? id = const $CopyWithPlaceholder(),
|
||||
Object? name = const $CopyWithPlaceholder(),
|
||||
@@ -222,7 +237,7 @@ class _$ContainerDataCWProxyImpl implements _$ContainerDataCWProxy {
|
||||
Object? metadata = const $CopyWithPlaceholder(),
|
||||
}) {
|
||||
return ContainerData(
|
||||
id: id == const $CopyWithPlaceholder()
|
||||
id: id == const $CopyWithPlaceholder() || id == null
|
||||
? _value.id
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: id as String,
|
||||
@@ -230,7 +245,7 @@ class _$ContainerDataCWProxyImpl implements _$ContainerDataCWProxy {
|
||||
? _value.name
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: name as String?,
|
||||
color: color == const $CopyWithPlaceholder()
|
||||
color: color == const $CopyWithPlaceholder() || color == null
|
||||
? _value.color
|
||||
// ignore: cast_nullable_to_non_nullable
|
||||
: color as Color,
|
||||
@@ -243,7 +258,8 @@ class _$ContainerDataCWProxyImpl implements _$ContainerDataCWProxy {
|
||||
}
|
||||
|
||||
extension $ContainerDataCopyWith on ContainerData {
|
||||
/// Returns a callable class that can be used as follows: `instanceOfContainerData.copyWith(...)` or like so:`instanceOfContainerData.copyWith.fieldName(...)`.
|
||||
/// Returns a callable class used to build a new instance with modified fields.
|
||||
/// Example: `instanceOfContainerData.copyWith(...)` or `instanceOfContainerData.copyWith.fieldName(...)`.
|
||||
// ignore: library_private_types_in_public_api
|
||||
_$ContainerDataCWProxy get copyWith => _$ContainerDataCWProxyImpl(this);
|
||||
}
|
||||
|
||||
@@ -6,22 +6,46 @@ part of 'providers.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$tabDatabaseHash() => r'422bd4789296dc271fabbd5906f2e2ab16bccaa3';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [tabDatabase].
|
||||
@ProviderFor(tabDatabase)
|
||||
final tabDatabaseProvider = Provider<TabDatabase>.internal(
|
||||
tabDatabase,
|
||||
name: r'tabDatabaseProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabDatabaseHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const tabDatabaseProvider = TabDatabaseProvider._();
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef TabDatabaseRef = ProviderRef<TabDatabase>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class TabDatabaseProvider
|
||||
extends $FunctionalProvider<TabDatabase, TabDatabase, TabDatabase>
|
||||
with $Provider<TabDatabase> {
|
||||
const TabDatabaseProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'tabDatabaseProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabDatabaseHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<TabDatabase> $createElement($ProviderPointer pointer) =>
|
||||
$ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
TabDatabase create(Ref ref) {
|
||||
return tabDatabase(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(TabDatabase value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<TabDatabase>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabDatabaseHash() => r'422bd4789296dc271fabbd5906f2e2ab16bccaa3';
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
import 'package:nullability/nullability.dart';
|
||||
import 'package:riverpod/riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/database.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/database/definitions.drift.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/entities/container_filter.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/models/container_data.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/data/providers.dart';
|
||||
@@ -31,7 +31,7 @@ part 'providers.g.dart';
|
||||
@Riverpod()
|
||||
Stream<List<ContainerDataWithCount>> containersWithCount(Ref ref) {
|
||||
final db = ref.watch(tabDatabaseProvider);
|
||||
return db.containersWithCount().watch();
|
||||
return db.definitionsDrift.containersWithCount().watch();
|
||||
}
|
||||
|
||||
@Riverpod()
|
||||
@@ -78,13 +78,15 @@ Future<int> containerTabCount(Ref ref, ContainerFilter containerFilter) {
|
||||
@Riverpod()
|
||||
Stream<List<TabTreesResult>> tabTrees(Ref ref) {
|
||||
final db = ref.watch(tabDatabaseProvider);
|
||||
return db.tabTrees().watch();
|
||||
return db.definitionsDrift.tabTrees().watch();
|
||||
}
|
||||
|
||||
@Riverpod()
|
||||
Stream<Map<String, String?>> tabDescendants(Ref ref, String tabId) {
|
||||
final db = ref.watch(tabDatabaseProvider);
|
||||
return db.unorderedTabDescendants(tabId: tabId).watch().map((results) {
|
||||
return db.definitionsDrift.unorderedTabDescendants(tabId: tabId).watch().map((
|
||||
results,
|
||||
) {
|
||||
return Map.fromEntries(
|
||||
results.map((pair) => MapEntry(pair.id, pair.parentId)),
|
||||
);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -99,7 +99,7 @@ class SelectedContainer extends _$SelectedContainer {
|
||||
fireImmediately: true,
|
||||
containersWithCountProvider,
|
||||
(previous, next) {
|
||||
if (stateOrNull != null && next.valueOrNull != null) {
|
||||
if (stateOrNull != null && next.value != null) {
|
||||
if (!next.value!.any((container) => container.id == state)) {
|
||||
clearContainer();
|
||||
}
|
||||
|
||||
+132
-50
@@ -6,59 +6,141 @@ part of 'selected_container.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(SelectedContainer)
|
||||
const selectedContainerProvider = SelectedContainerProvider._();
|
||||
|
||||
final class SelectedContainerProvider
|
||||
extends $NotifierProvider<SelectedContainer, String?> {
|
||||
const SelectedContainerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedContainerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedContainerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
SelectedContainer create() => SelectedContainer();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(String? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<String?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectedContainerHash() => r'9e9a9b5e3c91ff1fbf8544e329524f8e064587fe';
|
||||
|
||||
abstract class _$SelectedContainer extends $Notifier<String?> {
|
||||
String? build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<String?, String?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<String?, String?>,
|
||||
String?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@ProviderFor(selectedContainerData)
|
||||
const selectedContainerDataProvider = SelectedContainerDataProvider._();
|
||||
|
||||
final class SelectedContainerDataProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<ContainerData?>,
|
||||
ContainerData?,
|
||||
Stream<ContainerData?>
|
||||
>
|
||||
with $FutureModifier<ContainerData?>, $StreamProvider<ContainerData?> {
|
||||
const SelectedContainerDataProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedContainerDataProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedContainerDataHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$StreamProviderElement<ContainerData?> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $StreamProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Stream<ContainerData?> create(Ref ref) {
|
||||
return selectedContainerData(ref);
|
||||
}
|
||||
}
|
||||
|
||||
String _$selectedContainerDataHash() =>
|
||||
r'1ec86a82e1fc4823a867285f05036c903633a165';
|
||||
|
||||
/// See also [selectedContainerData].
|
||||
@ProviderFor(selectedContainerData)
|
||||
final selectedContainerDataProvider =
|
||||
AutoDisposeStreamProvider<ContainerData?>.internal(
|
||||
selectedContainerData,
|
||||
name: r'selectedContainerDataProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedContainerDataHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
@ProviderFor(selectedContainerTabCount)
|
||||
const selectedContainerTabCountProvider = SelectedContainerTabCountProvider._();
|
||||
|
||||
final class SelectedContainerTabCountProvider
|
||||
extends
|
||||
$FunctionalProvider<AsyncValue<int>, AsyncValue<int>, AsyncValue<int>>
|
||||
with $Provider<AsyncValue<int>> {
|
||||
const SelectedContainerTabCountProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'selectedContainerTabCountProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$selectedContainerTabCountHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$ProviderElement<AsyncValue<int>> $createElement($ProviderPointer pointer) =>
|
||||
$ProviderElement(pointer);
|
||||
|
||||
@override
|
||||
AsyncValue<int> create(Ref ref) {
|
||||
return selectedContainerTabCount(ref);
|
||||
}
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(AsyncValue<int> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<AsyncValue<int>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectedContainerDataRef = AutoDisposeStreamProviderRef<ContainerData?>;
|
||||
String _$selectedContainerTabCountHash() =>
|
||||
r'0fd457793f7870050f81c54d2fbcc81aca60f394';
|
||||
|
||||
/// See also [selectedContainerTabCount].
|
||||
@ProviderFor(selectedContainerTabCount)
|
||||
final selectedContainerTabCountProvider =
|
||||
AutoDisposeProvider<AsyncValue<int>>.internal(
|
||||
selectedContainerTabCount,
|
||||
name: r'selectedContainerTabCountProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedContainerTabCountHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
typedef SelectedContainerTabCountRef = AutoDisposeProviderRef<AsyncValue<int>>;
|
||||
String _$selectedContainerHash() => r'0441c56a22fd8cab71fec4906d3c22f40553b327';
|
||||
|
||||
/// See also [SelectedContainer].
|
||||
@ProviderFor(SelectedContainer)
|
||||
final selectedContainerProvider =
|
||||
NotifierProvider<SelectedContainer, String?>.internal(
|
||||
SelectedContainer.new,
|
||||
name: r'selectedContainerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$selectedContainerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$SelectedContainer = Notifier<String?>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
|
||||
@@ -35,7 +35,11 @@ class ContainerRepository extends _$ContainerRepository {
|
||||
}
|
||||
|
||||
Future<List<ContainerDataWithCount>> getAllContainersWithCount() {
|
||||
return ref.read(tabDatabaseProvider).containersWithCount().get();
|
||||
return ref
|
||||
.read(tabDatabaseProvider)
|
||||
.definitionsDrift
|
||||
.containersWithCount()
|
||||
.get();
|
||||
}
|
||||
|
||||
Future<void> replaceContainer(ContainerData container) {
|
||||
|
||||
@@ -6,22 +6,59 @@ part of 'container.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$containerRepositoryHash() =>
|
||||
r'af4ccf6cc12eebae2313df6c8f9ca63db842ffe5';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [ContainerRepository].
|
||||
@ProviderFor(ContainerRepository)
|
||||
final containerRepositoryProvider =
|
||||
NotifierProvider<ContainerRepository, void>.internal(
|
||||
ContainerRepository.new,
|
||||
name: r'containerRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$containerRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const containerRepositoryProvider = ContainerRepositoryProvider._();
|
||||
|
||||
typedef _$ContainerRepository = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class ContainerRepositoryProvider
|
||||
extends $NotifierProvider<ContainerRepository, void> {
|
||||
const ContainerRepositoryProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'containerRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$containerRepositoryHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
ContainerRepository create() => ContainerRepository();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$containerRepositoryHash() =>
|
||||
r'6d84d672e24ac3d2cb376e93cbbe61fc223d89b3';
|
||||
|
||||
abstract class _$ContainerRepository extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
+188
-274
@@ -6,291 +6,205 @@ part of 'gecko_inference.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$containerTopicHash() => r'b680381eab3dded9ca6f174fbcc5da5c59d7e9f0';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
@ProviderFor(GeckoInferenceRepository)
|
||||
const geckoInferenceRepositoryProvider = GeckoInferenceRepositoryProvider._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
/// See also [containerTopic].
|
||||
@ProviderFor(containerTopic)
|
||||
const containerTopicProvider = ContainerTopicFamily();
|
||||
|
||||
/// See also [containerTopic].
|
||||
class ContainerTopicFamily extends Family<AsyncValue<String?>> {
|
||||
/// See also [containerTopic].
|
||||
const ContainerTopicFamily();
|
||||
|
||||
/// See also [containerTopic].
|
||||
ContainerTopicProvider call(String containerId) {
|
||||
return ContainerTopicProvider(containerId);
|
||||
}
|
||||
|
||||
@override
|
||||
ContainerTopicProvider getProviderOverride(
|
||||
covariant ContainerTopicProvider provider,
|
||||
) {
|
||||
return call(provider.containerId);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'containerTopicProvider';
|
||||
}
|
||||
|
||||
/// See also [containerTopic].
|
||||
class ContainerTopicProvider extends FutureProvider<String?> {
|
||||
/// See also [containerTopic].
|
||||
ContainerTopicProvider(String containerId)
|
||||
: this._internal(
|
||||
(ref) => containerTopic(ref as ContainerTopicRef, containerId),
|
||||
from: containerTopicProvider,
|
||||
name: r'containerTopicProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$containerTopicHash,
|
||||
dependencies: ContainerTopicFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
ContainerTopicFamily._allTransitiveDependencies,
|
||||
containerId: containerId,
|
||||
final class GeckoInferenceRepositoryProvider
|
||||
extends $NotifierProvider<GeckoInferenceRepository, void> {
|
||||
const GeckoInferenceRepositoryProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'geckoInferenceRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
ContainerTopicProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.containerId,
|
||||
}) : super.internal();
|
||||
|
||||
final String containerId;
|
||||
|
||||
@override
|
||||
Override overrideWith(
|
||||
FutureOr<String?> Function(ContainerTopicRef provider) create,
|
||||
) {
|
||||
return ProviderOverride(
|
||||
String debugGetCreateSourceHash() => _$geckoInferenceRepositoryHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
GeckoInferenceRepository create() => GeckoInferenceRepository();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
override: ContainerTopicProvider._internal(
|
||||
(ref) => create(ref as ContainerTopicRef),
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
containerId: containerId,
|
||||
),
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
FutureProviderElement<String?> createElement() {
|
||||
return _ContainerTopicProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is ContainerTopicProvider && other.containerId == containerId;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, containerId.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin ContainerTopicRef on FutureProviderRef<String?> {
|
||||
/// The parameter `containerId` of this provider.
|
||||
String get containerId;
|
||||
}
|
||||
|
||||
class _ContainerTopicProviderElement extends FutureProviderElement<String?>
|
||||
with ContainerTopicRef {
|
||||
_ContainerTopicProviderElement(super.provider);
|
||||
|
||||
@override
|
||||
String get containerId => (origin as ContainerTopicProvider).containerId;
|
||||
}
|
||||
|
||||
String _$containerTabSuggestionsHash() =>
|
||||
r'ab8e596f0c7e8562bf998c701145e48eb1e520d5';
|
||||
|
||||
/// See also [containerTabSuggestions].
|
||||
@ProviderFor(containerTabSuggestions)
|
||||
const containerTabSuggestionsProvider = ContainerTabSuggestionsFamily();
|
||||
|
||||
/// See also [containerTabSuggestions].
|
||||
class ContainerTabSuggestionsFamily extends Family<AsyncValue<List<String>?>> {
|
||||
/// See also [containerTabSuggestions].
|
||||
const ContainerTabSuggestionsFamily();
|
||||
|
||||
/// See also [containerTabSuggestions].
|
||||
ContainerTabSuggestionsProvider call(String? containerId) {
|
||||
return ContainerTabSuggestionsProvider(containerId);
|
||||
}
|
||||
|
||||
@override
|
||||
ContainerTabSuggestionsProvider getProviderOverride(
|
||||
covariant ContainerTabSuggestionsProvider provider,
|
||||
) {
|
||||
return call(provider.containerId);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'containerTabSuggestionsProvider';
|
||||
}
|
||||
|
||||
/// See also [containerTabSuggestions].
|
||||
class ContainerTabSuggestionsProvider
|
||||
extends AutoDisposeFutureProvider<List<String>?> {
|
||||
/// See also [containerTabSuggestions].
|
||||
ContainerTabSuggestionsProvider(String? containerId)
|
||||
: this._internal(
|
||||
(ref) => containerTabSuggestions(
|
||||
ref as ContainerTabSuggestionsRef,
|
||||
containerId,
|
||||
),
|
||||
from: containerTabSuggestionsProvider,
|
||||
name: r'containerTabSuggestionsProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$containerTabSuggestionsHash,
|
||||
dependencies: ContainerTabSuggestionsFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
ContainerTabSuggestionsFamily._allTransitiveDependencies,
|
||||
containerId: containerId,
|
||||
);
|
||||
|
||||
ContainerTabSuggestionsProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.containerId,
|
||||
}) : super.internal();
|
||||
|
||||
final String? containerId;
|
||||
|
||||
@override
|
||||
Override overrideWith(
|
||||
FutureOr<List<String>?> Function(ContainerTabSuggestionsRef provider)
|
||||
create,
|
||||
) {
|
||||
return ProviderOverride(
|
||||
origin: this,
|
||||
override: ContainerTabSuggestionsProvider._internal(
|
||||
(ref) => create(ref as ContainerTabSuggestionsRef),
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
containerId: containerId,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
AutoDisposeFutureProviderElement<List<String>?> createElement() {
|
||||
return _ContainerTabSuggestionsProviderElement(this);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is ContainerTabSuggestionsProvider &&
|
||||
other.containerId == containerId;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, containerId.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin ContainerTabSuggestionsRef
|
||||
on AutoDisposeFutureProviderRef<List<String>?> {
|
||||
/// The parameter `containerId` of this provider.
|
||||
String? get containerId;
|
||||
}
|
||||
|
||||
class _ContainerTabSuggestionsProviderElement
|
||||
extends AutoDisposeFutureProviderElement<List<String>?>
|
||||
with ContainerTabSuggestionsRef {
|
||||
_ContainerTabSuggestionsProviderElement(super.provider);
|
||||
|
||||
@override
|
||||
String? get containerId =>
|
||||
(origin as ContainerTabSuggestionsProvider).containerId;
|
||||
}
|
||||
|
||||
String _$geckoInferenceRepositoryHash() =>
|
||||
r'6099998a3f49fc4faf650878ab4afd6268c593e2';
|
||||
|
||||
/// See also [GeckoInferenceRepository].
|
||||
@ProviderFor(GeckoInferenceRepository)
|
||||
final geckoInferenceRepositoryProvider =
|
||||
NotifierProvider<GeckoInferenceRepository, void>.internal(
|
||||
GeckoInferenceRepository.new,
|
||||
name: r'geckoInferenceRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$geckoInferenceRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
abstract class _$GeckoInferenceRepository extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
typedef _$GeckoInferenceRepository = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
@ProviderFor(containerTopic)
|
||||
const containerTopicProvider = ContainerTopicFamily._();
|
||||
|
||||
final class ContainerTopicProvider
|
||||
extends $FunctionalProvider<AsyncValue<String?>, String?, FutureOr<String?>>
|
||||
with $FutureModifier<String?>, $FutureProvider<String?> {
|
||||
const ContainerTopicProvider._({
|
||||
required ContainerTopicFamily super.from,
|
||||
required String super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'containerTopicProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$containerTopicHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'containerTopicProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$FutureProviderElement<String?> $createElement($ProviderPointer pointer) =>
|
||||
$FutureProviderElement(pointer);
|
||||
|
||||
@override
|
||||
FutureOr<String?> create(Ref ref) {
|
||||
final argument = this.argument as String;
|
||||
return containerTopic(ref, argument);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is ContainerTopicProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
String _$containerTopicHash() => r'b680381eab3dded9ca6f174fbcc5da5c59d7e9f0';
|
||||
|
||||
final class ContainerTopicFamily extends $Family
|
||||
with $FunctionalFamilyOverride<FutureOr<String?>, String> {
|
||||
const ContainerTopicFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'containerTopicProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: false,
|
||||
);
|
||||
|
||||
ContainerTopicProvider call(String containerId) =>
|
||||
ContainerTopicProvider._(argument: containerId, from: this);
|
||||
|
||||
@override
|
||||
String toString() => r'containerTopicProvider';
|
||||
}
|
||||
|
||||
@ProviderFor(containerTabSuggestions)
|
||||
const containerTabSuggestionsProvider = ContainerTabSuggestionsFamily._();
|
||||
|
||||
final class ContainerTabSuggestionsProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<List<String>?>,
|
||||
List<String>?,
|
||||
FutureOr<List<String>?>
|
||||
>
|
||||
with $FutureModifier<List<String>?>, $FutureProvider<List<String>?> {
|
||||
const ContainerTabSuggestionsProvider._({
|
||||
required ContainerTabSuggestionsFamily super.from,
|
||||
required String? super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'containerTabSuggestionsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$containerTabSuggestionsHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'containerTabSuggestionsProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$FutureProviderElement<List<String>?> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $FutureProviderElement(pointer);
|
||||
|
||||
@override
|
||||
FutureOr<List<String>?> create(Ref ref) {
|
||||
final argument = this.argument as String?;
|
||||
return containerTabSuggestions(ref, argument);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is ContainerTabSuggestionsProvider &&
|
||||
other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
String _$containerTabSuggestionsHash() =>
|
||||
r'ab8e596f0c7e8562bf998c701145e48eb1e520d5';
|
||||
|
||||
final class ContainerTabSuggestionsFamily extends $Family
|
||||
with $FunctionalFamilyOverride<FutureOr<List<String>?>, String?> {
|
||||
const ContainerTabSuggestionsFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'containerTabSuggestionsProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: true,
|
||||
);
|
||||
|
||||
ContainerTabSuggestionsProvider call(String? containerId) =>
|
||||
ContainerTabSuggestionsProvider._(argument: containerId, from: this);
|
||||
|
||||
@override
|
||||
String toString() => r'containerTabSuggestionsProvider';
|
||||
}
|
||||
|
||||
@@ -6,21 +6,58 @@ part of 'tab.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(TabDataRepository)
|
||||
const tabDataRepositoryProvider = TabDataRepositoryProvider._();
|
||||
|
||||
final class TabDataRepositoryProvider
|
||||
extends $NotifierProvider<TabDataRepository, void> {
|
||||
const TabDataRepositoryProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'tabDataRepositoryProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabDataRepositoryHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
TabDataRepository create() => TabDataRepository();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(void value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<void>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabDataRepositoryHash() => r'295c1718ecf41202709517fb2c5b31527e885dfa';
|
||||
|
||||
/// See also [TabDataRepository].
|
||||
@ProviderFor(TabDataRepository)
|
||||
final tabDataRepositoryProvider =
|
||||
NotifierProvider<TabDataRepository, void>.internal(
|
||||
TabDataRepository.new,
|
||||
name: r'tabDataRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabDataRepositoryHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$TabDataRepository = Notifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$TabDataRepository extends $Notifier<void> {
|
||||
void build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
build();
|
||||
final ref = this.ref as $Ref<void, void>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<void, void>,
|
||||
void,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,184 +6,111 @@ part of 'tab_search.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$tabSearchRepositoryHash() =>
|
||||
r'ac2381c692b9caf93f26f302d15e0160c098917a';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
_SystemHash._();
|
||||
|
||||
static int combine(int hash, int value) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + value);
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
|
||||
return hash ^ (hash >> 6);
|
||||
}
|
||||
|
||||
static int finish(int hash) {
|
||||
// ignore: parameter_assignments
|
||||
hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
|
||||
// ignore: parameter_assignments
|
||||
hash = hash ^ (hash >> 11);
|
||||
return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _$TabSearchRepository
|
||||
extends
|
||||
BuildlessAutoDisposeAsyncNotifier<
|
||||
({String query, List<TabQueryResult> results})?
|
||||
> {
|
||||
late final TabSearchPartition partition;
|
||||
|
||||
FutureOr<({String query, List<TabQueryResult> results})?> build(
|
||||
TabSearchPartition partition,
|
||||
);
|
||||
}
|
||||
|
||||
/// See also [TabSearchRepository].
|
||||
@ProviderFor(TabSearchRepository)
|
||||
const tabSearchRepositoryProvider = TabSearchRepositoryFamily();
|
||||
const tabSearchRepositoryProvider = TabSearchRepositoryFamily._();
|
||||
|
||||
/// See also [TabSearchRepository].
|
||||
class TabSearchRepositoryFamily
|
||||
final class TabSearchRepositoryProvider
|
||||
extends
|
||||
Family<AsyncValue<({String query, List<TabQueryResult> results})?>> {
|
||||
/// See also [TabSearchRepository].
|
||||
const TabSearchRepositoryFamily();
|
||||
|
||||
/// See also [TabSearchRepository].
|
||||
TabSearchRepositoryProvider call(TabSearchPartition partition) {
|
||||
return TabSearchRepositoryProvider(partition);
|
||||
}
|
||||
|
||||
@override
|
||||
TabSearchRepositoryProvider getProviderOverride(
|
||||
covariant TabSearchRepositoryProvider provider,
|
||||
) {
|
||||
return call(provider.partition);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
|
||||
|
||||
@override
|
||||
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
|
||||
_allTransitiveDependencies;
|
||||
|
||||
@override
|
||||
String? get name => r'tabSearchRepositoryProvider';
|
||||
}
|
||||
|
||||
/// See also [TabSearchRepository].
|
||||
class TabSearchRepositoryProvider
|
||||
extends
|
||||
AutoDisposeAsyncNotifierProviderImpl<
|
||||
$AsyncNotifierProvider<
|
||||
TabSearchRepository,
|
||||
({String query, List<TabQueryResult> results})?
|
||||
> {
|
||||
/// See also [TabSearchRepository].
|
||||
TabSearchRepositoryProvider(TabSearchPartition partition)
|
||||
: this._internal(
|
||||
() => TabSearchRepository()..partition = partition,
|
||||
from: tabSearchRepositoryProvider,
|
||||
name: r'tabSearchRepositoryProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$tabSearchRepositoryHash,
|
||||
dependencies: TabSearchRepositoryFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
TabSearchRepositoryFamily._allTransitiveDependencies,
|
||||
partition: partition,
|
||||
);
|
||||
|
||||
TabSearchRepositoryProvider._internal(
|
||||
super._createNotifier, {
|
||||
required super.name,
|
||||
required super.dependencies,
|
||||
required super.allTransitiveDependencies,
|
||||
required super.debugGetCreateSourceHash,
|
||||
required super.from,
|
||||
required this.partition,
|
||||
}) : super.internal();
|
||||
|
||||
final TabSearchPartition partition;
|
||||
const TabSearchRepositoryProvider._({
|
||||
required TabSearchRepositoryFamily super.from,
|
||||
required TabSearchPartition super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'tabSearchRepositoryProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
FutureOr<({String query, List<TabQueryResult> results})?> runNotifierBuild(
|
||||
covariant TabSearchRepository notifier,
|
||||
) {
|
||||
return notifier.build(partition);
|
||||
}
|
||||
String debugGetCreateSourceHash() => _$tabSearchRepositoryHash();
|
||||
|
||||
@override
|
||||
Override overrideWith(TabSearchRepository Function() create) {
|
||||
return ProviderOverride(
|
||||
origin: this,
|
||||
override: TabSearchRepositoryProvider._internal(
|
||||
() => create()..partition = partition,
|
||||
from: from,
|
||||
name: null,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
debugGetCreateSourceHash: null,
|
||||
partition: partition,
|
||||
),
|
||||
);
|
||||
String toString() {
|
||||
return r'tabSearchRepositoryProvider'
|
||||
''
|
||||
'($argument)';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
AutoDisposeAsyncNotifierProviderElement<
|
||||
TabSearchRepository,
|
||||
({String query, List<TabQueryResult> results})?
|
||||
>
|
||||
createElement() {
|
||||
return _TabSearchRepositoryProviderElement(this);
|
||||
}
|
||||
TabSearchRepository create() => TabSearchRepository();
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is TabSearchRepositoryProvider && other.partition == partition;
|
||||
return other is TabSearchRepositoryProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||
hash = _SystemHash.combine(hash, partition.hashCode);
|
||||
|
||||
return _SystemHash.finish(hash);
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||
// ignore: unused_element
|
||||
mixin TabSearchRepositoryRef
|
||||
on
|
||||
AutoDisposeAsyncNotifierProviderRef<
|
||||
({String query, List<TabQueryResult> results})?
|
||||
> {
|
||||
/// The parameter `partition` of this provider.
|
||||
TabSearchPartition get partition;
|
||||
}
|
||||
String _$tabSearchRepositoryHash() =>
|
||||
r'ac2381c692b9caf93f26f302d15e0160c098917a';
|
||||
|
||||
class _TabSearchRepositoryProviderElement
|
||||
extends
|
||||
AutoDisposeAsyncNotifierProviderElement<
|
||||
final class TabSearchRepositoryFamily extends $Family
|
||||
with
|
||||
$ClassFamilyOverride<
|
||||
TabSearchRepository,
|
||||
({String query, List<TabQueryResult> results})?
|
||||
>
|
||||
with TabSearchRepositoryRef {
|
||||
_TabSearchRepositoryProviderElement(super.provider);
|
||||
AsyncValue<({String query, List<TabQueryResult> results})?>,
|
||||
({String query, List<TabQueryResult> results})?,
|
||||
FutureOr<({String query, List<TabQueryResult> results})?>,
|
||||
TabSearchPartition
|
||||
> {
|
||||
const TabSearchRepositoryFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'tabSearchRepositoryProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: true,
|
||||
);
|
||||
|
||||
TabSearchRepositoryProvider call(TabSearchPartition partition) =>
|
||||
TabSearchRepositoryProvider._(argument: partition, from: this);
|
||||
|
||||
@override
|
||||
TabSearchPartition get partition =>
|
||||
(origin as TabSearchRepositoryProvider).partition;
|
||||
String toString() => r'tabSearchRepositoryProvider';
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
abstract class _$TabSearchRepository
|
||||
extends $AsyncNotifier<({String query, List<TabQueryResult> results})?> {
|
||||
late final _$args = ref.$arg as TabSearchPartition;
|
||||
TabSearchPartition get partition => _$args;
|
||||
|
||||
FutureOr<({String query, List<TabQueryResult> results})?> build(
|
||||
TabSearchPartition partition,
|
||||
);
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build(_$args);
|
||||
final ref =
|
||||
this.ref
|
||||
as $Ref<
|
||||
AsyncValue<({String query, List<TabQueryResult> results})?>,
|
||||
({String query, List<TabQueryResult> results})?
|
||||
>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<
|
||||
AsyncValue<({String query, List<TabQueryResult> results})?>,
|
||||
({String query, List<TabQueryResult> results})?
|
||||
>,
|
||||
AsyncValue<({String query, List<TabQueryResult> results})?>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ class ContainerTopicController extends _$ContainerTopicController {
|
||||
});
|
||||
state = result;
|
||||
|
||||
return result.valueOrNull;
|
||||
return result.value;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
+53
-19
@@ -6,25 +6,59 @@ part of 'container_topic.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$containerTopicControllerHash() =>
|
||||
r'fa38ebd3c1352b471e58444b04d1cb0528aae1dd';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
/// See also [ContainerTopicController].
|
||||
@ProviderFor(ContainerTopicController)
|
||||
final containerTopicControllerProvider =
|
||||
AutoDisposeNotifierProvider<
|
||||
ContainerTopicController,
|
||||
AsyncValue<void>
|
||||
>.internal(
|
||||
ContainerTopicController.new,
|
||||
name: r'containerTopicControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$containerTopicControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
const containerTopicControllerProvider = ContainerTopicControllerProvider._();
|
||||
|
||||
typedef _$ContainerTopicController = AutoDisposeNotifier<AsyncValue<void>>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
final class ContainerTopicControllerProvider
|
||||
extends $NotifierProvider<ContainerTopicController, AsyncValue<void>> {
|
||||
const ContainerTopicControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'containerTopicControllerProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$containerTopicControllerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
ContainerTopicController create() => ContainerTopicController();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(AsyncValue<void> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<AsyncValue<void>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$containerTopicControllerHash() =>
|
||||
r'e89fbdaaa9106f163ff00a829eb40752dd4af63a';
|
||||
|
||||
abstract class _$ContainerTopicController extends $Notifier<AsyncValue<void>> {
|
||||
AsyncValue<void> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<AsyncValue<void>, AsyncValue<void>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<void>, AsyncValue<void>>,
|
||||
AsyncValue<void>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ class ContainerChips extends HookConsumerWidget {
|
||||
containerTabCountProvider(
|
||||
// ignore: provider_parameters
|
||||
ContainerFilterById(containerId: null),
|
||||
).select((value) => value.valueOrNull ?? 0),
|
||||
).select((value) => value.value ?? 0),
|
||||
);
|
||||
|
||||
return FilterChip(
|
||||
|
||||
@@ -44,7 +44,7 @@ class ContainerTitle extends HookConsumerWidget {
|
||||
containerTabCountProvider(
|
||||
// ignore: provider_parameters
|
||||
ContainerFilterById(containerId: container.id),
|
||||
).select((value) => (value.valueOrNull ?? 0) > 0),
|
||||
).select((value) => (value.value ?? 0) > 0),
|
||||
);
|
||||
|
||||
return topicAsync.when(
|
||||
@@ -73,8 +73,7 @@ class ContainerTitle extends HookConsumerWidget {
|
||||
|
||||
return const Text('Untitled');
|
||||
},
|
||||
loading: () =>
|
||||
Skeletonizer(child: Text(topicAsync.valueOrNull ?? 'container')),
|
||||
loading: () => Skeletonizer(child: Text(topicAsync.value ?? 'container')),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class DefaultSearchPage extends HookConsumerWidget {
|
||||
final bangs = ref.watch(bangListProvider(triggers: defaultBangs));
|
||||
|
||||
final activeBang = ref.watch(
|
||||
defaultSearchBangDataProvider.select((value) => value.valueOrNull),
|
||||
defaultSearchBangDataProvider.select((value) => value.value),
|
||||
);
|
||||
final activeAutosuggest = ref.watch(
|
||||
generalSettingsWithDefaultsProvider.select(
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user