run build with new formatter
This commit is contained in:
@@ -29,8 +29,7 @@ String _$embeddingModelHash() => r'40111a5f08b43afe6edd399ff0e6c022b3387265';
|
|||||||
final embeddingModelProvider = Provider<OpenAIEmbeddings>.internal(
|
final embeddingModelProvider = Provider<OpenAIEmbeddings>.internal(
|
||||||
embeddingModel,
|
embeddingModel,
|
||||||
name: r'embeddingModelProvider',
|
name: r'embeddingModelProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$embeddingModelHash,
|
: _$embeddingModelHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -48,8 +47,7 @@ String _$embeddingDimensionsHash() =>
|
|||||||
final embeddingDimensionsProvider = Provider<int>.internal(
|
final embeddingDimensionsProvider = Provider<int>.internal(
|
||||||
embeddingDimensions,
|
embeddingDimensions,
|
||||||
name: r'embeddingDimensionsProvider',
|
name: r'embeddingDimensionsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$embeddingDimensionsHash,
|
: _$embeddingDimensionsHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ final willAcceptDropProvider =
|
|||||||
AutoDisposeNotifierProvider<WillAcceptDrop, DropTargetData?>.internal(
|
AutoDisposeNotifierProvider<WillAcceptDrop, DropTargetData?>.internal(
|
||||||
WillAcceptDrop.new,
|
WillAcceptDrop.new,
|
||||||
name: r'willAcceptDropProvider',
|
name: r'willAcceptDropProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$willAcceptDropHash,
|
: _$willAcceptDropHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ abstract class _$WebPageInfoCWProxy {
|
|||||||
/// ```dart
|
/// ```dart
|
||||||
/// WebPageInfo(...).copyWith(id: 12, name: "My name")
|
/// WebPageInfo(...).copyWith(id: 12, name: "My name")
|
||||||
/// ````
|
/// ````
|
||||||
WebPageInfo call({Uri url, String? title, BrowserIcon? favicon});
|
WebPageInfo call({
|
||||||
|
Uri url,
|
||||||
|
String? title,
|
||||||
|
BrowserIcon? favicon,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfWebPageInfo.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfWebPageInfo.copyWith.fieldName(...)`
|
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfWebPageInfo.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfWebPageInfo.copyWith.fieldName(...)`
|
||||||
@@ -38,6 +42,7 @@ class _$WebPageInfoCWProxyImpl implements _$WebPageInfoCWProxy {
|
|||||||
WebPageInfo favicon(BrowserIcon? favicon) => this(favicon: favicon);
|
WebPageInfo favicon(BrowserIcon? favicon) => this(favicon: favicon);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
||||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `WebPageInfo(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `WebPageInfo(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -50,18 +55,15 @@ class _$WebPageInfoCWProxyImpl implements _$WebPageInfoCWProxy {
|
|||||||
Object? favicon = const $CopyWithPlaceholder(),
|
Object? favicon = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return WebPageInfo(
|
return WebPageInfo(
|
||||||
url:
|
url: url == const $CopyWithPlaceholder()
|
||||||
url == const $CopyWithPlaceholder()
|
|
||||||
? _value.url
|
? _value.url
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: url as Uri,
|
: url as Uri,
|
||||||
title:
|
title: title == const $CopyWithPlaceholder()
|
||||||
title == const $CopyWithPlaceholder()
|
|
||||||
? _value.title
|
? _value.title
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: title as String?,
|
: title as String?,
|
||||||
favicon:
|
favicon: favicon == const $CopyWithPlaceholder()
|
||||||
favicon == const $CopyWithPlaceholder()
|
|
||||||
? _value.favicon
|
? _value.favicon
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: favicon as BrowserIcon?,
|
: favicon as BrowserIcon?,
|
||||||
|
|||||||
@@ -13,21 +13,22 @@ String _$appInitializationServiceHash() =>
|
|||||||
@ProviderFor(AppInitializationService)
|
@ProviderFor(AppInitializationService)
|
||||||
final appInitializationServiceProvider = NotifierProvider<
|
final appInitializationServiceProvider = NotifierProvider<
|
||||||
AppInitializationService,
|
AppInitializationService,
|
||||||
Result<({bool initialized, String? stage, List<ErrorMessage> errors})>
|
Result<
|
||||||
>.internal(
|
({
|
||||||
|
bool initialized,
|
||||||
|
String? stage,
|
||||||
|
List<ErrorMessage> errors
|
||||||
|
})>>.internal(
|
||||||
AppInitializationService.new,
|
AppInitializationService.new,
|
||||||
name: r'appInitializationServiceProvider',
|
name: r'appInitializationServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$appInitializationServiceHash,
|
: _$appInitializationServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef _$AppInitializationService =
|
typedef _$AppInitializationService = Notifier<
|
||||||
Notifier<
|
Result<({bool initialized, String? stage, List<ErrorMessage> errors})>>;
|
||||||
Result<({bool initialized, String? stage, List<ErrorMessage> errors})>
|
|
||||||
>;
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final genericWebsiteServiceProvider =
|
|||||||
NotifierProvider<GenericWebsiteService, void>.internal(
|
NotifierProvider<GenericWebsiteService, void>.internal(
|
||||||
GenericWebsiteService.new,
|
GenericWebsiteService.new,
|
||||||
name: r'genericWebsiteServiceProvider',
|
name: r'genericWebsiteServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$genericWebsiteServiceHash,
|
: _$genericWebsiteServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ String _$widgetPinnableHash() => r'f91041f0f051ad0f00dd765cafea5571ca8c8088';
|
|||||||
final widgetPinnableProvider = FutureProvider<bool>.internal(
|
final widgetPinnableProvider = FutureProvider<bool>.internal(
|
||||||
widgetPinnable,
|
widgetPinnable,
|
||||||
name: r'widgetPinnableProvider',
|
name: r'widgetPinnableProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$widgetPinnableHash,
|
: _$widgetPinnableHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -33,8 +32,7 @@ final appWidgetLaunchStreamProvider =
|
|||||||
AutoDisposeProvider<Raw<Stream<ReceivedParameter>>>.internal(
|
AutoDisposeProvider<Raw<Stream<ReceivedParameter>>>.internal(
|
||||||
appWidgetLaunchStream,
|
appWidgetLaunchStream,
|
||||||
name: r'appWidgetLaunchStreamProvider',
|
name: r'appWidgetLaunchStreamProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$appWidgetLaunchStreamHash,
|
: _$appWidgetLaunchStreamHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -43,7 +41,7 @@ final appWidgetLaunchStreamProvider =
|
|||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
typedef AppWidgetLaunchStreamRef =
|
typedef AppWidgetLaunchStreamRef
|
||||||
AutoDisposeProviderRef<Raw<Stream<ReceivedParameter>>>;
|
= AutoDisposeProviderRef<Raw<Stream<ReceivedParameter>>>;
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -72,6 +72,7 @@ class _$BangCWProxyImpl implements _$BangCWProxy {
|
|||||||
Bang format(Set<BangFormat>? format) => this(format: format);
|
Bang format(Set<BangFormat>? format) => this(format: format);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -89,43 +90,35 @@ class _$BangCWProxyImpl implements _$BangCWProxy {
|
|||||||
Object? format = const $CopyWithPlaceholder(),
|
Object? format = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return Bang(
|
return Bang(
|
||||||
websiteName:
|
websiteName: websiteName == const $CopyWithPlaceholder()
|
||||||
websiteName == const $CopyWithPlaceholder()
|
|
||||||
? _value.websiteName
|
? _value.websiteName
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: websiteName as String,
|
: websiteName as String,
|
||||||
domain:
|
domain: domain == const $CopyWithPlaceholder()
|
||||||
domain == const $CopyWithPlaceholder()
|
|
||||||
? _value.domain
|
? _value.domain
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: domain as String,
|
: domain as String,
|
||||||
trigger:
|
trigger: trigger == const $CopyWithPlaceholder()
|
||||||
trigger == const $CopyWithPlaceholder()
|
|
||||||
? _value.trigger
|
? _value.trigger
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: trigger as String,
|
: trigger as String,
|
||||||
urlTemplate:
|
urlTemplate: urlTemplate == const $CopyWithPlaceholder()
|
||||||
urlTemplate == const $CopyWithPlaceholder()
|
|
||||||
? _value.urlTemplate
|
? _value.urlTemplate
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: urlTemplate as String,
|
: urlTemplate as String,
|
||||||
group:
|
group: group == const $CopyWithPlaceholder()
|
||||||
group == const $CopyWithPlaceholder()
|
|
||||||
? _value.group
|
? _value.group
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: group as BangGroup?,
|
: group as BangGroup?,
|
||||||
category:
|
category: category == const $CopyWithPlaceholder()
|
||||||
category == const $CopyWithPlaceholder()
|
|
||||||
? _value.category
|
? _value.category
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: category as String?,
|
: category as String?,
|
||||||
subCategory:
|
subCategory: subCategory == const $CopyWithPlaceholder()
|
||||||
subCategory == const $CopyWithPlaceholder()
|
|
||||||
? _value.subCategory
|
? _value.subCategory
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: subCategory as String?,
|
: subCategory as String?,
|
||||||
format:
|
format: format == const $CopyWithPlaceholder()
|
||||||
format == const $CopyWithPlaceholder()
|
|
||||||
? _value.format
|
? _value.format
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: format as Set<BangFormat>?,
|
: format as Set<BangFormat>?,
|
||||||
@@ -150,8 +143,7 @@ Bang _$BangFromJson(Map<String, dynamic> json) => Bang(
|
|||||||
urlTemplate: json['u'] as String,
|
urlTemplate: json['u'] as String,
|
||||||
category: json['c'] as String?,
|
category: json['c'] as String?,
|
||||||
subCategory: json['sc'] as String?,
|
subCategory: json['sc'] as String?,
|
||||||
format:
|
format: (json['fmt'] as List<dynamic>?)
|
||||||
(json['fmt'] as List<dynamic>?)
|
|
||||||
?.map((e) => $enumDecode(_$BangFormatEnumMap, e))
|
?.map((e) => $enumDecode(_$BangFormatEnumMap, e))
|
||||||
.toSet(),
|
.toSet(),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ class _$BangDataCWProxyImpl implements _$BangDataCWProxy {
|
|||||||
BangData icon(BrowserIcon? icon) => this(icon: icon);
|
BangData icon(BrowserIcon? icon) => this(icon: icon);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -103,53 +104,43 @@ class _$BangDataCWProxyImpl implements _$BangDataCWProxy {
|
|||||||
Object? icon = const $CopyWithPlaceholder(),
|
Object? icon = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return BangData(
|
return BangData(
|
||||||
websiteName:
|
websiteName: websiteName == const $CopyWithPlaceholder()
|
||||||
websiteName == const $CopyWithPlaceholder()
|
|
||||||
? _value.websiteName
|
? _value.websiteName
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: websiteName as String,
|
: websiteName as String,
|
||||||
domain:
|
domain: domain == const $CopyWithPlaceholder()
|
||||||
domain == const $CopyWithPlaceholder()
|
|
||||||
? _value.domain
|
? _value.domain
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: domain as String,
|
: domain as String,
|
||||||
trigger:
|
trigger: trigger == const $CopyWithPlaceholder()
|
||||||
trigger == const $CopyWithPlaceholder()
|
|
||||||
? _value.trigger
|
? _value.trigger
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: trigger as String,
|
: trigger as String,
|
||||||
urlTemplate:
|
urlTemplate: urlTemplate == const $CopyWithPlaceholder()
|
||||||
urlTemplate == const $CopyWithPlaceholder()
|
|
||||||
? _value.urlTemplate
|
? _value.urlTemplate
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: urlTemplate as String,
|
: urlTemplate as String,
|
||||||
category:
|
category: category == const $CopyWithPlaceholder()
|
||||||
category == const $CopyWithPlaceholder()
|
|
||||||
? _value.category
|
? _value.category
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: category as String?,
|
: category as String?,
|
||||||
subCategory:
|
subCategory: subCategory == const $CopyWithPlaceholder()
|
||||||
subCategory == const $CopyWithPlaceholder()
|
|
||||||
? _value.subCategory
|
? _value.subCategory
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: subCategory as String?,
|
: subCategory as String?,
|
||||||
format:
|
format: format == const $CopyWithPlaceholder()
|
||||||
format == const $CopyWithPlaceholder()
|
|
||||||
? _value.format
|
? _value.format
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: format as Set<BangFormat>?,
|
: format as Set<BangFormat>?,
|
||||||
frequency:
|
frequency: frequency == const $CopyWithPlaceholder()
|
||||||
frequency == const $CopyWithPlaceholder()
|
|
||||||
? _value.frequency
|
? _value.frequency
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: frequency as int?,
|
: frequency as int?,
|
||||||
lastUsed:
|
lastUsed: lastUsed == const $CopyWithPlaceholder()
|
||||||
lastUsed == const $CopyWithPlaceholder()
|
|
||||||
? _value.lastUsed
|
? _value.lastUsed
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: lastUsed as DateTime?,
|
: lastUsed as DateTime?,
|
||||||
icon:
|
icon: icon == const $CopyWithPlaceholder()
|
||||||
icon == const $CopyWithPlaceholder()
|
|
||||||
? _value.icon
|
? _value.icon
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: icon as BrowserIcon?,
|
: icon as BrowserIcon?,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final bangSourceServiceProvider =
|
|||||||
AutoDisposeNotifierProvider<BangSourceService, void>.internal(
|
AutoDisposeNotifierProvider<BangSourceService, void>.internal(
|
||||||
BangSourceService.new,
|
BangSourceService.new,
|
||||||
name: r'bangSourceServiceProvider',
|
name: r'bangSourceServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$bangSourceServiceHash,
|
: _$bangSourceServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -39,13 +39,21 @@ class BangDataFamily extends Family<AsyncValue<BangData?>> {
|
|||||||
const BangDataFamily();
|
const BangDataFamily();
|
||||||
|
|
||||||
/// See also [bangData].
|
/// See also [bangData].
|
||||||
BangDataProvider call(String? trigger) {
|
BangDataProvider call(
|
||||||
return BangDataProvider(trigger);
|
String? trigger,
|
||||||
|
) {
|
||||||
|
return BangDataProvider(
|
||||||
|
trigger,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
BangDataProvider getProviderOverride(covariant BangDataProvider provider) {
|
BangDataProvider getProviderOverride(
|
||||||
return call(provider.trigger);
|
covariant BangDataProvider provider,
|
||||||
|
) {
|
||||||
|
return call(
|
||||||
|
provider.trigger,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -66,9 +74,13 @@ class BangDataFamily extends Family<AsyncValue<BangData?>> {
|
|||||||
/// See also [bangData].
|
/// See also [bangData].
|
||||||
class BangDataProvider extends AutoDisposeStreamProvider<BangData?> {
|
class BangDataProvider extends AutoDisposeStreamProvider<BangData?> {
|
||||||
/// See also [bangData].
|
/// See also [bangData].
|
||||||
BangDataProvider(String? trigger)
|
BangDataProvider(
|
||||||
: this._internal(
|
String? trigger,
|
||||||
(ref) => bangData(ref as BangDataRef, trigger),
|
) : this._internal(
|
||||||
|
(ref) => bangData(
|
||||||
|
ref as BangDataRef,
|
||||||
|
trigger,
|
||||||
|
),
|
||||||
from: bangDataProvider,
|
from: bangDataProvider,
|
||||||
name: r'bangDataProvider',
|
name: r'bangDataProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -137,8 +149,7 @@ mixin BangDataRef on AutoDisposeStreamProviderRef<BangData?> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _BangDataProviderElement
|
class _BangDataProviderElement
|
||||||
extends AutoDisposeStreamProviderElement<BangData?>
|
extends AutoDisposeStreamProviderElement<BangData?> with BangDataRef {
|
||||||
with BangDataRef {
|
|
||||||
_BangDataProviderElement(super.provider);
|
_BangDataProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -153,8 +164,7 @@ String _$defaultSearchBangDataHash() =>
|
|||||||
final defaultSearchBangDataProvider = StreamProvider<BangData?>.internal(
|
final defaultSearchBangDataProvider = StreamProvider<BangData?>.internal(
|
||||||
defaultSearchBangData,
|
defaultSearchBangData,
|
||||||
name: r'defaultSearchBangDataProvider',
|
name: r'defaultSearchBangDataProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$defaultSearchBangDataHash,
|
: _$defaultSearchBangDataHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -172,8 +182,7 @@ final bangCategoriesProvider =
|
|||||||
AutoDisposeStreamProvider<Map<String, List<String>>>.internal(
|
AutoDisposeStreamProvider<Map<String, List<String>>>.internal(
|
||||||
bangCategories,
|
bangCategories,
|
||||||
name: r'bangCategoriesProvider',
|
name: r'bangCategoriesProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$bangCategoriesHash,
|
: _$bangCategoriesHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -182,8 +191,8 @@ final bangCategoriesProvider =
|
|||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
typedef BangCategoriesRef =
|
typedef BangCategoriesRef
|
||||||
AutoDisposeStreamProviderRef<Map<String, List<String>>>;
|
= AutoDisposeStreamProviderRef<Map<String, List<String>>>;
|
||||||
String _$bangDataListHash() => r'cd034fdf046b156ac452edd0857ac054ab477917';
|
String _$bangDataListHash() => r'cd034fdf046b156ac452edd0857ac054ab477917';
|
||||||
|
|
||||||
/// See also [bangDataList].
|
/// See also [bangDataList].
|
||||||
@@ -201,18 +210,21 @@ class BangDataListFamily extends Family<AsyncValue<List<BangData>>> {
|
|||||||
({String category, String? subCategory})? categoryFilter,
|
({String category, String? subCategory})? categoryFilter,
|
||||||
String? domain,
|
String? domain,
|
||||||
Iterable<BangGroup>? groups,
|
Iterable<BangGroup>? groups,
|
||||||
bool? orderMostFrequentFirst,
|
bool? orderMostFrequentFirst
|
||||||
})?
|
})? filter,
|
||||||
filter,
|
|
||||||
}) {
|
}) {
|
||||||
return BangDataListProvider(filter: filter);
|
return BangDataListProvider(
|
||||||
|
filter: filter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
BangDataListProvider getProviderOverride(
|
BangDataListProvider getProviderOverride(
|
||||||
covariant BangDataListProvider provider,
|
covariant BangDataListProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(filter: provider.filter);
|
return call(
|
||||||
|
filter: provider.filter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -238,11 +250,13 @@ class BangDataListProvider extends AutoDisposeStreamProvider<List<BangData>> {
|
|||||||
({String category, String? subCategory})? categoryFilter,
|
({String category, String? subCategory})? categoryFilter,
|
||||||
String? domain,
|
String? domain,
|
||||||
Iterable<BangGroup>? groups,
|
Iterable<BangGroup>? groups,
|
||||||
bool? orderMostFrequentFirst,
|
bool? orderMostFrequentFirst
|
||||||
})?
|
})? filter,
|
||||||
filter,
|
|
||||||
}) : this._internal(
|
}) : this._internal(
|
||||||
(ref) => bangDataList(ref as BangDataListRef, filter: filter),
|
(ref) => bangDataList(
|
||||||
|
ref as BangDataListRef,
|
||||||
|
filter: filter,
|
||||||
|
),
|
||||||
from: bangDataListProvider,
|
from: bangDataListProvider,
|
||||||
name: r'bangDataListProvider',
|
name: r'bangDataListProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -269,9 +283,8 @@ class BangDataListProvider extends AutoDisposeStreamProvider<List<BangData>> {
|
|||||||
({String category, String? subCategory})? categoryFilter,
|
({String category, String? subCategory})? categoryFilter,
|
||||||
String? domain,
|
String? domain,
|
||||||
Iterable<BangGroup>? groups,
|
Iterable<BangGroup>? groups,
|
||||||
bool? orderMostFrequentFirst,
|
bool? orderMostFrequentFirst
|
||||||
})?
|
})? filter;
|
||||||
filter;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
@@ -318,9 +331,8 @@ mixin BangDataListRef on AutoDisposeStreamProviderRef<List<BangData>> {
|
|||||||
({String category, String? subCategory})? categoryFilter,
|
({String category, String? subCategory})? categoryFilter,
|
||||||
String? domain,
|
String? domain,
|
||||||
Iterable<BangGroup>? groups,
|
Iterable<BangGroup>? groups,
|
||||||
bool? orderMostFrequentFirst,
|
bool? orderMostFrequentFirst
|
||||||
})?
|
})? get filter;
|
||||||
get filter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class _BangDataListProviderElement
|
class _BangDataListProviderElement
|
||||||
@@ -333,9 +345,8 @@ class _BangDataListProviderElement
|
|||||||
({String category, String? subCategory})? categoryFilter,
|
({String category, String? subCategory})? categoryFilter,
|
||||||
String? domain,
|
String? domain,
|
||||||
Iterable<BangGroup>? groups,
|
Iterable<BangGroup>? groups,
|
||||||
bool? orderMostFrequentFirst,
|
bool? orderMostFrequentFirst
|
||||||
})?
|
})? get filter => (origin as BangDataListProvider).filter;
|
||||||
get filter => (origin as BangDataListProvider).filter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String _$frequentBangDataListHash() =>
|
String _$frequentBangDataListHash() =>
|
||||||
@@ -347,8 +358,7 @@ final frequentBangDataListProvider =
|
|||||||
AutoDisposeStreamProvider<List<BangData>>.internal(
|
AutoDisposeStreamProvider<List<BangData>>.internal(
|
||||||
frequentBangDataList,
|
frequentBangDataList,
|
||||||
name: r'frequentBangDataListProvider',
|
name: r'frequentBangDataListProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$frequentBangDataListHash,
|
: _$frequentBangDataListHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -366,8 +376,7 @@ final searchHistoryProvider =
|
|||||||
AutoDisposeStreamProvider<List<SearchHistoryEntry>>.internal(
|
AutoDisposeStreamProvider<List<SearchHistoryEntry>>.internal(
|
||||||
searchHistory,
|
searchHistory,
|
||||||
name: r'searchHistoryProvider',
|
name: r'searchHistoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$searchHistoryHash,
|
: _$searchHistoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -376,8 +385,8 @@ final searchHistoryProvider =
|
|||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
typedef SearchHistoryRef =
|
typedef SearchHistoryRef
|
||||||
AutoDisposeStreamProviderRef<List<SearchHistoryEntry>>;
|
= AutoDisposeStreamProviderRef<List<SearchHistoryEntry>>;
|
||||||
String _$lastSyncOfGroupHash() => r'23d07f3132ba9bb35a31f74e3a69698d31d4c569';
|
String _$lastSyncOfGroupHash() => r'23d07f3132ba9bb35a31f74e3a69698d31d4c569';
|
||||||
|
|
||||||
/// See also [lastSyncOfGroup].
|
/// See also [lastSyncOfGroup].
|
||||||
@@ -390,15 +399,21 @@ class LastSyncOfGroupFamily extends Family<AsyncValue<DateTime?>> {
|
|||||||
const LastSyncOfGroupFamily();
|
const LastSyncOfGroupFamily();
|
||||||
|
|
||||||
/// See also [lastSyncOfGroup].
|
/// See also [lastSyncOfGroup].
|
||||||
LastSyncOfGroupProvider call(BangGroup group) {
|
LastSyncOfGroupProvider call(
|
||||||
return LastSyncOfGroupProvider(group);
|
BangGroup group,
|
||||||
|
) {
|
||||||
|
return LastSyncOfGroupProvider(
|
||||||
|
group,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
LastSyncOfGroupProvider getProviderOverride(
|
LastSyncOfGroupProvider getProviderOverride(
|
||||||
covariant LastSyncOfGroupProvider provider,
|
covariant LastSyncOfGroupProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.group);
|
return call(
|
||||||
|
provider.group,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -419,9 +434,13 @@ class LastSyncOfGroupFamily extends Family<AsyncValue<DateTime?>> {
|
|||||||
/// See also [lastSyncOfGroup].
|
/// See also [lastSyncOfGroup].
|
||||||
class LastSyncOfGroupProvider extends AutoDisposeStreamProvider<DateTime?> {
|
class LastSyncOfGroupProvider extends AutoDisposeStreamProvider<DateTime?> {
|
||||||
/// See also [lastSyncOfGroup].
|
/// See also [lastSyncOfGroup].
|
||||||
LastSyncOfGroupProvider(BangGroup group)
|
LastSyncOfGroupProvider(
|
||||||
: this._internal(
|
BangGroup group,
|
||||||
(ref) => lastSyncOfGroup(ref as LastSyncOfGroupRef, group),
|
) : this._internal(
|
||||||
|
(ref) => lastSyncOfGroup(
|
||||||
|
ref as LastSyncOfGroupRef,
|
||||||
|
group,
|
||||||
|
),
|
||||||
from: lastSyncOfGroupProvider,
|
from: lastSyncOfGroupProvider,
|
||||||
name: r'lastSyncOfGroupProvider',
|
name: r'lastSyncOfGroupProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -511,15 +530,21 @@ class BangCountOfGroupFamily extends Family<AsyncValue<int>> {
|
|||||||
const BangCountOfGroupFamily();
|
const BangCountOfGroupFamily();
|
||||||
|
|
||||||
/// See also [bangCountOfGroup].
|
/// See also [bangCountOfGroup].
|
||||||
BangCountOfGroupProvider call(BangGroup group) {
|
BangCountOfGroupProvider call(
|
||||||
return BangCountOfGroupProvider(group);
|
BangGroup group,
|
||||||
|
) {
|
||||||
|
return BangCountOfGroupProvider(
|
||||||
|
group,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
BangCountOfGroupProvider getProviderOverride(
|
BangCountOfGroupProvider getProviderOverride(
|
||||||
covariant BangCountOfGroupProvider provider,
|
covariant BangCountOfGroupProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.group);
|
return call(
|
||||||
|
provider.group,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -540,9 +565,13 @@ class BangCountOfGroupFamily extends Family<AsyncValue<int>> {
|
|||||||
/// See also [bangCountOfGroup].
|
/// See also [bangCountOfGroup].
|
||||||
class BangCountOfGroupProvider extends AutoDisposeStreamProvider<int> {
|
class BangCountOfGroupProvider extends AutoDisposeStreamProvider<int> {
|
||||||
/// See also [bangCountOfGroup].
|
/// See also [bangCountOfGroup].
|
||||||
BangCountOfGroupProvider(BangGroup group)
|
BangCountOfGroupProvider(
|
||||||
: this._internal(
|
BangGroup group,
|
||||||
(ref) => bangCountOfGroup(ref as BangCountOfGroupRef, group),
|
) : this._internal(
|
||||||
|
(ref) => bangCountOfGroup(
|
||||||
|
ref as BangCountOfGroupRef,
|
||||||
|
group,
|
||||||
|
),
|
||||||
from: bangCountOfGroupProvider,
|
from: bangCountOfGroupProvider,
|
||||||
name: r'bangCountOfGroupProvider',
|
name: r'bangCountOfGroupProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -612,13 +641,11 @@ mixin BangCountOfGroupRef on AutoDisposeStreamProviderRef<int> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _BangCountOfGroupProviderElement
|
class _BangCountOfGroupProviderElement
|
||||||
extends AutoDisposeStreamProviderElement<int>
|
extends AutoDisposeStreamProviderElement<int> with BangCountOfGroupRef {
|
||||||
with BangCountOfGroupRef {
|
|
||||||
_BangCountOfGroupProviderElement(super.provider);
|
_BangCountOfGroupProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
BangGroup get group => (origin as BangCountOfGroupProvider).group;
|
BangGroup get group => (origin as BangCountOfGroupProvider).group;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -39,15 +39,24 @@ class TriggerBangSearchFamily extends Family<AsyncValue<Uri>> {
|
|||||||
const TriggerBangSearchFamily();
|
const TriggerBangSearchFamily();
|
||||||
|
|
||||||
/// See also [triggerBangSearch].
|
/// See also [triggerBangSearch].
|
||||||
TriggerBangSearchProvider call(BangData bang, String searchQuery) {
|
TriggerBangSearchProvider call(
|
||||||
return TriggerBangSearchProvider(bang, searchQuery);
|
BangData bang,
|
||||||
|
String searchQuery,
|
||||||
|
) {
|
||||||
|
return TriggerBangSearchProvider(
|
||||||
|
bang,
|
||||||
|
searchQuery,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TriggerBangSearchProvider getProviderOverride(
|
TriggerBangSearchProvider getProviderOverride(
|
||||||
covariant TriggerBangSearchProvider provider,
|
covariant TriggerBangSearchProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.bang, provider.searchQuery);
|
return call(
|
||||||
|
provider.bang,
|
||||||
|
provider.searchQuery,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -68,10 +77,15 @@ class TriggerBangSearchFamily extends Family<AsyncValue<Uri>> {
|
|||||||
/// See also [triggerBangSearch].
|
/// See also [triggerBangSearch].
|
||||||
class TriggerBangSearchProvider extends AutoDisposeFutureProvider<Uri> {
|
class TriggerBangSearchProvider extends AutoDisposeFutureProvider<Uri> {
|
||||||
/// See also [triggerBangSearch].
|
/// See also [triggerBangSearch].
|
||||||
TriggerBangSearchProvider(BangData bang, String searchQuery)
|
TriggerBangSearchProvider(
|
||||||
: this._internal(
|
BangData bang,
|
||||||
(ref) =>
|
String searchQuery,
|
||||||
triggerBangSearch(ref as TriggerBangSearchRef, bang, searchQuery),
|
) : this._internal(
|
||||||
|
(ref) => triggerBangSearch(
|
||||||
|
ref as TriggerBangSearchRef,
|
||||||
|
bang,
|
||||||
|
searchQuery,
|
||||||
|
),
|
||||||
from: triggerBangSearchProvider,
|
from: triggerBangSearchProvider,
|
||||||
name: r'triggerBangSearchProvider',
|
name: r'triggerBangSearchProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -151,8 +165,7 @@ mixin TriggerBangSearchRef on AutoDisposeFutureProviderRef<Uri> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _TriggerBangSearchProviderElement
|
class _TriggerBangSearchProviderElement
|
||||||
extends AutoDisposeFutureProviderElement<Uri>
|
extends AutoDisposeFutureProviderElement<Uri> with TriggerBangSearchRef {
|
||||||
with TriggerBangSearchRef {
|
|
||||||
_TriggerBangSearchProviderElement(super.provider);
|
_TriggerBangSearchProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -160,6 +173,5 @@ class _TriggerBangSearchProviderElement
|
|||||||
@override
|
@override
|
||||||
String get searchQuery => (origin as TriggerBangSearchProvider).searchQuery;
|
String get searchQuery => (origin as TriggerBangSearchProvider).searchQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final bangDataRepositoryProvider =
|
|||||||
NotifierProvider<BangDataRepository, void>.internal(
|
NotifierProvider<BangDataRepository, void>.internal(
|
||||||
BangDataRepository.new,
|
BangDataRepository.new,
|
||||||
name: r'bangDataRepositoryProvider',
|
name: r'bangDataRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$bangDataRepositoryHash,
|
: _$bangDataRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ final bangSearchProvider =
|
|||||||
BangSearch.new,
|
BangSearch.new,
|
||||||
name: r'bangSearchProvider',
|
name: r'bangSearchProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
const bool.fromEnvironment('dart.vm.product') ? null : _$bangSearchHash,
|
||||||
? null
|
|
||||||
: _$bangSearchHash,
|
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -29,20 +27,17 @@ String _$seamlessBangProviderHash() =>
|
|||||||
/// See also [SeamlessBangProvider].
|
/// See also [SeamlessBangProvider].
|
||||||
@ProviderFor(SeamlessBangProvider)
|
@ProviderFor(SeamlessBangProvider)
|
||||||
final seamlessBangProviderProvider = AutoDisposeNotifierProvider<
|
final seamlessBangProviderProvider = AutoDisposeNotifierProvider<
|
||||||
SeamlessBangProvider,
|
SeamlessBangProvider, AsyncValue<List<BangData>>>.internal(
|
||||||
AsyncValue<List<BangData>>
|
|
||||||
>.internal(
|
|
||||||
SeamlessBangProvider.new,
|
SeamlessBangProvider.new,
|
||||||
name: r'seamlessBangProviderProvider',
|
name: r'seamlessBangProviderProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$seamlessBangProviderHash,
|
: _$seamlessBangProviderHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef _$SeamlessBangProvider =
|
typedef _$SeamlessBangProvider
|
||||||
AutoDisposeNotifier<AsyncValue<List<BangData>>>;
|
= AutoDisposeNotifier<AsyncValue<List<BangData>>>;
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final bangSyncRepositoryProvider =
|
|||||||
NotifierProvider<BangSyncRepository, void>.internal(
|
NotifierProvider<BangSyncRepository, void>.internal(
|
||||||
BangSyncRepository.new,
|
BangSyncRepository.new,
|
||||||
name: r'bangSyncRepositoryProvider',
|
name: r'bangSyncRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$bangSyncRepositoryHash,
|
: _$bangSyncRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -9,22 +9,16 @@ class ChatData extends Table with TableInfo<ChatData, ChatDataData> {
|
|||||||
final String? _alias;
|
final String? _alias;
|
||||||
ChatData(this.attachedDatabase, [this._alias]);
|
ChatData(this.attachedDatabase, [this._alias]);
|
||||||
late final GeneratedColumn<String> chatId = GeneratedColumn<String>(
|
late final GeneratedColumn<String> chatId = GeneratedColumn<String>(
|
||||||
'chat_id',
|
'chat_id', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'PRIMARY KEY NOT NULL',
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
);
|
|
||||||
late final GeneratedColumnWithTypeConverter<ChatMetadata, String> metadata =
|
late final GeneratedColumnWithTypeConverter<ChatMetadata, String> metadata =
|
||||||
GeneratedColumn<String>(
|
GeneratedColumn<String>('metadata', aliasedName, false,
|
||||||
'metadata',
|
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'NOT NULL',
|
$customConstraints: 'NOT NULL')
|
||||||
).withConverter<ChatMetadata>(ChatData.$convertermetadata);
|
.withConverter<ChatMetadata>(ChatData.$convertermetadata);
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns => [chatId, metadata];
|
List<GeneratedColumn> get $columns => [chatId, metadata];
|
||||||
@override
|
@override
|
||||||
@@ -38,17 +32,10 @@ class ChatData extends Table with TableInfo<ChatData, ChatDataData> {
|
|||||||
ChatDataData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
ChatDataData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||||
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
||||||
return ChatDataData(
|
return ChatDataData(
|
||||||
chatId:
|
chatId: attachedDatabase.typeMapping
|
||||||
attachedDatabase.typeMapping.read(
|
.read(DriftSqlType.string, data['${effectivePrefix}chat_id'])!,
|
||||||
DriftSqlType.string,
|
metadata: ChatData.$convertermetadata.fromSql(attachedDatabase.typeMapping
|
||||||
data['${effectivePrefix}chat_id'],
|
.read(DriftSqlType.string, data['${effectivePrefix}metadata'])!),
|
||||||
)!,
|
|
||||||
metadata: ChatData.$convertermetadata.fromSql(
|
|
||||||
attachedDatabase.typeMapping.read(
|
|
||||||
DriftSqlType.string,
|
|
||||||
data['${effectivePrefix}metadata'],
|
|
||||||
)!,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,17 +59,14 @@ class ChatDataData extends DataClass implements Insertable<ChatDataData> {
|
|||||||
final map = <String, Expression>{};
|
final map = <String, Expression>{};
|
||||||
map['chat_id'] = Variable<String>(chatId);
|
map['chat_id'] = Variable<String>(chatId);
|
||||||
{
|
{
|
||||||
map['metadata'] = Variable<String>(
|
map['metadata'] =
|
||||||
ChatData.$convertermetadata.toSql(metadata),
|
Variable<String>(ChatData.$convertermetadata.toSql(metadata));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
factory ChatDataData.fromJson(
|
factory ChatDataData.fromJson(Map<String, dynamic> json,
|
||||||
Map<String, dynamic> json, {
|
{ValueSerializer? serializer}) {
|
||||||
ValueSerializer? serializer,
|
|
||||||
}) {
|
|
||||||
serializer ??= driftRuntimeOptions.defaultSerializer;
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
||||||
return ChatDataData(
|
return ChatDataData(
|
||||||
chatId: serializer.fromJson<String>(json['chat_id']),
|
chatId: serializer.fromJson<String>(json['chat_id']),
|
||||||
@@ -156,11 +140,10 @@ class ChatDataCompanion extends UpdateCompanion<ChatDataData> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatDataCompanion copyWith({
|
ChatDataCompanion copyWith(
|
||||||
Value<String>? chatId,
|
{Value<String>? chatId,
|
||||||
Value<ChatMetadata>? metadata,
|
Value<ChatMetadata>? metadata,
|
||||||
Value<int>? rowid,
|
Value<int>? rowid}) {
|
||||||
}) {
|
|
||||||
return ChatDataCompanion(
|
return ChatDataCompanion(
|
||||||
chatId: chatId ?? this.chatId,
|
chatId: chatId ?? this.chatId,
|
||||||
metadata: metadata ?? this.metadata,
|
metadata: metadata ?? this.metadata,
|
||||||
@@ -175,9 +158,8 @@ class ChatDataCompanion extends UpdateCompanion<ChatDataData> {
|
|||||||
map['chat_id'] = Variable<String>(chatId.value);
|
map['chat_id'] = Variable<String>(chatId.value);
|
||||||
}
|
}
|
||||||
if (metadata.present) {
|
if (metadata.present) {
|
||||||
map['metadata'] = Variable<String>(
|
map['metadata'] =
|
||||||
ChatData.$convertermetadata.toSql(metadata.value),
|
Variable<String>(ChatData.$convertermetadata.toSql(metadata.value));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (rowid.present) {
|
if (rowid.present) {
|
||||||
map['rowid'] = Variable<int>(rowid.value);
|
map['rowid'] = Variable<int>(rowid.value);
|
||||||
@@ -202,44 +184,28 @@ class ChatMessage extends Table with TableInfo<ChatMessage, ChatMessageData> {
|
|||||||
final String? _alias;
|
final String? _alias;
|
||||||
ChatMessage(this.attachedDatabase, [this._alias]);
|
ChatMessage(this.attachedDatabase, [this._alias]);
|
||||||
late final GeneratedColumn<String> messageId = GeneratedColumn<String>(
|
late final GeneratedColumn<String> messageId = GeneratedColumn<String>(
|
||||||
'message_id',
|
'message_id', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'PRIMARY KEY NOT NULL',
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
);
|
|
||||||
late final GeneratedColumn<String> chatId = GeneratedColumn<String>(
|
late final GeneratedColumn<String> chatId = GeneratedColumn<String>(
|
||||||
'chat_id',
|
'chat_id', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'NOT NULL',
|
$customConstraints: 'NOT NULL');
|
||||||
);
|
|
||||||
late final GeneratedColumn<String> orderKey = GeneratedColumn<String>(
|
late final GeneratedColumn<String> orderKey = GeneratedColumn<String>(
|
||||||
'order_key',
|
'order_key', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'NOT NULL',
|
$customConstraints: 'NOT NULL');
|
||||||
);
|
|
||||||
late final GeneratedColumn<String> messageJson = GeneratedColumn<String>(
|
late final GeneratedColumn<String> messageJson = GeneratedColumn<String>(
|
||||||
'message_json',
|
'message_json', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'NOT NULL',
|
$customConstraints: 'NOT NULL');
|
||||||
);
|
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns => [
|
List<GeneratedColumn> get $columns =>
|
||||||
messageId,
|
[messageId, chatId, orderKey, messageJson];
|
||||||
chatId,
|
|
||||||
orderKey,
|
|
||||||
messageJson,
|
|
||||||
];
|
|
||||||
@override
|
@override
|
||||||
String get aliasedName => _alias ?? actualTableName;
|
String get aliasedName => _alias ?? actualTableName;
|
||||||
@override
|
@override
|
||||||
@@ -251,26 +217,14 @@ class ChatMessage extends Table with TableInfo<ChatMessage, ChatMessageData> {
|
|||||||
ChatMessageData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
ChatMessageData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||||
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
||||||
return ChatMessageData(
|
return ChatMessageData(
|
||||||
messageId:
|
messageId: attachedDatabase.typeMapping
|
||||||
attachedDatabase.typeMapping.read(
|
.read(DriftSqlType.string, data['${effectivePrefix}message_id'])!,
|
||||||
DriftSqlType.string,
|
chatId: attachedDatabase.typeMapping
|
||||||
data['${effectivePrefix}message_id'],
|
.read(DriftSqlType.string, data['${effectivePrefix}chat_id'])!,
|
||||||
)!,
|
orderKey: attachedDatabase.typeMapping
|
||||||
chatId:
|
.read(DriftSqlType.string, data['${effectivePrefix}order_key'])!,
|
||||||
attachedDatabase.typeMapping.read(
|
messageJson: attachedDatabase.typeMapping
|
||||||
DriftSqlType.string,
|
.read(DriftSqlType.string, data['${effectivePrefix}message_json'])!,
|
||||||
data['${effectivePrefix}chat_id'],
|
|
||||||
)!,
|
|
||||||
orderKey:
|
|
||||||
attachedDatabase.typeMapping.read(
|
|
||||||
DriftSqlType.string,
|
|
||||||
data['${effectivePrefix}order_key'],
|
|
||||||
)!,
|
|
||||||
messageJson:
|
|
||||||
attachedDatabase.typeMapping.read(
|
|
||||||
DriftSqlType.string,
|
|
||||||
data['${effectivePrefix}message_json'],
|
|
||||||
)!,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,12 +242,11 @@ class ChatMessageData extends DataClass implements Insertable<ChatMessageData> {
|
|||||||
final String chatId;
|
final String chatId;
|
||||||
final String orderKey;
|
final String orderKey;
|
||||||
final String messageJson;
|
final String messageJson;
|
||||||
const ChatMessageData({
|
const ChatMessageData(
|
||||||
required this.messageId,
|
{required this.messageId,
|
||||||
required this.chatId,
|
required this.chatId,
|
||||||
required this.orderKey,
|
required this.orderKey,
|
||||||
required this.messageJson,
|
required this.messageJson});
|
||||||
});
|
|
||||||
@override
|
@override
|
||||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||||
final map = <String, Expression>{};
|
final map = <String, Expression>{};
|
||||||
@@ -304,10 +257,8 @@ class ChatMessageData extends DataClass implements Insertable<ChatMessageData> {
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
factory ChatMessageData.fromJson(
|
factory ChatMessageData.fromJson(Map<String, dynamic> json,
|
||||||
Map<String, dynamic> json, {
|
{ValueSerializer? serializer}) {
|
||||||
ValueSerializer? serializer,
|
|
||||||
}) {
|
|
||||||
serializer ??= driftRuntimeOptions.defaultSerializer;
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
||||||
return ChatMessageData(
|
return ChatMessageData(
|
||||||
messageId: serializer.fromJson<String>(json['message_id']),
|
messageId: serializer.fromJson<String>(json['message_id']),
|
||||||
@@ -327,12 +278,12 @@ class ChatMessageData extends DataClass implements Insertable<ChatMessageData> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatMessageData copyWith({
|
ChatMessageData copyWith(
|
||||||
String? messageId,
|
{String? messageId,
|
||||||
String? chatId,
|
String? chatId,
|
||||||
String? orderKey,
|
String? orderKey,
|
||||||
String? messageJson,
|
String? messageJson}) =>
|
||||||
}) => ChatMessageData(
|
ChatMessageData(
|
||||||
messageId: messageId ?? this.messageId,
|
messageId: messageId ?? this.messageId,
|
||||||
chatId: chatId ?? this.chatId,
|
chatId: chatId ?? this.chatId,
|
||||||
orderKey: orderKey ?? this.orderKey,
|
orderKey: orderKey ?? this.orderKey,
|
||||||
@@ -410,13 +361,12 @@ class ChatMessageCompanion extends UpdateCompanion<ChatMessageData> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatMessageCompanion copyWith({
|
ChatMessageCompanion copyWith(
|
||||||
Value<String>? messageId,
|
{Value<String>? messageId,
|
||||||
Value<String>? chatId,
|
Value<String>? chatId,
|
||||||
Value<String>? orderKey,
|
Value<String>? orderKey,
|
||||||
Value<String>? messageJson,
|
Value<String>? messageJson,
|
||||||
Value<int>? rowid,
|
Value<int>? rowid}) {
|
||||||
}) {
|
|
||||||
return ChatMessageCompanion(
|
return ChatMessageCompanion(
|
||||||
messageId: messageId ?? this.messageId,
|
messageId: messageId ?? this.messageId,
|
||||||
chatId: chatId ?? this.chatId,
|
chatId: chatId ?? this.chatId,
|
||||||
@@ -465,75 +415,76 @@ abstract class _$ChatDatabase extends GeneratedDatabase {
|
|||||||
$ChatDatabaseManager get managers => $ChatDatabaseManager(this);
|
$ChatDatabaseManager get managers => $ChatDatabaseManager(this);
|
||||||
late final ChatData chatData = ChatData(this);
|
late final ChatData chatData = ChatData(this);
|
||||||
late final ChatMessage chatMessage = ChatMessage(this);
|
late final ChatMessage chatMessage = ChatMessage(this);
|
||||||
late final Index groupOrderIdx = Index(
|
late final Index groupOrderIdx = Index('group_order_idx',
|
||||||
'group_order_idx',
|
'CREATE UNIQUE INDEX group_order_idx ON chat_message (chat_id, order_key)');
|
||||||
'CREATE UNIQUE INDEX group_order_idx ON chat_message (chat_id, order_key)',
|
|
||||||
);
|
|
||||||
late final MessagesDao messagesDao = MessagesDao(this as ChatDatabase);
|
late final MessagesDao messagesDao = MessagesDao(this as ChatDatabase);
|
||||||
late final MetadataDao metadataDao = MetadataDao(this as ChatDatabase);
|
late final MetadataDao metadataDao = MetadataDao(this as ChatDatabase);
|
||||||
Selectable<String> leadingOrderKey({
|
Selectable<String> leadingOrderKey(
|
||||||
required int bucket,
|
{required int bucket, required String chatId}) {
|
||||||
required String chatId,
|
|
||||||
}) {
|
|
||||||
return customSelect(
|
return customSelect(
|
||||||
'SELECT lexo_rank_previous(?1, (SELECT order_key FROM chat_message WHERE chat_id = ?2 ORDER BY order_key LIMIT 1)) AS _c0',
|
'SELECT lexo_rank_previous(?1, (SELECT order_key FROM chat_message WHERE chat_id = ?2 ORDER BY order_key LIMIT 1)) AS _c0',
|
||||||
variables: [Variable<int>(bucket), Variable<String>(chatId)],
|
variables: [
|
||||||
readsFrom: {chatMessage},
|
Variable<int>(bucket),
|
||||||
).map((QueryRow row) => row.read<String>('_c0'));
|
Variable<String>(chatId)
|
||||||
|
],
|
||||||
|
readsFrom: {
|
||||||
|
chatMessage,
|
||||||
|
}).map((QueryRow row) => row.read<String>('_c0'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Selectable<String> trailingOrderKey({
|
Selectable<String> trailingOrderKey(
|
||||||
required int bucket,
|
{required int bucket, required String chatId}) {
|
||||||
required String chatId,
|
|
||||||
}) {
|
|
||||||
return customSelect(
|
return customSelect(
|
||||||
'SELECT lexo_rank_next(?1, (SELECT order_key FROM chat_message WHERE chat_id = ?2 ORDER BY order_key DESC LIMIT 1)) AS _c0',
|
'SELECT lexo_rank_next(?1, (SELECT order_key FROM chat_message WHERE chat_id = ?2 ORDER BY order_key DESC LIMIT 1)) AS _c0',
|
||||||
variables: [Variable<int>(bucket), Variable<String>(chatId)],
|
variables: [
|
||||||
readsFrom: {chatMessage},
|
Variable<int>(bucket),
|
||||||
).map((QueryRow row) => row.read<String>('_c0'));
|
Variable<String>(chatId)
|
||||||
|
],
|
||||||
|
readsFrom: {
|
||||||
|
chatMessage,
|
||||||
|
}).map((QueryRow row) => row.read<String>('_c0'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Selectable<String> orderKeyBeforeIndex({
|
Selectable<String> orderKeyBeforeIndex(
|
||||||
required String chatId,
|
{required String chatId, required int rowIdx}) {
|
||||||
required int rowIdx,
|
|
||||||
}) {
|
|
||||||
return customSelect(
|
return customSelect(
|
||||||
'WITH ordered_table AS (SELECT message_id, order_key, LEAD(order_key)OVER (ORDER BY order_key RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS next_order_key, ROW_NUMBER()OVER (ORDER BY order_key RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS row_idx, COUNT(*)OVER (RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS total_rows FROM chat_message WHERE chat_id = ?1) SELECT lexo_rank_reorder_after(order_key, next_order_key) AS _c0 FROM ordered_table WHERE row_idx = MIN(?2, total_rows)',
|
'WITH ordered_table AS (SELECT message_id, order_key, LEAD(order_key)OVER (ORDER BY order_key RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS next_order_key, ROW_NUMBER()OVER (ORDER BY order_key RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS row_idx, COUNT(*)OVER (RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS total_rows FROM chat_message WHERE chat_id = ?1) SELECT lexo_rank_reorder_after(order_key, next_order_key) AS _c0 FROM ordered_table WHERE row_idx = MIN(?2, total_rows)',
|
||||||
variables: [Variable<String>(chatId), Variable<int>(rowIdx)],
|
variables: [
|
||||||
readsFrom: {chatMessage},
|
Variable<String>(chatId),
|
||||||
).map((QueryRow row) => row.read<String>('_c0'));
|
Variable<int>(rowIdx)
|
||||||
|
],
|
||||||
|
readsFrom: {
|
||||||
|
chatMessage,
|
||||||
|
}).map((QueryRow row) => row.read<String>('_c0'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Selectable<int> messageIndex({
|
Selectable<int> messageIndex(
|
||||||
required String chatId,
|
{required String chatId, required String messageId}) {
|
||||||
required String messageId,
|
|
||||||
}) {
|
|
||||||
return customSelect(
|
return customSelect(
|
||||||
'WITH ordered_table AS (SELECT message_id, ROW_NUMBER()OVER (ORDER BY order_key RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS row_idx FROM chat_message WHERE chat_id = ?1) SELECT row_idx FROM ordered_table WHERE message_id = ?2',
|
'WITH ordered_table AS (SELECT message_id, ROW_NUMBER()OVER (ORDER BY order_key RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS) AS row_idx FROM chat_message WHERE chat_id = ?1) SELECT row_idx FROM ordered_table WHERE message_id = ?2',
|
||||||
variables: [Variable<String>(chatId), Variable<String>(messageId)],
|
variables: [
|
||||||
readsFrom: {chatMessage},
|
Variable<String>(chatId),
|
||||||
).map((QueryRow row) => row.read<int>('row_idx'));
|
Variable<String>(messageId)
|
||||||
|
],
|
||||||
|
readsFrom: {
|
||||||
|
chatMessage,
|
||||||
|
}).map((QueryRow row) => row.read<int>('row_idx'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo<Table, Object?>> get allTables =>
|
Iterable<TableInfo<Table, Object?>> get allTables =>
|
||||||
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [
|
List<DatabaseSchemaEntity> get allSchemaEntities =>
|
||||||
chatData,
|
[chatData, chatMessage, groupOrderIdx];
|
||||||
chatMessage,
|
|
||||||
groupOrderIdx,
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $ChatDataCreateCompanionBuilder =
|
typedef $ChatDataCreateCompanionBuilder = ChatDataCompanion Function({
|
||||||
ChatDataCompanion Function({
|
|
||||||
required String chatId,
|
required String chatId,
|
||||||
required ChatMetadata metadata,
|
required ChatMetadata metadata,
|
||||||
Value<int> rowid,
|
Value<int> rowid,
|
||||||
});
|
});
|
||||||
typedef $ChatDataUpdateCompanionBuilder =
|
typedef $ChatDataUpdateCompanionBuilder = ChatDataCompanion Function({
|
||||||
ChatDataCompanion Function({
|
|
||||||
Value<String> chatId,
|
Value<String> chatId,
|
||||||
Value<ChatMetadata> metadata,
|
Value<ChatMetadata> metadata,
|
||||||
Value<int> rowid,
|
Value<int> rowid,
|
||||||
@@ -548,15 +499,12 @@ class $ChatDataFilterComposer extends Composer<_$ChatDatabase, ChatData> {
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnFilters<String> get chatId => $composableBuilder(
|
ColumnFilters<String> get chatId => $composableBuilder(
|
||||||
column: $table.chatId,
|
column: $table.chatId, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnWithTypeConverterFilters<ChatMetadata, ChatMetadata, String>
|
ColumnWithTypeConverterFilters<ChatMetadata, ChatMetadata, String>
|
||||||
get metadata => $composableBuilder(
|
get metadata => $composableBuilder(
|
||||||
column: $table.metadata,
|
column: $table.metadata,
|
||||||
builder: (column) => ColumnWithTypeConverterFilters(column),
|
builder: (column) => ColumnWithTypeConverterFilters(column));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $ChatDataOrderingComposer extends Composer<_$ChatDatabase, ChatData> {
|
class $ChatDataOrderingComposer extends Composer<_$ChatDatabase, ChatData> {
|
||||||
@@ -568,14 +516,10 @@ class $ChatDataOrderingComposer extends Composer<_$ChatDatabase, ChatData> {
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnOrderings<String> get chatId => $composableBuilder(
|
ColumnOrderings<String> get chatId => $composableBuilder(
|
||||||
column: $table.chatId,
|
column: $table.chatId, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<String> get metadata => $composableBuilder(
|
ColumnOrderings<String> get metadata => $composableBuilder(
|
||||||
column: $table.metadata,
|
column: $table.metadata, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $ChatDataAnnotationComposer extends Composer<_$ChatDatabase, ChatData> {
|
class $ChatDataAnnotationComposer extends Composer<_$ChatDatabase, ChatData> {
|
||||||
@@ -593,72 +537,7 @@ class $ChatDataAnnotationComposer extends Composer<_$ChatDatabase, ChatData> {
|
|||||||
$composableBuilder(column: $table.metadata, builder: (column) => column);
|
$composableBuilder(column: $table.metadata, builder: (column) => column);
|
||||||
}
|
}
|
||||||
|
|
||||||
class $ChatDataTableManager
|
class $ChatDataTableManager extends RootTableManager<
|
||||||
extends
|
|
||||||
RootTableManager<
|
|
||||||
_$ChatDatabase,
|
|
||||||
ChatData,
|
|
||||||
ChatDataData,
|
|
||||||
$ChatDataFilterComposer,
|
|
||||||
$ChatDataOrderingComposer,
|
|
||||||
$ChatDataAnnotationComposer,
|
|
||||||
$ChatDataCreateCompanionBuilder,
|
|
||||||
$ChatDataUpdateCompanionBuilder,
|
|
||||||
(
|
|
||||||
ChatDataData,
|
|
||||||
BaseReferences<_$ChatDatabase, ChatData, ChatDataData>,
|
|
||||||
),
|
|
||||||
ChatDataData,
|
|
||||||
PrefetchHooks Function()
|
|
||||||
> {
|
|
||||||
$ChatDataTableManager(_$ChatDatabase db, ChatData table)
|
|
||||||
: super(
|
|
||||||
TableManagerState(
|
|
||||||
db: db,
|
|
||||||
table: table,
|
|
||||||
createFilteringComposer:
|
|
||||||
() => $ChatDataFilterComposer($db: db, $table: table),
|
|
||||||
createOrderingComposer:
|
|
||||||
() => $ChatDataOrderingComposer($db: db, $table: table),
|
|
||||||
createComputedFieldComposer:
|
|
||||||
() => $ChatDataAnnotationComposer($db: db, $table: table),
|
|
||||||
updateCompanionCallback:
|
|
||||||
({
|
|
||||||
Value<String> chatId = const Value.absent(),
|
|
||||||
Value<ChatMetadata> metadata = const Value.absent(),
|
|
||||||
Value<int> rowid = const Value.absent(),
|
|
||||||
}) => ChatDataCompanion(
|
|
||||||
chatId: chatId,
|
|
||||||
metadata: metadata,
|
|
||||||
rowid: rowid,
|
|
||||||
),
|
|
||||||
createCompanionCallback:
|
|
||||||
({
|
|
||||||
required String chatId,
|
|
||||||
required ChatMetadata metadata,
|
|
||||||
Value<int> rowid = const Value.absent(),
|
|
||||||
}) => ChatDataCompanion.insert(
|
|
||||||
chatId: chatId,
|
|
||||||
metadata: metadata,
|
|
||||||
rowid: rowid,
|
|
||||||
),
|
|
||||||
withReferenceMapper:
|
|
||||||
(p0) =>
|
|
||||||
p0
|
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
|
||||||
prefetchHooksCallback: null,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef $ChatDataProcessedTableManager =
|
|
||||||
ProcessedTableManager<
|
|
||||||
_$ChatDatabase,
|
_$ChatDatabase,
|
||||||
ChatData,
|
ChatData,
|
||||||
ChatDataData,
|
ChatDataData,
|
||||||
@@ -669,18 +548,64 @@ typedef $ChatDataProcessedTableManager =
|
|||||||
$ChatDataUpdateCompanionBuilder,
|
$ChatDataUpdateCompanionBuilder,
|
||||||
(ChatDataData, BaseReferences<_$ChatDatabase, ChatData, ChatDataData>),
|
(ChatDataData, BaseReferences<_$ChatDatabase, ChatData, ChatDataData>),
|
||||||
ChatDataData,
|
ChatDataData,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()> {
|
||||||
>;
|
$ChatDataTableManager(_$ChatDatabase db, ChatData table)
|
||||||
typedef $ChatMessageCreateCompanionBuilder =
|
: super(TableManagerState(
|
||||||
ChatMessageCompanion Function({
|
db: db,
|
||||||
|
table: table,
|
||||||
|
createFilteringComposer: () =>
|
||||||
|
$ChatDataFilterComposer($db: db, $table: table),
|
||||||
|
createOrderingComposer: () =>
|
||||||
|
$ChatDataOrderingComposer($db: db, $table: table),
|
||||||
|
createComputedFieldComposer: () =>
|
||||||
|
$ChatDataAnnotationComposer($db: db, $table: table),
|
||||||
|
updateCompanionCallback: ({
|
||||||
|
Value<String> chatId = const Value.absent(),
|
||||||
|
Value<ChatMetadata> metadata = const Value.absent(),
|
||||||
|
Value<int> rowid = const Value.absent(),
|
||||||
|
}) =>
|
||||||
|
ChatDataCompanion(
|
||||||
|
chatId: chatId,
|
||||||
|
metadata: metadata,
|
||||||
|
rowid: rowid,
|
||||||
|
),
|
||||||
|
createCompanionCallback: ({
|
||||||
|
required String chatId,
|
||||||
|
required ChatMetadata metadata,
|
||||||
|
Value<int> rowid = const Value.absent(),
|
||||||
|
}) =>
|
||||||
|
ChatDataCompanion.insert(
|
||||||
|
chatId: chatId,
|
||||||
|
metadata: metadata,
|
||||||
|
rowid: rowid,
|
||||||
|
),
|
||||||
|
withReferenceMapper: (p0) => p0
|
||||||
|
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||||
|
.toList(),
|
||||||
|
prefetchHooksCallback: null,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
typedef $ChatDataProcessedTableManager = ProcessedTableManager<
|
||||||
|
_$ChatDatabase,
|
||||||
|
ChatData,
|
||||||
|
ChatDataData,
|
||||||
|
$ChatDataFilterComposer,
|
||||||
|
$ChatDataOrderingComposer,
|
||||||
|
$ChatDataAnnotationComposer,
|
||||||
|
$ChatDataCreateCompanionBuilder,
|
||||||
|
$ChatDataUpdateCompanionBuilder,
|
||||||
|
(ChatDataData, BaseReferences<_$ChatDatabase, ChatData, ChatDataData>),
|
||||||
|
ChatDataData,
|
||||||
|
PrefetchHooks Function()>;
|
||||||
|
typedef $ChatMessageCreateCompanionBuilder = ChatMessageCompanion Function({
|
||||||
required String messageId,
|
required String messageId,
|
||||||
required String chatId,
|
required String chatId,
|
||||||
required String orderKey,
|
required String orderKey,
|
||||||
required String messageJson,
|
required String messageJson,
|
||||||
Value<int> rowid,
|
Value<int> rowid,
|
||||||
});
|
});
|
||||||
typedef $ChatMessageUpdateCompanionBuilder =
|
typedef $ChatMessageUpdateCompanionBuilder = ChatMessageCompanion Function({
|
||||||
ChatMessageCompanion Function({
|
|
||||||
Value<String> messageId,
|
Value<String> messageId,
|
||||||
Value<String> chatId,
|
Value<String> chatId,
|
||||||
Value<String> orderKey,
|
Value<String> orderKey,
|
||||||
@@ -697,24 +622,16 @@ class $ChatMessageFilterComposer extends Composer<_$ChatDatabase, ChatMessage> {
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnFilters<String> get messageId => $composableBuilder(
|
ColumnFilters<String> get messageId => $composableBuilder(
|
||||||
column: $table.messageId,
|
column: $table.messageId, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnFilters<String> get chatId => $composableBuilder(
|
ColumnFilters<String> get chatId => $composableBuilder(
|
||||||
column: $table.chatId,
|
column: $table.chatId, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnFilters<String> get orderKey => $composableBuilder(
|
ColumnFilters<String> get orderKey => $composableBuilder(
|
||||||
column: $table.orderKey,
|
column: $table.orderKey, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnFilters<String> get messageJson => $composableBuilder(
|
ColumnFilters<String> get messageJson => $composableBuilder(
|
||||||
column: $table.messageJson,
|
column: $table.messageJson, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $ChatMessageOrderingComposer
|
class $ChatMessageOrderingComposer
|
||||||
@@ -727,24 +644,16 @@ class $ChatMessageOrderingComposer
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnOrderings<String> get messageId => $composableBuilder(
|
ColumnOrderings<String> get messageId => $composableBuilder(
|
||||||
column: $table.messageId,
|
column: $table.messageId, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<String> get chatId => $composableBuilder(
|
ColumnOrderings<String> get chatId => $composableBuilder(
|
||||||
column: $table.chatId,
|
column: $table.chatId, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<String> get orderKey => $composableBuilder(
|
ColumnOrderings<String> get orderKey => $composableBuilder(
|
||||||
column: $table.orderKey,
|
column: $table.orderKey, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<String> get messageJson => $composableBuilder(
|
ColumnOrderings<String> get messageJson => $composableBuilder(
|
||||||
column: $table.messageJson,
|
column: $table.messageJson, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $ChatMessageAnnotationComposer
|
class $ChatMessageAnnotationComposer
|
||||||
@@ -766,14 +675,10 @@ class $ChatMessageAnnotationComposer
|
|||||||
$composableBuilder(column: $table.orderKey, builder: (column) => column);
|
$composableBuilder(column: $table.orderKey, builder: (column) => column);
|
||||||
|
|
||||||
GeneratedColumn<String> get messageJson => $composableBuilder(
|
GeneratedColumn<String> get messageJson => $composableBuilder(
|
||||||
column: $table.messageJson,
|
column: $table.messageJson, builder: (column) => column);
|
||||||
builder: (column) => column,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $ChatMessageTableManager
|
class $ChatMessageTableManager extends RootTableManager<
|
||||||
extends
|
|
||||||
RootTableManager<
|
|
||||||
_$ChatDatabase,
|
_$ChatDatabase,
|
||||||
ChatMessage,
|
ChatMessage,
|
||||||
ChatMessageData,
|
ChatMessageData,
|
||||||
@@ -784,67 +689,56 @@ class $ChatMessageTableManager
|
|||||||
$ChatMessageUpdateCompanionBuilder,
|
$ChatMessageUpdateCompanionBuilder,
|
||||||
(
|
(
|
||||||
ChatMessageData,
|
ChatMessageData,
|
||||||
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>,
|
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>
|
||||||
),
|
),
|
||||||
ChatMessageData,
|
ChatMessageData,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()> {
|
||||||
> {
|
|
||||||
$ChatMessageTableManager(_$ChatDatabase db, ChatMessage table)
|
$ChatMessageTableManager(_$ChatDatabase db, ChatMessage table)
|
||||||
: super(
|
: super(TableManagerState(
|
||||||
TableManagerState(
|
|
||||||
db: db,
|
db: db,
|
||||||
table: table,
|
table: table,
|
||||||
createFilteringComposer:
|
createFilteringComposer: () =>
|
||||||
() => $ChatMessageFilterComposer($db: db, $table: table),
|
$ChatMessageFilterComposer($db: db, $table: table),
|
||||||
createOrderingComposer:
|
createOrderingComposer: () =>
|
||||||
() => $ChatMessageOrderingComposer($db: db, $table: table),
|
$ChatMessageOrderingComposer($db: db, $table: table),
|
||||||
createComputedFieldComposer:
|
createComputedFieldComposer: () =>
|
||||||
() => $ChatMessageAnnotationComposer($db: db, $table: table),
|
$ChatMessageAnnotationComposer($db: db, $table: table),
|
||||||
updateCompanionCallback:
|
updateCompanionCallback: ({
|
||||||
({
|
|
||||||
Value<String> messageId = const Value.absent(),
|
Value<String> messageId = const Value.absent(),
|
||||||
Value<String> chatId = const Value.absent(),
|
Value<String> chatId = const Value.absent(),
|
||||||
Value<String> orderKey = const Value.absent(),
|
Value<String> orderKey = const Value.absent(),
|
||||||
Value<String> messageJson = const Value.absent(),
|
Value<String> messageJson = const Value.absent(),
|
||||||
Value<int> rowid = const Value.absent(),
|
Value<int> rowid = const Value.absent(),
|
||||||
}) => ChatMessageCompanion(
|
}) =>
|
||||||
|
ChatMessageCompanion(
|
||||||
messageId: messageId,
|
messageId: messageId,
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
orderKey: orderKey,
|
orderKey: orderKey,
|
||||||
messageJson: messageJson,
|
messageJson: messageJson,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
createCompanionCallback:
|
createCompanionCallback: ({
|
||||||
({
|
|
||||||
required String messageId,
|
required String messageId,
|
||||||
required String chatId,
|
required String chatId,
|
||||||
required String orderKey,
|
required String orderKey,
|
||||||
required String messageJson,
|
required String messageJson,
|
||||||
Value<int> rowid = const Value.absent(),
|
Value<int> rowid = const Value.absent(),
|
||||||
}) => ChatMessageCompanion.insert(
|
}) =>
|
||||||
|
ChatMessageCompanion.insert(
|
||||||
messageId: messageId,
|
messageId: messageId,
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
orderKey: orderKey,
|
orderKey: orderKey,
|
||||||
messageJson: messageJson,
|
messageJson: messageJson,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
withReferenceMapper:
|
withReferenceMapper: (p0) => p0
|
||||||
(p0) =>
|
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||||
p0
|
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
.toList(),
|
||||||
prefetchHooksCallback: null,
|
prefetchHooksCallback: null,
|
||||||
),
|
));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $ChatMessageProcessedTableManager =
|
typedef $ChatMessageProcessedTableManager = ProcessedTableManager<
|
||||||
ProcessedTableManager<
|
|
||||||
_$ChatDatabase,
|
_$ChatDatabase,
|
||||||
ChatMessage,
|
ChatMessage,
|
||||||
ChatMessageData,
|
ChatMessageData,
|
||||||
@@ -855,11 +749,10 @@ typedef $ChatMessageProcessedTableManager =
|
|||||||
$ChatMessageUpdateCompanionBuilder,
|
$ChatMessageUpdateCompanionBuilder,
|
||||||
(
|
(
|
||||||
ChatMessageData,
|
ChatMessageData,
|
||||||
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>,
|
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>
|
||||||
),
|
),
|
||||||
ChatMessageData,
|
ChatMessageData,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()>;
|
||||||
>;
|
|
||||||
|
|
||||||
class $ChatDatabaseManager {
|
class $ChatDatabaseManager {
|
||||||
final _$ChatDatabase _db;
|
final _$ChatDatabase _db;
|
||||||
|
|||||||
@@ -39,15 +39,21 @@ class ChatControllerFamily extends Family<DriftChatController> {
|
|||||||
const ChatControllerFamily();
|
const ChatControllerFamily();
|
||||||
|
|
||||||
/// See also [chatController].
|
/// See also [chatController].
|
||||||
ChatControllerProvider call(String chatId) {
|
ChatControllerProvider call(
|
||||||
return ChatControllerProvider(chatId);
|
String chatId,
|
||||||
|
) {
|
||||||
|
return ChatControllerProvider(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ChatControllerProvider getProviderOverride(
|
ChatControllerProvider getProviderOverride(
|
||||||
covariant ChatControllerProvider provider,
|
covariant ChatControllerProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.chatId);
|
return call(
|
||||||
|
provider.chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -68,9 +74,13 @@ class ChatControllerFamily extends Family<DriftChatController> {
|
|||||||
/// See also [chatController].
|
/// See also [chatController].
|
||||||
class ChatControllerProvider extends AutoDisposeProvider<DriftChatController> {
|
class ChatControllerProvider extends AutoDisposeProvider<DriftChatController> {
|
||||||
/// See also [chatController].
|
/// See also [chatController].
|
||||||
ChatControllerProvider(String chatId)
|
ChatControllerProvider(
|
||||||
: this._internal(
|
String chatId,
|
||||||
(ref) => chatController(ref as ChatControllerRef, chatId),
|
) : this._internal(
|
||||||
|
(ref) => chatController(
|
||||||
|
ref as ChatControllerRef,
|
||||||
|
chatId,
|
||||||
|
),
|
||||||
from: chatControllerProvider,
|
from: chatControllerProvider,
|
||||||
name: r'chatControllerProvider',
|
name: r'chatControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -160,15 +170,21 @@ class ChatMetadataFamily extends Family<AsyncValue<ChatMetadata?>> {
|
|||||||
const ChatMetadataFamily();
|
const ChatMetadataFamily();
|
||||||
|
|
||||||
/// See also [chatMetadata].
|
/// See also [chatMetadata].
|
||||||
ChatMetadataProvider call(String chatId) {
|
ChatMetadataProvider call(
|
||||||
return ChatMetadataProvider(chatId);
|
String chatId,
|
||||||
|
) {
|
||||||
|
return ChatMetadataProvider(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ChatMetadataProvider getProviderOverride(
|
ChatMetadataProvider getProviderOverride(
|
||||||
covariant ChatMetadataProvider provider,
|
covariant ChatMetadataProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.chatId);
|
return call(
|
||||||
|
provider.chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -189,9 +205,13 @@ class ChatMetadataFamily extends Family<AsyncValue<ChatMetadata?>> {
|
|||||||
/// See also [chatMetadata].
|
/// See also [chatMetadata].
|
||||||
class ChatMetadataProvider extends AutoDisposeStreamProvider<ChatMetadata?> {
|
class ChatMetadataProvider extends AutoDisposeStreamProvider<ChatMetadata?> {
|
||||||
/// See also [chatMetadata].
|
/// See also [chatMetadata].
|
||||||
ChatMetadataProvider(String chatId)
|
ChatMetadataProvider(
|
||||||
: this._internal(
|
String chatId,
|
||||||
(ref) => chatMetadata(ref as ChatMetadataRef, chatId),
|
) : this._internal(
|
||||||
|
(ref) => chatMetadata(
|
||||||
|
ref as ChatMetadataRef,
|
||||||
|
chatId,
|
||||||
|
),
|
||||||
from: chatMetadataProvider,
|
from: chatMetadataProvider,
|
||||||
name: r'chatMetadataProvider',
|
name: r'chatMetadataProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -268,6 +288,5 @@ class _ChatMetadataProviderElement
|
|||||||
@override
|
@override
|
||||||
String get chatId => (origin as ChatMetadataProvider).chatId;
|
String get chatId => (origin as ChatMetadataProvider).chatId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ abstract class _$ChatMessageRepository
|
|||||||
extends BuildlessAutoDisposeNotifier<void> {
|
extends BuildlessAutoDisposeNotifier<void> {
|
||||||
late final String chatId;
|
late final String chatId;
|
||||||
|
|
||||||
void build(String chatId);
|
void build(
|
||||||
|
String chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [ChatMessageRepository].
|
/// See also [ChatMessageRepository].
|
||||||
@@ -47,15 +49,21 @@ class ChatMessageRepositoryFamily extends Family<void> {
|
|||||||
const ChatMessageRepositoryFamily();
|
const ChatMessageRepositoryFamily();
|
||||||
|
|
||||||
/// See also [ChatMessageRepository].
|
/// See also [ChatMessageRepository].
|
||||||
ChatMessageRepositoryProvider call(String chatId) {
|
ChatMessageRepositoryProvider call(
|
||||||
return ChatMessageRepositoryProvider(chatId);
|
String chatId,
|
||||||
|
) {
|
||||||
|
return ChatMessageRepositoryProvider(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ChatMessageRepositoryProvider getProviderOverride(
|
ChatMessageRepositoryProvider getProviderOverride(
|
||||||
covariant ChatMessageRepositoryProvider provider,
|
covariant ChatMessageRepositoryProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.chatId);
|
return call(
|
||||||
|
provider.chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -77,8 +85,9 @@ class ChatMessageRepositoryFamily extends Family<void> {
|
|||||||
class ChatMessageRepositoryProvider
|
class ChatMessageRepositoryProvider
|
||||||
extends AutoDisposeNotifierProviderImpl<ChatMessageRepository, void> {
|
extends AutoDisposeNotifierProviderImpl<ChatMessageRepository, void> {
|
||||||
/// See also [ChatMessageRepository].
|
/// See also [ChatMessageRepository].
|
||||||
ChatMessageRepositoryProvider(String chatId)
|
ChatMessageRepositoryProvider(
|
||||||
: this._internal(
|
String chatId,
|
||||||
|
) : this._internal(
|
||||||
() => ChatMessageRepository()..chatId = chatId,
|
() => ChatMessageRepository()..chatId = chatId,
|
||||||
from: chatMessageRepositoryProvider,
|
from: chatMessageRepositoryProvider,
|
||||||
name: r'chatMessageRepositoryProvider',
|
name: r'chatMessageRepositoryProvider',
|
||||||
@@ -105,8 +114,12 @@ class ChatMessageRepositoryProvider
|
|||||||
final String chatId;
|
final String chatId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void runNotifierBuild(covariant ChatMessageRepository notifier) {
|
void runNotifierBuild(
|
||||||
return notifier.build(chatId);
|
covariant ChatMessageRepository notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -160,6 +173,5 @@ class _ChatMessageRepositoryProviderElement
|
|||||||
@override
|
@override
|
||||||
String get chatId => (origin as ChatMessageRepositoryProvider).chatId;
|
String get chatId => (origin as ChatMessageRepositoryProvider).chatId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ abstract class _$ChatMetadataRepository
|
|||||||
extends BuildlessAutoDisposeNotifier<void> {
|
extends BuildlessAutoDisposeNotifier<void> {
|
||||||
late final String chatId;
|
late final String chatId;
|
||||||
|
|
||||||
void build(String chatId);
|
void build(
|
||||||
|
String chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [ChatMetadataRepository].
|
/// See also [ChatMetadataRepository].
|
||||||
@@ -47,15 +49,21 @@ class ChatMetadataRepositoryFamily extends Family<void> {
|
|||||||
const ChatMetadataRepositoryFamily();
|
const ChatMetadataRepositoryFamily();
|
||||||
|
|
||||||
/// See also [ChatMetadataRepository].
|
/// See also [ChatMetadataRepository].
|
||||||
ChatMetadataRepositoryProvider call(String chatId) {
|
ChatMetadataRepositoryProvider call(
|
||||||
return ChatMetadataRepositoryProvider(chatId);
|
String chatId,
|
||||||
|
) {
|
||||||
|
return ChatMetadataRepositoryProvider(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ChatMetadataRepositoryProvider getProviderOverride(
|
ChatMetadataRepositoryProvider getProviderOverride(
|
||||||
covariant ChatMetadataRepositoryProvider provider,
|
covariant ChatMetadataRepositoryProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.chatId);
|
return call(
|
||||||
|
provider.chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -77,8 +85,9 @@ class ChatMetadataRepositoryFamily extends Family<void> {
|
|||||||
class ChatMetadataRepositoryProvider
|
class ChatMetadataRepositoryProvider
|
||||||
extends AutoDisposeNotifierProviderImpl<ChatMetadataRepository, void> {
|
extends AutoDisposeNotifierProviderImpl<ChatMetadataRepository, void> {
|
||||||
/// See also [ChatMetadataRepository].
|
/// See also [ChatMetadataRepository].
|
||||||
ChatMetadataRepositoryProvider(String chatId)
|
ChatMetadataRepositoryProvider(
|
||||||
: this._internal(
|
String chatId,
|
||||||
|
) : this._internal(
|
||||||
() => ChatMetadataRepository()..chatId = chatId,
|
() => ChatMetadataRepository()..chatId = chatId,
|
||||||
from: chatMetadataRepositoryProvider,
|
from: chatMetadataRepositoryProvider,
|
||||||
name: r'chatMetadataRepositoryProvider',
|
name: r'chatMetadataRepositoryProvider',
|
||||||
@@ -105,8 +114,12 @@ class ChatMetadataRepositoryProvider
|
|||||||
final String chatId;
|
final String chatId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void runNotifierBuild(covariant ChatMetadataRepository notifier) {
|
void runNotifierBuild(
|
||||||
return notifier.build(chatId);
|
covariant ChatMetadataRepository notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -160,6 +173,5 @@ class _ChatMetadataRepositoryProviderElement
|
|||||||
@override
|
@override
|
||||||
String get chatId => (origin as ChatMetadataRepositoryProvider).chatId;
|
String get chatId => (origin as ChatMetadataRepositoryProvider).chatId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final bottomSheetControllerProvider =
|
|||||||
AutoDisposeNotifierProvider<BottomSheetController, Sheet?>.internal(
|
AutoDisposeNotifierProvider<BottomSheetController, Sheet?>.internal(
|
||||||
BottomSheetController.new,
|
BottomSheetController.new,
|
||||||
name: r'bottomSheetControllerProvider',
|
name: r'bottomSheetControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$bottomSheetControllerHash,
|
: _$bottomSheetControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -32,8 +31,7 @@ final bottomSheetExtendProvider =
|
|||||||
StreamNotifierProvider<BottomSheetExtend, double>.internal(
|
StreamNotifierProvider<BottomSheetExtend, double>.internal(
|
||||||
BottomSheetExtend.new,
|
BottomSheetExtend.new,
|
||||||
name: r'bottomSheetExtendProvider',
|
name: r'bottomSheetExtendProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$bottomSheetExtendHash,
|
: _$bottomSheetExtendHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final overlayDialogControllerProvider =
|
|||||||
AutoDisposeNotifierProvider<OverlayDialogController, Widget?>.internal(
|
AutoDisposeNotifierProvider<OverlayDialogController, Widget?>.internal(
|
||||||
OverlayDialogController.new,
|
OverlayDialogController.new,
|
||||||
name: r'overlayDialogControllerProvider',
|
name: r'overlayDialogControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$overlayDialogControllerHash,
|
: _$overlayDialogControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
|||||||
this(findResultState: findResultState);
|
this(findResultState: findResultState);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -129,68 +130,55 @@ class _$TabStateCWProxyImpl implements _$TabStateCWProxy {
|
|||||||
}) {
|
}) {
|
||||||
return TabState(
|
return TabState(
|
||||||
id: _value.id,
|
id: _value.id,
|
||||||
contextId:
|
contextId: contextId == const $CopyWithPlaceholder()
|
||||||
contextId == const $CopyWithPlaceholder()
|
|
||||||
? _value.contextId
|
? _value.contextId
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: contextId as String?,
|
: contextId as String?,
|
||||||
url:
|
url: url == const $CopyWithPlaceholder()
|
||||||
url == const $CopyWithPlaceholder()
|
|
||||||
? _value.url
|
? _value.url
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: url as Uri,
|
: url as Uri,
|
||||||
title:
|
title: title == const $CopyWithPlaceholder()
|
||||||
title == const $CopyWithPlaceholder()
|
|
||||||
? _value.title
|
? _value.title
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: title as String,
|
: title as String,
|
||||||
icon:
|
icon: icon == const $CopyWithPlaceholder()
|
||||||
icon == const $CopyWithPlaceholder()
|
|
||||||
? _value.icon
|
? _value.icon
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: icon as EquatableImage?,
|
: icon as EquatableImage?,
|
||||||
thumbnail:
|
thumbnail: thumbnail == const $CopyWithPlaceholder()
|
||||||
thumbnail == const $CopyWithPlaceholder()
|
|
||||||
? _value.thumbnail
|
? _value.thumbnail
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: thumbnail as EquatableImage?,
|
: thumbnail as EquatableImage?,
|
||||||
progress:
|
progress: progress == const $CopyWithPlaceholder()
|
||||||
progress == const $CopyWithPlaceholder()
|
|
||||||
? _value.progress
|
? _value.progress
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: progress as int,
|
: progress as int,
|
||||||
isPrivate:
|
isPrivate: isPrivate == const $CopyWithPlaceholder()
|
||||||
isPrivate == const $CopyWithPlaceholder()
|
|
||||||
? _value.isPrivate
|
? _value.isPrivate
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: isPrivate as bool,
|
: isPrivate as bool,
|
||||||
isFullScreen:
|
isFullScreen: isFullScreen == const $CopyWithPlaceholder()
|
||||||
isFullScreen == const $CopyWithPlaceholder()
|
|
||||||
? _value.isFullScreen
|
? _value.isFullScreen
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: isFullScreen as bool,
|
: isFullScreen as bool,
|
||||||
isLoading:
|
isLoading: isLoading == const $CopyWithPlaceholder()
|
||||||
isLoading == const $CopyWithPlaceholder()
|
|
||||||
? _value.isLoading
|
? _value.isLoading
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: isLoading as bool,
|
: isLoading as bool,
|
||||||
securityInfoState:
|
securityInfoState: securityInfoState == const $CopyWithPlaceholder()
|
||||||
securityInfoState == const $CopyWithPlaceholder()
|
|
||||||
? _value.securityInfoState
|
? _value.securityInfoState
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: securityInfoState as SecurityState,
|
: securityInfoState as SecurityState,
|
||||||
historyState:
|
historyState: historyState == const $CopyWithPlaceholder()
|
||||||
historyState == const $CopyWithPlaceholder()
|
|
||||||
? _value.historyState
|
? _value.historyState
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: historyState as HistoryState,
|
: historyState as HistoryState,
|
||||||
readerableState:
|
readerableState: readerableState == const $CopyWithPlaceholder()
|
||||||
readerableState == const $CopyWithPlaceholder()
|
|
||||||
? _value.readerableState
|
? _value.readerableState
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: readerableState as ReaderableState,
|
: readerableState as ReaderableState,
|
||||||
findResultState:
|
findResultState: findResultState == const $CopyWithPlaceholder()
|
||||||
findResultState == const $CopyWithPlaceholder()
|
|
||||||
? _value.findResultState
|
? _value.findResultState
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: findResultState as FindResultState,
|
: findResultState as FindResultState,
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ class _$WebExtensionStateCWProxyImpl implements _$WebExtensionStateCWProxy {
|
|||||||
WebExtensionState icon(EquatableImage? icon) => this(icon: icon);
|
WebExtensionState icon(EquatableImage? icon) => this(icon: icon);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -85,38 +86,31 @@ class _$WebExtensionStateCWProxyImpl implements _$WebExtensionStateCWProxy {
|
|||||||
Object? icon = const $CopyWithPlaceholder(),
|
Object? icon = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return WebExtensionState(
|
return WebExtensionState(
|
||||||
extensionId:
|
extensionId: extensionId == const $CopyWithPlaceholder()
|
||||||
extensionId == const $CopyWithPlaceholder()
|
|
||||||
? _value.extensionId
|
? _value.extensionId
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: extensionId as String,
|
: extensionId as String,
|
||||||
enabled:
|
enabled: enabled == const $CopyWithPlaceholder()
|
||||||
enabled == const $CopyWithPlaceholder()
|
|
||||||
? _value.enabled
|
? _value.enabled
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: enabled as bool,
|
: enabled as bool,
|
||||||
title:
|
title: title == const $CopyWithPlaceholder()
|
||||||
title == const $CopyWithPlaceholder()
|
|
||||||
? _value.title
|
? _value.title
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: title as String?,
|
: title as String?,
|
||||||
badgeText:
|
badgeText: badgeText == const $CopyWithPlaceholder()
|
||||||
badgeText == const $CopyWithPlaceholder()
|
|
||||||
? _value.badgeText
|
? _value.badgeText
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: badgeText as String?,
|
: badgeText as String?,
|
||||||
badgeTextColor:
|
badgeTextColor: badgeTextColor == const $CopyWithPlaceholder()
|
||||||
badgeTextColor == const $CopyWithPlaceholder()
|
|
||||||
? _value.badgeTextColor
|
? _value.badgeTextColor
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: badgeTextColor as Color?,
|
: badgeTextColor as Color?,
|
||||||
badgeBackgroundColor:
|
badgeBackgroundColor: badgeBackgroundColor == const $CopyWithPlaceholder()
|
||||||
badgeBackgroundColor == const $CopyWithPlaceholder()
|
|
||||||
? _value.badgeBackgroundColor
|
? _value.badgeBackgroundColor
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: badgeBackgroundColor as Color?,
|
: badgeBackgroundColor as Color?,
|
||||||
icon:
|
icon: icon == const $CopyWithPlaceholder()
|
||||||
icon == const $CopyWithPlaceholder()
|
|
||||||
? _value.icon
|
? _value.icon
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: icon as EquatableImage?,
|
: icon as EquatableImage?,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final selectionActionServiceProvider =
|
|||||||
Provider<GeckoSelectionActionService>.internal(
|
Provider<GeckoSelectionActionService>.internal(
|
||||||
selectionActionService,
|
selectionActionService,
|
||||||
name: r'selectionActionServiceProvider',
|
name: r'selectionActionServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$selectionActionServiceHash,
|
: _$selectionActionServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -65,8 +64,7 @@ String _$tabContentServiceHash() => r'd9a991add907ecc138c62790883e59d8e9aa9266';
|
|||||||
final tabContentServiceProvider = Provider<GeckoTabContentService>.internal(
|
final tabContentServiceProvider = Provider<GeckoTabContentService>.internal(
|
||||||
tabContentService,
|
tabContentService,
|
||||||
name: r'tabContentServiceProvider',
|
name: r'tabContentServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$tabContentServiceHash,
|
: _$tabContentServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -85,8 +83,7 @@ final engineSuggestionsServiceProvider =
|
|||||||
Provider<GeckoSuggestionsService>.internal(
|
Provider<GeckoSuggestionsService>.internal(
|
||||||
engineSuggestionsService,
|
engineSuggestionsService,
|
||||||
name: r'engineSuggestionsServiceProvider',
|
name: r'engineSuggestionsServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$engineSuggestionsServiceHash,
|
: _$engineSuggestionsServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -105,8 +102,7 @@ final selectedTabSessionNotifierProvider =
|
|||||||
AutoDisposeProvider<Raw<TabSession>>.internal(
|
AutoDisposeProvider<Raw<TabSession>>.internal(
|
||||||
selectedTabSessionNotifier,
|
selectedTabSessionNotifier,
|
||||||
name: r'selectedTabSessionNotifierProvider',
|
name: r'selectedTabSessionNotifierProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$selectedTabSessionNotifierHash,
|
: _$selectedTabSessionNotifierHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -124,8 +120,7 @@ final engineReadyStateProvider =
|
|||||||
NotifierProvider<EngineReadyState, bool>.internal(
|
NotifierProvider<EngineReadyState, bool>.internal(
|
||||||
EngineReadyState.new,
|
EngineReadyState.new,
|
||||||
name: r'engineReadyStateProvider',
|
name: r'engineReadyStateProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$engineReadyStateHash,
|
: _$engineReadyStateHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ class _SystemHash {
|
|||||||
abstract class _$TabSession extends BuildlessAutoDisposeNotifier<void> {
|
abstract class _$TabSession extends BuildlessAutoDisposeNotifier<void> {
|
||||||
late final String? tabId;
|
late final String? tabId;
|
||||||
|
|
||||||
void build({required String? tabId});
|
void build({
|
||||||
|
required String? tabId,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [TabSession].
|
/// See also [TabSession].
|
||||||
@@ -45,15 +47,21 @@ class TabSessionFamily extends Family<void> {
|
|||||||
const TabSessionFamily();
|
const TabSessionFamily();
|
||||||
|
|
||||||
/// See also [TabSession].
|
/// See also [TabSession].
|
||||||
TabSessionProvider call({required String? tabId}) {
|
TabSessionProvider call({
|
||||||
return TabSessionProvider(tabId: tabId);
|
required String? tabId,
|
||||||
|
}) {
|
||||||
|
return TabSessionProvider(
|
||||||
|
tabId: tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TabSessionProvider getProviderOverride(
|
TabSessionProvider getProviderOverride(
|
||||||
covariant TabSessionProvider provider,
|
covariant TabSessionProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(tabId: provider.tabId);
|
return call(
|
||||||
|
tabId: provider.tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -75,8 +83,9 @@ class TabSessionFamily extends Family<void> {
|
|||||||
class TabSessionProvider
|
class TabSessionProvider
|
||||||
extends AutoDisposeNotifierProviderImpl<TabSession, void> {
|
extends AutoDisposeNotifierProviderImpl<TabSession, void> {
|
||||||
/// See also [TabSession].
|
/// See also [TabSession].
|
||||||
TabSessionProvider({required String? tabId})
|
TabSessionProvider({
|
||||||
: this._internal(
|
required String? tabId,
|
||||||
|
}) : this._internal(
|
||||||
() => TabSession()..tabId = tabId,
|
() => TabSession()..tabId = tabId,
|
||||||
from: tabSessionProvider,
|
from: tabSessionProvider,
|
||||||
name: r'tabSessionProvider',
|
name: r'tabSessionProvider',
|
||||||
@@ -85,7 +94,8 @@ class TabSessionProvider
|
|||||||
? null
|
? null
|
||||||
: _$tabSessionHash,
|
: _$tabSessionHash,
|
||||||
dependencies: TabSessionFamily._dependencies,
|
dependencies: TabSessionFamily._dependencies,
|
||||||
allTransitiveDependencies: TabSessionFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
|
TabSessionFamily._allTransitiveDependencies,
|
||||||
tabId: tabId,
|
tabId: tabId,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -102,8 +112,12 @@ class TabSessionProvider
|
|||||||
final String? tabId;
|
final String? tabId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void runNotifierBuild(covariant TabSession notifier) {
|
void runNotifierBuild(
|
||||||
return notifier.build(tabId: tabId);
|
covariant TabSession notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
tabId: tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -156,6 +170,5 @@ class _TabSessionProviderElement
|
|||||||
@override
|
@override
|
||||||
String? get tabId => (origin as TabSessionProvider).tabId;
|
String? get tabId => (origin as TabSessionProvider).tabId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -39,13 +39,21 @@ class TabStateFamily extends Family<TabState?> {
|
|||||||
const TabStateFamily();
|
const TabStateFamily();
|
||||||
|
|
||||||
/// See also [tabState].
|
/// See also [tabState].
|
||||||
TabStateProvider call(String? tabId) {
|
TabStateProvider call(
|
||||||
return TabStateProvider(tabId);
|
String? tabId,
|
||||||
|
) {
|
||||||
|
return TabStateProvider(
|
||||||
|
tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TabStateProvider getProviderOverride(covariant TabStateProvider provider) {
|
TabStateProvider getProviderOverride(
|
||||||
return call(provider.tabId);
|
covariant TabStateProvider provider,
|
||||||
|
) {
|
||||||
|
return call(
|
||||||
|
provider.tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -66,9 +74,13 @@ class TabStateFamily extends Family<TabState?> {
|
|||||||
/// See also [tabState].
|
/// See also [tabState].
|
||||||
class TabStateProvider extends AutoDisposeProvider<TabState?> {
|
class TabStateProvider extends AutoDisposeProvider<TabState?> {
|
||||||
/// See also [tabState].
|
/// See also [tabState].
|
||||||
TabStateProvider(String? tabId)
|
TabStateProvider(
|
||||||
: this._internal(
|
String? tabId,
|
||||||
(ref) => tabState(ref as TabStateRef, tabId),
|
) : this._internal(
|
||||||
|
(ref) => tabState(
|
||||||
|
ref as TabStateRef,
|
||||||
|
tabId,
|
||||||
|
),
|
||||||
from: tabStateProvider,
|
from: tabStateProvider,
|
||||||
name: r'tabStateProvider',
|
name: r'tabStateProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -93,7 +105,9 @@ class TabStateProvider extends AutoDisposeProvider<TabState?> {
|
|||||||
final String? tabId;
|
final String? tabId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Override overrideWith(TabState? Function(TabStateRef provider) create) {
|
Override overrideWith(
|
||||||
|
TabState? Function(TabStateRef provider) create,
|
||||||
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
origin: this,
|
origin: this,
|
||||||
override: TabStateProvider._internal(
|
override: TabStateProvider._internal(
|
||||||
@@ -149,8 +163,7 @@ String _$selectedTabStateHash() => r'dbd36af7af286bd9d079f30e8e11bbda23bf7728';
|
|||||||
final selectedTabStateProvider = AutoDisposeProvider<TabState?>.internal(
|
final selectedTabStateProvider = AutoDisposeProvider<TabState?>.internal(
|
||||||
selectedTabState,
|
selectedTabState,
|
||||||
name: r'selectedTabStateProvider',
|
name: r'selectedTabStateProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$selectedTabStateHash,
|
: _$selectedTabStateHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -169,9 +182,7 @@ final tabStatesProvider =
|
|||||||
TabStates.new,
|
TabStates.new,
|
||||||
name: r'tabStatesProvider',
|
name: r'tabStatesProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
const bool.fromEnvironment('dart.vm.product') ? null : _$tabStatesHash,
|
||||||
? null
|
|
||||||
: _$tabStatesHash,
|
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ abstract class _$WebExtensionsState
|
|||||||
extends BuildlessNotifier<Map<String, WebExtensionState>> {
|
extends BuildlessNotifier<Map<String, WebExtensionState>> {
|
||||||
late final WebExtensionActionType actionType;
|
late final WebExtensionActionType actionType;
|
||||||
|
|
||||||
Map<String, WebExtensionState> build(WebExtensionActionType actionType);
|
Map<String, WebExtensionState> build(
|
||||||
|
WebExtensionActionType actionType,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [WebExtensionsState].
|
/// See also [WebExtensionsState].
|
||||||
@@ -47,15 +49,21 @@ class WebExtensionsStateFamily extends Family<Map<String, WebExtensionState>> {
|
|||||||
const WebExtensionsStateFamily();
|
const WebExtensionsStateFamily();
|
||||||
|
|
||||||
/// See also [WebExtensionsState].
|
/// See also [WebExtensionsState].
|
||||||
WebExtensionsStateProvider call(WebExtensionActionType actionType) {
|
WebExtensionsStateProvider call(
|
||||||
return WebExtensionsStateProvider(actionType);
|
WebExtensionActionType actionType,
|
||||||
|
) {
|
||||||
|
return WebExtensionsStateProvider(
|
||||||
|
actionType,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
WebExtensionsStateProvider getProviderOverride(
|
WebExtensionsStateProvider getProviderOverride(
|
||||||
covariant WebExtensionsStateProvider provider,
|
covariant WebExtensionsStateProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.actionType);
|
return call(
|
||||||
|
provider.actionType,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -74,15 +82,12 @@ class WebExtensionsStateFamily extends Family<Map<String, WebExtensionState>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// See also [WebExtensionsState].
|
/// See also [WebExtensionsState].
|
||||||
class WebExtensionsStateProvider
|
class WebExtensionsStateProvider extends NotifierProviderImpl<
|
||||||
extends
|
WebExtensionsState, Map<String, WebExtensionState>> {
|
||||||
NotifierProviderImpl<
|
|
||||||
WebExtensionsState,
|
|
||||||
Map<String, WebExtensionState>
|
|
||||||
> {
|
|
||||||
/// See also [WebExtensionsState].
|
/// See also [WebExtensionsState].
|
||||||
WebExtensionsStateProvider(WebExtensionActionType actionType)
|
WebExtensionsStateProvider(
|
||||||
: this._internal(
|
WebExtensionActionType actionType,
|
||||||
|
) : this._internal(
|
||||||
() => WebExtensionsState()..actionType = actionType,
|
() => WebExtensionsState()..actionType = actionType,
|
||||||
from: webExtensionsStateProvider,
|
from: webExtensionsStateProvider,
|
||||||
name: r'webExtensionsStateProvider',
|
name: r'webExtensionsStateProvider',
|
||||||
@@ -112,7 +117,9 @@ class WebExtensionsStateProvider
|
|||||||
Map<String, WebExtensionState> runNotifierBuild(
|
Map<String, WebExtensionState> runNotifierBuild(
|
||||||
covariant WebExtensionsState notifier,
|
covariant WebExtensionsState notifier,
|
||||||
) {
|
) {
|
||||||
return notifier.build(actionType);
|
return notifier.build(
|
||||||
|
actionType,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -160,19 +167,14 @@ mixin WebExtensionsStateRef
|
|||||||
WebExtensionActionType get actionType;
|
WebExtensionActionType get actionType;
|
||||||
}
|
}
|
||||||
|
|
||||||
class _WebExtensionsStateProviderElement
|
class _WebExtensionsStateProviderElement extends NotifierProviderElement<
|
||||||
extends
|
|
||||||
NotifierProviderElement<
|
|
||||||
WebExtensionsState,
|
WebExtensionsState,
|
||||||
Map<String, WebExtensionState>
|
Map<String, WebExtensionState>> with WebExtensionsStateRef {
|
||||||
>
|
|
||||||
with WebExtensionsStateRef {
|
|
||||||
_WebExtensionsStateProviderElement(super.provider);
|
_WebExtensionsStateProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
WebExtensionActionType get actionType =>
|
WebExtensionActionType get actionType =>
|
||||||
(origin as WebExtensionsStateProvider).actionType;
|
(origin as WebExtensionsStateProvider).actionType;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ String _$tabRepositoryHash() => r'85af29fa18ea5a4a67fbffbb9478c801dafddac2';
|
|||||||
final tabRepositoryProvider = NotifierProvider<TabRepository, void>.internal(
|
final tabRepositoryProvider = NotifierProvider<TabRepository, void>.internal(
|
||||||
TabRepository.new,
|
TabRepository.new,
|
||||||
name: r'tabRepositoryProvider',
|
name: r'tabRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$tabRepositoryHash,
|
: _$tabRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -39,15 +39,21 @@ class AvailableTabIdsFamily extends Family<EquatableCollection<List<String>>> {
|
|||||||
const AvailableTabIdsFamily();
|
const AvailableTabIdsFamily();
|
||||||
|
|
||||||
/// See also [availableTabIds].
|
/// See also [availableTabIds].
|
||||||
AvailableTabIdsProvider call(ContainerFilter containerFilter) {
|
AvailableTabIdsProvider call(
|
||||||
return AvailableTabIdsProvider(containerFilter);
|
ContainerFilter containerFilter,
|
||||||
|
) {
|
||||||
|
return AvailableTabIdsProvider(
|
||||||
|
containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AvailableTabIdsProvider getProviderOverride(
|
AvailableTabIdsProvider getProviderOverride(
|
||||||
covariant AvailableTabIdsProvider provider,
|
covariant AvailableTabIdsProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.containerFilter);
|
return call(
|
||||||
|
provider.containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -69,9 +75,13 @@ class AvailableTabIdsFamily extends Family<EquatableCollection<List<String>>> {
|
|||||||
class AvailableTabIdsProvider
|
class AvailableTabIdsProvider
|
||||||
extends AutoDisposeProvider<EquatableCollection<List<String>>> {
|
extends AutoDisposeProvider<EquatableCollection<List<String>>> {
|
||||||
/// See also [availableTabIds].
|
/// See also [availableTabIds].
|
||||||
AvailableTabIdsProvider(ContainerFilter containerFilter)
|
AvailableTabIdsProvider(
|
||||||
: this._internal(
|
ContainerFilter containerFilter,
|
||||||
(ref) => availableTabIds(ref as AvailableTabIdsRef, containerFilter),
|
) : this._internal(
|
||||||
|
(ref) => availableTabIds(
|
||||||
|
ref as AvailableTabIdsRef,
|
||||||
|
containerFilter,
|
||||||
|
),
|
||||||
from: availableTabIdsProvider,
|
from: availableTabIdsProvider,
|
||||||
name: r'availableTabIdsProvider',
|
name: r'availableTabIdsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -168,15 +178,21 @@ class AvailableTabStatesFamily
|
|||||||
const AvailableTabStatesFamily();
|
const AvailableTabStatesFamily();
|
||||||
|
|
||||||
/// See also [availableTabStates].
|
/// See also [availableTabStates].
|
||||||
AvailableTabStatesProvider call(ContainerFilter containerFilter) {
|
AvailableTabStatesProvider call(
|
||||||
return AvailableTabStatesProvider(containerFilter);
|
ContainerFilter containerFilter,
|
||||||
|
) {
|
||||||
|
return AvailableTabStatesProvider(
|
||||||
|
containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AvailableTabStatesProvider getProviderOverride(
|
AvailableTabStatesProvider getProviderOverride(
|
||||||
covariant AvailableTabStatesProvider provider,
|
covariant AvailableTabStatesProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.containerFilter);
|
return call(
|
||||||
|
provider.containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -198,10 +214,13 @@ class AvailableTabStatesFamily
|
|||||||
class AvailableTabStatesProvider
|
class AvailableTabStatesProvider
|
||||||
extends AutoDisposeProvider<EquatableCollection<Map<String, TabState>>> {
|
extends AutoDisposeProvider<EquatableCollection<Map<String, TabState>>> {
|
||||||
/// See also [availableTabStates].
|
/// See also [availableTabStates].
|
||||||
AvailableTabStatesProvider(ContainerFilter containerFilter)
|
AvailableTabStatesProvider(
|
||||||
: this._internal(
|
ContainerFilter containerFilter,
|
||||||
(ref) =>
|
) : this._internal(
|
||||||
availableTabStates(ref as AvailableTabStatesRef, containerFilter),
|
(ref) => availableTabStates(
|
||||||
|
ref as AvailableTabStatesRef,
|
||||||
|
containerFilter,
|
||||||
|
),
|
||||||
from: availableTabStatesProvider,
|
from: availableTabStatesProvider,
|
||||||
name: r'availableTabStatesProvider',
|
name: r'availableTabStatesProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -229,8 +248,7 @@ class AvailableTabStatesProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
EquatableCollection<Map<String, TabState>> Function(
|
EquatableCollection<Map<String, TabState>> Function(
|
||||||
AvailableTabStatesRef provider,
|
AvailableTabStatesRef provider)
|
||||||
)
|
|
||||||
create,
|
create,
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
@@ -276,10 +294,8 @@ mixin AvailableTabStatesRef
|
|||||||
ContainerFilter get containerFilter;
|
ContainerFilter get containerFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
class _AvailableTabStatesProviderElement
|
class _AvailableTabStatesProviderElement extends AutoDisposeProviderElement<
|
||||||
extends
|
EquatableCollection<Map<String, TabState>>> with AvailableTabStatesRef {
|
||||||
AutoDisposeProviderElement<EquatableCollection<Map<String, TabState>>>
|
|
||||||
with AvailableTabStatesRef {
|
|
||||||
_AvailableTabStatesProviderElement(super.provider);
|
_AvailableTabStatesProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -305,14 +321,20 @@ class SeamlessFilteredTabIdsFamily
|
|||||||
TabSearchPartition searchPartition,
|
TabSearchPartition searchPartition,
|
||||||
ContainerFilter containerFilter,
|
ContainerFilter containerFilter,
|
||||||
) {
|
) {
|
||||||
return SeamlessFilteredTabIdsProvider(searchPartition, containerFilter);
|
return SeamlessFilteredTabIdsProvider(
|
||||||
|
searchPartition,
|
||||||
|
containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
SeamlessFilteredTabIdsProvider getProviderOverride(
|
SeamlessFilteredTabIdsProvider getProviderOverride(
|
||||||
covariant SeamlessFilteredTabIdsProvider provider,
|
covariant SeamlessFilteredTabIdsProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.searchPartition, provider.containerFilter);
|
return call(
|
||||||
|
provider.searchPartition,
|
||||||
|
provider.containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -373,8 +395,7 @@ class SeamlessFilteredTabIdsProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
EquatableCollection<List<String>> Function(
|
EquatableCollection<List<String>> Function(
|
||||||
SeamlessFilteredTabIdsRef provider,
|
SeamlessFilteredTabIdsRef provider)
|
||||||
)
|
|
||||||
create,
|
create,
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
@@ -467,7 +488,10 @@ class SeamlessFilteredTabPreviewsFamily
|
|||||||
SeamlessFilteredTabPreviewsProvider getProviderOverride(
|
SeamlessFilteredTabPreviewsProvider getProviderOverride(
|
||||||
covariant SeamlessFilteredTabPreviewsProvider provider,
|
covariant SeamlessFilteredTabPreviewsProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.searchPartition, provider.containerFilter);
|
return call(
|
||||||
|
provider.searchPartition,
|
||||||
|
provider.containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -528,8 +552,7 @@ class SeamlessFilteredTabPreviewsProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
EquatableCollection<List<TabPreview>> Function(
|
EquatableCollection<List<TabPreview>> Function(
|
||||||
SeamlessFilteredTabPreviewsRef provider,
|
SeamlessFilteredTabPreviewsRef provider)
|
||||||
)
|
|
||||||
create,
|
create,
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
@@ -600,7 +623,9 @@ String _$selectedBangTriggerHash() =>
|
|||||||
abstract class _$SelectedBangTrigger extends BuildlessNotifier<String?> {
|
abstract class _$SelectedBangTrigger extends BuildlessNotifier<String?> {
|
||||||
late final String? domain;
|
late final String? domain;
|
||||||
|
|
||||||
String? build({String? domain});
|
String? build({
|
||||||
|
String? domain,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [SelectedBangTrigger].
|
/// See also [SelectedBangTrigger].
|
||||||
@@ -613,15 +638,21 @@ class SelectedBangTriggerFamily extends Family<String?> {
|
|||||||
const SelectedBangTriggerFamily();
|
const SelectedBangTriggerFamily();
|
||||||
|
|
||||||
/// See also [SelectedBangTrigger].
|
/// See also [SelectedBangTrigger].
|
||||||
SelectedBangTriggerProvider call({String? domain}) {
|
SelectedBangTriggerProvider call({
|
||||||
return SelectedBangTriggerProvider(domain: domain);
|
String? domain,
|
||||||
|
}) {
|
||||||
|
return SelectedBangTriggerProvider(
|
||||||
|
domain: domain,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
SelectedBangTriggerProvider getProviderOverride(
|
SelectedBangTriggerProvider getProviderOverride(
|
||||||
covariant SelectedBangTriggerProvider provider,
|
covariant SelectedBangTriggerProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(domain: provider.domain);
|
return call(
|
||||||
|
domain: provider.domain,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -643,8 +674,9 @@ class SelectedBangTriggerFamily extends Family<String?> {
|
|||||||
class SelectedBangTriggerProvider
|
class SelectedBangTriggerProvider
|
||||||
extends NotifierProviderImpl<SelectedBangTrigger, String?> {
|
extends NotifierProviderImpl<SelectedBangTrigger, String?> {
|
||||||
/// See also [SelectedBangTrigger].
|
/// See also [SelectedBangTrigger].
|
||||||
SelectedBangTriggerProvider({String? domain})
|
SelectedBangTriggerProvider({
|
||||||
: this._internal(
|
String? domain,
|
||||||
|
}) : this._internal(
|
||||||
() => SelectedBangTrigger()..domain = domain,
|
() => SelectedBangTrigger()..domain = domain,
|
||||||
from: selectedBangTriggerProvider,
|
from: selectedBangTriggerProvider,
|
||||||
name: r'selectedBangTriggerProvider',
|
name: r'selectedBangTriggerProvider',
|
||||||
@@ -671,8 +703,12 @@ class SelectedBangTriggerProvider
|
|||||||
final String? domain;
|
final String? domain;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String? runNotifierBuild(covariant SelectedBangTrigger notifier) {
|
String? runNotifierBuild(
|
||||||
return notifier.build(domain: domain);
|
covariant SelectedBangTrigger notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
domain: domain,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -732,7 +768,9 @@ abstract class _$SelectedBangData
|
|||||||
extends BuildlessAutoDisposeNotifier<BangData?> {
|
extends BuildlessAutoDisposeNotifier<BangData?> {
|
||||||
late final String? domain;
|
late final String? domain;
|
||||||
|
|
||||||
BangData? build({String? domain});
|
BangData? build({
|
||||||
|
String? domain,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [SelectedBangData].
|
/// See also [SelectedBangData].
|
||||||
@@ -745,15 +783,21 @@ class SelectedBangDataFamily extends Family<BangData?> {
|
|||||||
const SelectedBangDataFamily();
|
const SelectedBangDataFamily();
|
||||||
|
|
||||||
/// See also [SelectedBangData].
|
/// See also [SelectedBangData].
|
||||||
SelectedBangDataProvider call({String? domain}) {
|
SelectedBangDataProvider call({
|
||||||
return SelectedBangDataProvider(domain: domain);
|
String? domain,
|
||||||
|
}) {
|
||||||
|
return SelectedBangDataProvider(
|
||||||
|
domain: domain,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
SelectedBangDataProvider getProviderOverride(
|
SelectedBangDataProvider getProviderOverride(
|
||||||
covariant SelectedBangDataProvider provider,
|
covariant SelectedBangDataProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(domain: provider.domain);
|
return call(
|
||||||
|
domain: provider.domain,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -775,8 +819,9 @@ class SelectedBangDataFamily extends Family<BangData?> {
|
|||||||
class SelectedBangDataProvider
|
class SelectedBangDataProvider
|
||||||
extends AutoDisposeNotifierProviderImpl<SelectedBangData, BangData?> {
|
extends AutoDisposeNotifierProviderImpl<SelectedBangData, BangData?> {
|
||||||
/// See also [SelectedBangData].
|
/// See also [SelectedBangData].
|
||||||
SelectedBangDataProvider({String? domain})
|
SelectedBangDataProvider({
|
||||||
: this._internal(
|
String? domain,
|
||||||
|
}) : this._internal(
|
||||||
() => SelectedBangData()..domain = domain,
|
() => SelectedBangData()..domain = domain,
|
||||||
from: selectedBangDataProvider,
|
from: selectedBangDataProvider,
|
||||||
name: r'selectedBangDataProvider',
|
name: r'selectedBangDataProvider',
|
||||||
@@ -803,8 +848,12 @@ class SelectedBangDataProvider
|
|||||||
final String? domain;
|
final String? domain;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
BangData? runNotifierBuild(covariant SelectedBangData notifier) {
|
BangData? runNotifierBuild(
|
||||||
return notifier.build(domain: domain);
|
covariant SelectedBangData notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
domain: domain,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -868,8 +917,7 @@ final lastUsedAssistantModeProvider =
|
|||||||
NotifierProvider<LastUsedAssistantMode, AssistantMode>.internal(
|
NotifierProvider<LastUsedAssistantMode, AssistantMode>.internal(
|
||||||
LastUsedAssistantMode.new,
|
LastUsedAssistantMode.new,
|
||||||
name: r'lastUsedAssistantModeProvider',
|
name: r'lastUsedAssistantModeProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$lastUsedAssistantModeHash,
|
: _$lastUsedAssistantModeHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -886,8 +934,7 @@ final activeResearchVariantProvider =
|
|||||||
NotifierProvider<ActiveResearchVariant, ResearchVariant>.internal(
|
NotifierProvider<ActiveResearchVariant, ResearchVariant>.internal(
|
||||||
ActiveResearchVariant.new,
|
ActiveResearchVariant.new,
|
||||||
name: r'activeResearchVariantProvider',
|
name: r'activeResearchVariantProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$activeResearchVariantHash,
|
: _$activeResearchVariantHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -903,8 +950,7 @@ final activeChatModelProvider =
|
|||||||
NotifierProvider<ActiveChatModel, ChatModel>.internal(
|
NotifierProvider<ActiveChatModel, ChatModel>.internal(
|
||||||
ActiveChatModel.new,
|
ActiveChatModel.new,
|
||||||
name: r'activeChatModelProvider',
|
name: r'activeChatModelProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$activeChatModelHash,
|
: _$activeChatModelHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -919,8 +965,7 @@ String _$showFindInPageHash() => r'7ee5703f7d0c7e8a8dd6b0849d7b1e0a41fe24d9';
|
|||||||
final showFindInPageProvider = NotifierProvider<ShowFindInPage, bool>.internal(
|
final showFindInPageProvider = NotifierProvider<ShowFindInPage, bool>.internal(
|
||||||
ShowFindInPage.new,
|
ShowFindInPage.new,
|
||||||
name: r'showFindInPageProvider',
|
name: r'showFindInPageProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$showFindInPageHash,
|
: _$showFindInPageHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final createTabStreamProvider =
|
|||||||
AutoDisposeStreamNotifierProvider<CreateTabStream, CreateTabSheet>.internal(
|
AutoDisposeStreamNotifierProvider<CreateTabStream, CreateTabSheet>.internal(
|
||||||
CreateTabStream.new,
|
CreateTabStream.new,
|
||||||
name: r'createTabStreamProvider',
|
name: r'createTabStreamProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$createTabStreamHash,
|
: _$createTabStreamHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@ final deleteBrowserDataServiceProvider =
|
|||||||
AutoDisposeNotifierProvider<DeleteBrowserDataService, void>.internal(
|
AutoDisposeNotifierProvider<DeleteBrowserDataService, void>.internal(
|
||||||
DeleteBrowserDataService.new,
|
DeleteBrowserDataService.new,
|
||||||
name: r'deleteBrowserDataServiceProvider',
|
name: r'deleteBrowserDataServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$deleteBrowserDataServiceHash,
|
: _$deleteBrowserDataServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@ final engineSettingsReplicationServiceProvider =
|
|||||||
NotifierProvider<EngineSettingsReplicationService, void>.internal(
|
NotifierProvider<EngineSettingsReplicationService, void>.internal(
|
||||||
EngineSettingsReplicationService.new,
|
EngineSettingsReplicationService.new,
|
||||||
name: r'engineSettingsReplicationServiceProvider',
|
name: r'engineSettingsReplicationServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$engineSettingsReplicationServiceHash,
|
: _$engineSettingsReplicationServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@ final proxySettingsReplucationProvider =
|
|||||||
NotifierProvider<ProxySettingsReplucation, void>.internal(
|
NotifierProvider<ProxySettingsReplucation, void>.internal(
|
||||||
ProxySettingsReplucation.new,
|
ProxySettingsReplucation.new,
|
||||||
name: r'proxySettingsReplucationProvider',
|
name: r'proxySettingsReplucationProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$proxySettingsReplucationHash,
|
: _$proxySettingsReplucationHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+21
-9
@@ -34,7 +34,9 @@ abstract class _$FindInPageRepository
|
|||||||
extends BuildlessAutoDisposeNotifier<void> {
|
extends BuildlessAutoDisposeNotifier<void> {
|
||||||
late final String? tabId;
|
late final String? tabId;
|
||||||
|
|
||||||
void build(String? tabId);
|
void build(
|
||||||
|
String? tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [FindInPageRepository].
|
/// See also [FindInPageRepository].
|
||||||
@@ -47,15 +49,21 @@ class FindInPageRepositoryFamily extends Family<void> {
|
|||||||
const FindInPageRepositoryFamily();
|
const FindInPageRepositoryFamily();
|
||||||
|
|
||||||
/// See also [FindInPageRepository].
|
/// See also [FindInPageRepository].
|
||||||
FindInPageRepositoryProvider call(String? tabId) {
|
FindInPageRepositoryProvider call(
|
||||||
return FindInPageRepositoryProvider(tabId);
|
String? tabId,
|
||||||
|
) {
|
||||||
|
return FindInPageRepositoryProvider(
|
||||||
|
tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
FindInPageRepositoryProvider getProviderOverride(
|
FindInPageRepositoryProvider getProviderOverride(
|
||||||
covariant FindInPageRepositoryProvider provider,
|
covariant FindInPageRepositoryProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.tabId);
|
return call(
|
||||||
|
provider.tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -77,8 +85,9 @@ class FindInPageRepositoryFamily extends Family<void> {
|
|||||||
class FindInPageRepositoryProvider
|
class FindInPageRepositoryProvider
|
||||||
extends AutoDisposeNotifierProviderImpl<FindInPageRepository, void> {
|
extends AutoDisposeNotifierProviderImpl<FindInPageRepository, void> {
|
||||||
/// See also [FindInPageRepository].
|
/// See also [FindInPageRepository].
|
||||||
FindInPageRepositoryProvider(String? tabId)
|
FindInPageRepositoryProvider(
|
||||||
: this._internal(
|
String? tabId,
|
||||||
|
) : this._internal(
|
||||||
() => FindInPageRepository()..tabId = tabId,
|
() => FindInPageRepository()..tabId = tabId,
|
||||||
from: findInPageRepositoryProvider,
|
from: findInPageRepositoryProvider,
|
||||||
name: r'findInPageRepositoryProvider',
|
name: r'findInPageRepositoryProvider',
|
||||||
@@ -105,8 +114,12 @@ class FindInPageRepositoryProvider
|
|||||||
final String? tabId;
|
final String? tabId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void runNotifierBuild(covariant FindInPageRepository notifier) {
|
void runNotifierBuild(
|
||||||
return notifier.build(tabId);
|
covariant FindInPageRepository notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
tabId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -160,6 +173,5 @@ class _FindInPageRepositoryProviderElement
|
|||||||
@override
|
@override
|
||||||
String? get tabId => (origin as FindInPageRepositoryProvider).tabId;
|
String? get tabId => (origin as FindInPageRepositoryProvider).tabId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@ final findInPageVisibilityControllerProvider =
|
|||||||
AutoDisposeNotifierProvider<FindInPageVisibilityController, bool>.internal(
|
AutoDisposeNotifierProvider<FindInPageVisibilityController, bool>.internal(
|
||||||
FindInPageVisibilityController.new,
|
FindInPageVisibilityController.new,
|
||||||
name: r'findInPageVisibilityControllerProvider',
|
name: r'findInPageVisibilityControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$findInPageVisibilityControllerHash,
|
: _$findInPageVisibilityControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+10
-16
@@ -39,6 +39,7 @@ class _$PreferenceSettingGroupCWProxyImpl
|
|||||||
this(settings: settings);
|
this(settings: settings);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -50,13 +51,11 @@ class _$PreferenceSettingGroupCWProxyImpl
|
|||||||
Object? settings = const $CopyWithPlaceholder(),
|
Object? settings = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return PreferenceSettingGroup(
|
return PreferenceSettingGroup(
|
||||||
description:
|
description: description == const $CopyWithPlaceholder()
|
||||||
description == const $CopyWithPlaceholder()
|
|
||||||
? _value.description
|
? _value.description
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: description as String?,
|
: description as String?,
|
||||||
settings:
|
settings: settings == const $CopyWithPlaceholder()
|
||||||
settings == const $CopyWithPlaceholder()
|
|
||||||
? _value.settings
|
? _value.settings
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: settings as Map<String, PreferenceSetting>,
|
: settings as Map<String, PreferenceSetting>,
|
||||||
@@ -129,6 +128,7 @@ class _$PreferenceSettingCWProxyImpl implements _$PreferenceSettingCWProxy {
|
|||||||
this(shouldBeDefault: shouldBeDefault);
|
this(shouldBeDefault: shouldBeDefault);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -144,33 +144,27 @@ class _$PreferenceSettingCWProxyImpl implements _$PreferenceSettingCWProxy {
|
|||||||
Object? shouldBeDefault = const $CopyWithPlaceholder(),
|
Object? shouldBeDefault = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return PreferenceSetting(
|
return PreferenceSetting(
|
||||||
value:
|
value: value == const $CopyWithPlaceholder()
|
||||||
value == const $CopyWithPlaceholder()
|
|
||||||
? _value.value
|
? _value.value
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: value as Object,
|
: value as Object,
|
||||||
title:
|
title: title == const $CopyWithPlaceholder()
|
||||||
title == const $CopyWithPlaceholder()
|
|
||||||
? _value.title
|
? _value.title
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: title as String?,
|
: title as String?,
|
||||||
description:
|
description: description == const $CopyWithPlaceholder()
|
||||||
description == const $CopyWithPlaceholder()
|
|
||||||
? _value.description
|
? _value.description
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: description as String?,
|
: description as String?,
|
||||||
actualValue:
|
actualValue: actualValue == const $CopyWithPlaceholder()
|
||||||
actualValue == const $CopyWithPlaceholder()
|
|
||||||
? _value.actualValue
|
? _value.actualValue
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: actualValue as Object?,
|
: actualValue as Object?,
|
||||||
requireUserOptIn:
|
requireUserOptIn: requireUserOptIn == const $CopyWithPlaceholder()
|
||||||
requireUserOptIn == const $CopyWithPlaceholder()
|
|
||||||
? _value.requireUserOptIn
|
? _value.requireUserOptIn
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: requireUserOptIn as bool,
|
: requireUserOptIn as bool,
|
||||||
shouldBeDefault:
|
shouldBeDefault: shouldBeDefault == const $CopyWithPlaceholder()
|
||||||
shouldBeDefault == const $CopyWithPlaceholder()
|
|
||||||
? _value.shouldBeDefault
|
? _value.shouldBeDefault
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: shouldBeDefault as bool,
|
: shouldBeDefault as bool,
|
||||||
|
|||||||
+72
-73
@@ -15,8 +15,7 @@ final _preferenceSettingContentProvider =
|
|||||||
FutureProvider<Map<String, dynamic>>.internal(
|
FutureProvider<Map<String, dynamic>>.internal(
|
||||||
_preferenceSettingContent,
|
_preferenceSettingContent,
|
||||||
name: r'_preferenceSettingContentProvider',
|
name: r'_preferenceSettingContentProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$preferenceSettingContentHash,
|
: _$preferenceSettingContentHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -61,15 +60,21 @@ class _PreferenceSettingGroupsFamily
|
|||||||
const _PreferenceSettingGroupsFamily();
|
const _PreferenceSettingGroupsFamily();
|
||||||
|
|
||||||
/// See also [_preferenceSettingGroups].
|
/// See also [_preferenceSettingGroups].
|
||||||
_PreferenceSettingGroupsProvider call(PreferencePartition partition) {
|
_PreferenceSettingGroupsProvider call(
|
||||||
return _PreferenceSettingGroupsProvider(partition);
|
PreferencePartition partition,
|
||||||
|
) {
|
||||||
|
return _PreferenceSettingGroupsProvider(
|
||||||
|
partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_PreferenceSettingGroupsProvider getProviderOverride(
|
_PreferenceSettingGroupsProvider getProviderOverride(
|
||||||
covariant _PreferenceSettingGroupsProvider provider,
|
covariant _PreferenceSettingGroupsProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.partition);
|
return call(
|
||||||
|
provider.partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -91,8 +96,9 @@ class _PreferenceSettingGroupsFamily
|
|||||||
class _PreferenceSettingGroupsProvider
|
class _PreferenceSettingGroupsProvider
|
||||||
extends FutureProvider<Map<String, PreferenceSettingGroup>> {
|
extends FutureProvider<Map<String, PreferenceSettingGroup>> {
|
||||||
/// See also [_preferenceSettingGroups].
|
/// See also [_preferenceSettingGroups].
|
||||||
_PreferenceSettingGroupsProvider(PreferencePartition partition)
|
_PreferenceSettingGroupsProvider(
|
||||||
: this._internal(
|
PreferencePartition partition,
|
||||||
|
) : this._internal(
|
||||||
(ref) => _preferenceSettingGroups(
|
(ref) => _preferenceSettingGroups(
|
||||||
ref as _PreferenceSettingGroupsRef,
|
ref as _PreferenceSettingGroupsRef,
|
||||||
partition,
|
partition,
|
||||||
@@ -124,8 +130,7 @@ class _PreferenceSettingGroupsProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
FutureOr<Map<String, PreferenceSettingGroup>> Function(
|
FutureOr<Map<String, PreferenceSettingGroup>> Function(
|
||||||
_PreferenceSettingGroupsRef provider,
|
_PreferenceSettingGroupsRef provider)
|
||||||
)
|
|
||||||
create,
|
create,
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
@@ -198,14 +203,20 @@ class _PreferenceSettingGroupFamily
|
|||||||
PreferencePartition partition,
|
PreferencePartition partition,
|
||||||
String groupName,
|
String groupName,
|
||||||
) {
|
) {
|
||||||
return _PreferenceSettingGroupProvider(partition, groupName);
|
return _PreferenceSettingGroupProvider(
|
||||||
|
partition,
|
||||||
|
groupName,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_PreferenceSettingGroupProvider getProviderOverride(
|
_PreferenceSettingGroupProvider getProviderOverride(
|
||||||
covariant _PreferenceSettingGroupProvider provider,
|
covariant _PreferenceSettingGroupProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.partition, provider.groupName);
|
return call(
|
||||||
|
provider.partition,
|
||||||
|
provider.groupName,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -266,8 +277,7 @@ class _PreferenceSettingGroupProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
FutureOr<PreferenceSettingGroup> Function(
|
FutureOr<PreferenceSettingGroup> Function(
|
||||||
_PreferenceSettingGroupRef provider,
|
_PreferenceSettingGroupRef provider)
|
||||||
)
|
|
||||||
create,
|
create,
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
@@ -335,29 +345,24 @@ String _$preferenceRepositoryHash() =>
|
|||||||
/// See also [_PreferenceRepository].
|
/// See also [_PreferenceRepository].
|
||||||
@ProviderFor(_PreferenceRepository)
|
@ProviderFor(_PreferenceRepository)
|
||||||
final _preferenceRepositoryProvider = AutoDisposeNotifierProvider<
|
final _preferenceRepositoryProvider = AutoDisposeNotifierProvider<
|
||||||
_PreferenceRepository,
|
_PreferenceRepository, Raw<Stream<Map<String, Object>>>>.internal(
|
||||||
Raw<Stream<Map<String, Object>>>
|
|
||||||
>.internal(
|
|
||||||
_PreferenceRepository.new,
|
_PreferenceRepository.new,
|
||||||
name: r'_preferenceRepositoryProvider',
|
name: r'_preferenceRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$preferenceRepositoryHash,
|
: _$preferenceRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef _$PreferenceRepository =
|
typedef _$PreferenceRepository
|
||||||
AutoDisposeNotifier<Raw<Stream<Map<String, Object>>>>;
|
= AutoDisposeNotifier<Raw<Stream<Map<String, Object>>>>;
|
||||||
String _$unifiedPreferenceSettingsRepositoryHash() =>
|
String _$unifiedPreferenceSettingsRepositoryHash() =>
|
||||||
r'35aa16ffa7aa1453c8331ed7470ef85a68d27178';
|
r'35aa16ffa7aa1453c8331ed7470ef85a68d27178';
|
||||||
|
|
||||||
abstract class _$UnifiedPreferenceSettingsRepository
|
abstract class _$UnifiedPreferenceSettingsRepository
|
||||||
extends
|
extends BuildlessAutoDisposeStreamNotifier<
|
||||||
BuildlessAutoDisposeStreamNotifier<
|
Map<String, PreferenceSettingGroup>> {
|
||||||
Map<String, PreferenceSettingGroup>
|
|
||||||
> {
|
|
||||||
late final PreferencePartition partition;
|
late final PreferencePartition partition;
|
||||||
|
|
||||||
Stream<Map<String, PreferenceSettingGroup>> build(
|
Stream<Map<String, PreferenceSettingGroup>> build(
|
||||||
@@ -380,14 +385,18 @@ class UnifiedPreferenceSettingsRepositoryFamily
|
|||||||
UnifiedPreferenceSettingsRepositoryProvider call(
|
UnifiedPreferenceSettingsRepositoryProvider call(
|
||||||
PreferencePartition partition,
|
PreferencePartition partition,
|
||||||
) {
|
) {
|
||||||
return UnifiedPreferenceSettingsRepositoryProvider(partition);
|
return UnifiedPreferenceSettingsRepositoryProvider(
|
||||||
|
partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
UnifiedPreferenceSettingsRepositoryProvider getProviderOverride(
|
UnifiedPreferenceSettingsRepositoryProvider getProviderOverride(
|
||||||
covariant UnifiedPreferenceSettingsRepositoryProvider provider,
|
covariant UnifiedPreferenceSettingsRepositoryProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.partition);
|
return call(
|
||||||
|
provider.partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -407,14 +416,13 @@ class UnifiedPreferenceSettingsRepositoryFamily
|
|||||||
|
|
||||||
/// See also [UnifiedPreferenceSettingsRepository].
|
/// See also [UnifiedPreferenceSettingsRepository].
|
||||||
class UnifiedPreferenceSettingsRepositoryProvider
|
class UnifiedPreferenceSettingsRepositoryProvider
|
||||||
extends
|
extends AutoDisposeStreamNotifierProviderImpl<
|
||||||
AutoDisposeStreamNotifierProviderImpl<
|
|
||||||
UnifiedPreferenceSettingsRepository,
|
UnifiedPreferenceSettingsRepository,
|
||||||
Map<String, PreferenceSettingGroup>
|
Map<String, PreferenceSettingGroup>> {
|
||||||
> {
|
|
||||||
/// See also [UnifiedPreferenceSettingsRepository].
|
/// See also [UnifiedPreferenceSettingsRepository].
|
||||||
UnifiedPreferenceSettingsRepositoryProvider(PreferencePartition partition)
|
UnifiedPreferenceSettingsRepositoryProvider(
|
||||||
: this._internal(
|
PreferencePartition partition,
|
||||||
|
) : this._internal(
|
||||||
() => UnifiedPreferenceSettingsRepository()..partition = partition,
|
() => UnifiedPreferenceSettingsRepository()..partition = partition,
|
||||||
from: unifiedPreferenceSettingsRepositoryProvider,
|
from: unifiedPreferenceSettingsRepositoryProvider,
|
||||||
name: r'unifiedPreferenceSettingsRepositoryProvider',
|
name: r'unifiedPreferenceSettingsRepositoryProvider',
|
||||||
@@ -423,8 +431,7 @@ class UnifiedPreferenceSettingsRepositoryProvider
|
|||||||
? null
|
? null
|
||||||
: _$unifiedPreferenceSettingsRepositoryHash,
|
: _$unifiedPreferenceSettingsRepositoryHash,
|
||||||
dependencies: UnifiedPreferenceSettingsRepositoryFamily._dependencies,
|
dependencies: UnifiedPreferenceSettingsRepositoryFamily._dependencies,
|
||||||
allTransitiveDependencies:
|
allTransitiveDependencies: UnifiedPreferenceSettingsRepositoryFamily
|
||||||
UnifiedPreferenceSettingsRepositoryFamily
|
|
||||||
._allTransitiveDependencies,
|
._allTransitiveDependencies,
|
||||||
partition: partition,
|
partition: partition,
|
||||||
);
|
);
|
||||||
@@ -445,7 +452,9 @@ class UnifiedPreferenceSettingsRepositoryProvider
|
|||||||
Stream<Map<String, PreferenceSettingGroup>> runNotifierBuild(
|
Stream<Map<String, PreferenceSettingGroup>> runNotifierBuild(
|
||||||
covariant UnifiedPreferenceSettingsRepository notifier,
|
covariant UnifiedPreferenceSettingsRepository notifier,
|
||||||
) {
|
) {
|
||||||
return notifier.build(partition);
|
return notifier.build(
|
||||||
|
partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -465,11 +474,8 @@ class UnifiedPreferenceSettingsRepositoryProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeStreamNotifierProviderElement<
|
AutoDisposeStreamNotifierProviderElement<UnifiedPreferenceSettingsRepository,
|
||||||
UnifiedPreferenceSettingsRepository,
|
Map<String, PreferenceSettingGroup>> createElement() {
|
||||||
Map<String, PreferenceSettingGroup>
|
|
||||||
>
|
|
||||||
createElement() {
|
|
||||||
return _UnifiedPreferenceSettingsRepositoryProviderElement(this);
|
return _UnifiedPreferenceSettingsRepositoryProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -491,20 +497,16 @@ class UnifiedPreferenceSettingsRepositoryProvider
|
|||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
mixin UnifiedPreferenceSettingsRepositoryRef
|
mixin UnifiedPreferenceSettingsRepositoryRef
|
||||||
on
|
on AutoDisposeStreamNotifierProviderRef<
|
||||||
AutoDisposeStreamNotifierProviderRef<
|
Map<String, PreferenceSettingGroup>> {
|
||||||
Map<String, PreferenceSettingGroup>
|
|
||||||
> {
|
|
||||||
/// The parameter `partition` of this provider.
|
/// The parameter `partition` of this provider.
|
||||||
PreferencePartition get partition;
|
PreferencePartition get partition;
|
||||||
}
|
}
|
||||||
|
|
||||||
class _UnifiedPreferenceSettingsRepositoryProviderElement
|
class _UnifiedPreferenceSettingsRepositoryProviderElement
|
||||||
extends
|
extends AutoDisposeStreamNotifierProviderElement<
|
||||||
AutoDisposeStreamNotifierProviderElement<
|
|
||||||
UnifiedPreferenceSettingsRepository,
|
UnifiedPreferenceSettingsRepository,
|
||||||
Map<String, PreferenceSettingGroup>
|
Map<String, PreferenceSettingGroup>>
|
||||||
>
|
|
||||||
with UnifiedPreferenceSettingsRepositoryRef {
|
with UnifiedPreferenceSettingsRepositoryRef {
|
||||||
_UnifiedPreferenceSettingsRepositoryProviderElement(super.provider);
|
_UnifiedPreferenceSettingsRepositoryProviderElement(super.provider);
|
||||||
|
|
||||||
@@ -543,14 +545,20 @@ class PreferenceSettingsGroupRepositoryFamily
|
|||||||
PreferencePartition partition,
|
PreferencePartition partition,
|
||||||
String groupName,
|
String groupName,
|
||||||
) {
|
) {
|
||||||
return PreferenceSettingsGroupRepositoryProvider(partition, groupName);
|
return PreferenceSettingsGroupRepositoryProvider(
|
||||||
|
partition,
|
||||||
|
groupName,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
PreferenceSettingsGroupRepositoryProvider getProviderOverride(
|
PreferenceSettingsGroupRepositoryProvider getProviderOverride(
|
||||||
covariant PreferenceSettingsGroupRepositoryProvider provider,
|
covariant PreferenceSettingsGroupRepositoryProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.partition, provider.groupName);
|
return call(
|
||||||
|
provider.partition,
|
||||||
|
provider.groupName,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -570,18 +578,14 @@ class PreferenceSettingsGroupRepositoryFamily
|
|||||||
|
|
||||||
/// See also [PreferenceSettingsGroupRepository].
|
/// See also [PreferenceSettingsGroupRepository].
|
||||||
class PreferenceSettingsGroupRepositoryProvider
|
class PreferenceSettingsGroupRepositoryProvider
|
||||||
extends
|
extends AutoDisposeStreamNotifierProviderImpl<
|
||||||
AutoDisposeStreamNotifierProviderImpl<
|
PreferenceSettingsGroupRepository, PreferenceSettingGroup> {
|
||||||
PreferenceSettingsGroupRepository,
|
|
||||||
PreferenceSettingGroup
|
|
||||||
> {
|
|
||||||
/// See also [PreferenceSettingsGroupRepository].
|
/// See also [PreferenceSettingsGroupRepository].
|
||||||
PreferenceSettingsGroupRepositoryProvider(
|
PreferenceSettingsGroupRepositoryProvider(
|
||||||
PreferencePartition partition,
|
PreferencePartition partition,
|
||||||
String groupName,
|
String groupName,
|
||||||
) : this._internal(
|
) : this._internal(
|
||||||
() =>
|
() => PreferenceSettingsGroupRepository()
|
||||||
PreferenceSettingsGroupRepository()
|
|
||||||
..partition = partition
|
..partition = partition
|
||||||
..groupName = groupName,
|
..groupName = groupName,
|
||||||
from: preferenceSettingsGroupRepositoryProvider,
|
from: preferenceSettingsGroupRepositoryProvider,
|
||||||
@@ -591,8 +595,8 @@ class PreferenceSettingsGroupRepositoryProvider
|
|||||||
? null
|
? null
|
||||||
: _$preferenceSettingsGroupRepositoryHash,
|
: _$preferenceSettingsGroupRepositoryHash,
|
||||||
dependencies: PreferenceSettingsGroupRepositoryFamily._dependencies,
|
dependencies: PreferenceSettingsGroupRepositoryFamily._dependencies,
|
||||||
allTransitiveDependencies:
|
allTransitiveDependencies: PreferenceSettingsGroupRepositoryFamily
|
||||||
PreferenceSettingsGroupRepositoryFamily._allTransitiveDependencies,
|
._allTransitiveDependencies,
|
||||||
partition: partition,
|
partition: partition,
|
||||||
groupName: groupName,
|
groupName: groupName,
|
||||||
);
|
);
|
||||||
@@ -615,7 +619,10 @@ class PreferenceSettingsGroupRepositoryProvider
|
|||||||
Stream<PreferenceSettingGroup> runNotifierBuild(
|
Stream<PreferenceSettingGroup> runNotifierBuild(
|
||||||
covariant PreferenceSettingsGroupRepository notifier,
|
covariant PreferenceSettingsGroupRepository notifier,
|
||||||
) {
|
) {
|
||||||
return notifier.build(partition, groupName);
|
return notifier.build(
|
||||||
|
partition,
|
||||||
|
groupName,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -623,8 +630,7 @@ class PreferenceSettingsGroupRepositoryProvider
|
|||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
origin: this,
|
origin: this,
|
||||||
override: PreferenceSettingsGroupRepositoryProvider._internal(
|
override: PreferenceSettingsGroupRepositoryProvider._internal(
|
||||||
() =>
|
() => create()
|
||||||
create()
|
|
||||||
..partition = partition
|
..partition = partition
|
||||||
..groupName = groupName,
|
..groupName = groupName,
|
||||||
from: from,
|
from: from,
|
||||||
@@ -639,11 +645,8 @@ class PreferenceSettingsGroupRepositoryProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeStreamNotifierProviderElement<
|
AutoDisposeStreamNotifierProviderElement<PreferenceSettingsGroupRepository,
|
||||||
PreferenceSettingsGroupRepository,
|
PreferenceSettingGroup> createElement() {
|
||||||
PreferenceSettingGroup
|
|
||||||
>
|
|
||||||
createElement() {
|
|
||||||
return _PreferenceSettingsGroupRepositoryProviderElement(this);
|
return _PreferenceSettingsGroupRepositoryProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -676,12 +679,9 @@ mixin PreferenceSettingsGroupRepositoryRef
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _PreferenceSettingsGroupRepositoryProviderElement
|
class _PreferenceSettingsGroupRepositoryProviderElement
|
||||||
extends
|
extends AutoDisposeStreamNotifierProviderElement<
|
||||||
AutoDisposeStreamNotifierProviderElement<
|
|
||||||
PreferenceSettingsGroupRepository,
|
PreferenceSettingsGroupRepository,
|
||||||
PreferenceSettingGroup
|
PreferenceSettingGroup> with PreferenceSettingsGroupRepositoryRef {
|
||||||
>
|
|
||||||
with PreferenceSettingsGroupRepositoryRef {
|
|
||||||
_PreferenceSettingsGroupRepositoryProviderElement(super.provider);
|
_PreferenceSettingsGroupRepositoryProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -691,6 +691,5 @@ class _PreferenceSettingsGroupRepositoryProviderElement
|
|||||||
String get groupName =>
|
String get groupName =>
|
||||||
(origin as PreferenceSettingsGroupRepositoryProvider).groupName;
|
(origin as PreferenceSettingsGroupRepositoryProvider).groupName;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ String _$readerableServiceHash() => r'03182c8afc41f5184322a3206473cbfa96df5819';
|
|||||||
final readerableServiceProvider = Provider<GeckoReaderableService>.internal(
|
final readerableServiceProvider = Provider<GeckoReaderableService>.internal(
|
||||||
readerableService,
|
readerableService,
|
||||||
name: r'readerableServiceProvider',
|
name: r'readerableServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$readerableServiceHash,
|
: _$readerableServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -33,8 +32,7 @@ final appearanceButtonVisibilityProvider =
|
|||||||
AutoDisposeStreamProvider<bool>.internal(
|
AutoDisposeStreamProvider<bool>.internal(
|
||||||
appearanceButtonVisibility,
|
appearanceButtonVisibility,
|
||||||
name: r'appearanceButtonVisibilityProvider',
|
name: r'appearanceButtonVisibilityProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$appearanceButtonVisibilityHash,
|
: _$appearanceButtonVisibilityHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@ final readerableScreenControllerProvider =
|
|||||||
AsyncNotifierProvider<ReaderableScreenController, void>.internal(
|
AsyncNotifierProvider<ReaderableScreenController, void>.internal(
|
||||||
ReaderableScreenController.new,
|
ReaderableScreenController.new,
|
||||||
name: r'readerableScreenControllerProvider',
|
name: r'readerableScreenControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$readerableScreenControllerHash,
|
: _$readerableScreenControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+5
-9
@@ -15,8 +15,7 @@ final engineHistorySuggestionsProvider =
|
|||||||
AutoDisposeProvider<AsyncValue<List<GeckoSuggestion>>>.internal(
|
AutoDisposeProvider<AsyncValue<List<GeckoSuggestion>>>.internal(
|
||||||
engineHistorySuggestions,
|
engineHistorySuggestions,
|
||||||
name: r'engineHistorySuggestionsProvider',
|
name: r'engineHistorySuggestionsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$engineHistorySuggestionsHash,
|
: _$engineHistorySuggestionsHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -25,20 +24,17 @@ final engineHistorySuggestionsProvider =
|
|||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
typedef EngineHistorySuggestionsRef =
|
typedef EngineHistorySuggestionsRef
|
||||||
AutoDisposeProviderRef<AsyncValue<List<GeckoSuggestion>>>;
|
= AutoDisposeProviderRef<AsyncValue<List<GeckoSuggestion>>>;
|
||||||
String _$engineSuggestionsHash() => r'ba2c2d7f0a5e99fd9e639acd020b8cf3016c6126';
|
String _$engineSuggestionsHash() => r'ba2c2d7f0a5e99fd9e639acd020b8cf3016c6126';
|
||||||
|
|
||||||
/// See also [EngineSuggestions].
|
/// See also [EngineSuggestions].
|
||||||
@ProviderFor(EngineSuggestions)
|
@ProviderFor(EngineSuggestions)
|
||||||
final engineSuggestionsProvider = AutoDisposeStreamNotifierProvider<
|
final engineSuggestionsProvider = AutoDisposeStreamNotifierProvider<
|
||||||
EngineSuggestions,
|
EngineSuggestions, List<GeckoSuggestion>>.internal(
|
||||||
List<GeckoSuggestion>
|
|
||||||
>.internal(
|
|
||||||
EngineSuggestions.new,
|
EngineSuggestions.new,
|
||||||
name: r'engineSuggestionsProvider',
|
name: r'engineSuggestionsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$engineSuggestionsHash,
|
: _$engineSuggestionsHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
+23
-19
@@ -15,8 +15,7 @@ final defaultSearchSuggestionsProvider =
|
|||||||
Provider<ISearchSuggestionProvider>.internal(
|
Provider<ISearchSuggestionProvider>.internal(
|
||||||
defaultSearchSuggestions,
|
defaultSearchSuggestions,
|
||||||
name: r'defaultSearchSuggestionsProvider',
|
name: r'defaultSearchSuggestionsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$defaultSearchSuggestionsHash,
|
: _$defaultSearchSuggestionsHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -53,7 +52,9 @@ abstract class _$SearchSuggestions
|
|||||||
extends BuildlessAutoDisposeStreamNotifier<List<String>> {
|
extends BuildlessAutoDisposeStreamNotifier<List<String>> {
|
||||||
late final ISearchSuggestionProvider? suggestionsProvider;
|
late final ISearchSuggestionProvider? suggestionsProvider;
|
||||||
|
|
||||||
Stream<List<String>> build({ISearchSuggestionProvider? suggestionsProvider});
|
Stream<List<String>> build({
|
||||||
|
ISearchSuggestionProvider? suggestionsProvider,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [SearchSuggestions].
|
/// See also [SearchSuggestions].
|
||||||
@@ -69,14 +70,18 @@ class SearchSuggestionsFamily extends Family<AsyncValue<List<String>>> {
|
|||||||
SearchSuggestionsProvider call({
|
SearchSuggestionsProvider call({
|
||||||
ISearchSuggestionProvider? suggestionsProvider,
|
ISearchSuggestionProvider? suggestionsProvider,
|
||||||
}) {
|
}) {
|
||||||
return SearchSuggestionsProvider(suggestionsProvider: suggestionsProvider);
|
return SearchSuggestionsProvider(
|
||||||
|
suggestionsProvider: suggestionsProvider,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
SearchSuggestionsProvider getProviderOverride(
|
SearchSuggestionsProvider getProviderOverride(
|
||||||
covariant SearchSuggestionsProvider provider,
|
covariant SearchSuggestionsProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(suggestionsProvider: provider.suggestionsProvider);
|
return call(
|
||||||
|
suggestionsProvider: provider.suggestionsProvider,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -95,12 +100,12 @@ class SearchSuggestionsFamily extends Family<AsyncValue<List<String>>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// See also [SearchSuggestions].
|
/// See also [SearchSuggestions].
|
||||||
class SearchSuggestionsProvider
|
class SearchSuggestionsProvider extends AutoDisposeStreamNotifierProviderImpl<
|
||||||
extends
|
SearchSuggestions, List<String>> {
|
||||||
AutoDisposeStreamNotifierProviderImpl<SearchSuggestions, List<String>> {
|
|
||||||
/// See also [SearchSuggestions].
|
/// See also [SearchSuggestions].
|
||||||
SearchSuggestionsProvider({ISearchSuggestionProvider? suggestionsProvider})
|
SearchSuggestionsProvider({
|
||||||
: this._internal(
|
ISearchSuggestionProvider? suggestionsProvider,
|
||||||
|
}) : this._internal(
|
||||||
() => SearchSuggestions()..suggestionsProvider = suggestionsProvider,
|
() => SearchSuggestions()..suggestionsProvider = suggestionsProvider,
|
||||||
from: searchSuggestionsProvider,
|
from: searchSuggestionsProvider,
|
||||||
name: r'searchSuggestionsProvider',
|
name: r'searchSuggestionsProvider',
|
||||||
@@ -127,8 +132,12 @@ class SearchSuggestionsProvider
|
|||||||
final ISearchSuggestionProvider? suggestionsProvider;
|
final ISearchSuggestionProvider? suggestionsProvider;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Stream<List<String>> runNotifierBuild(covariant SearchSuggestions notifier) {
|
Stream<List<String>> runNotifierBuild(
|
||||||
return notifier.build(suggestionsProvider: suggestionsProvider);
|
covariant SearchSuggestions notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
suggestionsProvider: suggestionsProvider,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -177,18 +186,13 @@ mixin SearchSuggestionsRef
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _SearchSuggestionsProviderElement
|
class _SearchSuggestionsProviderElement
|
||||||
extends
|
extends AutoDisposeStreamNotifierProviderElement<SearchSuggestions,
|
||||||
AutoDisposeStreamNotifierProviderElement<
|
List<String>> with SearchSuggestionsRef {
|
||||||
SearchSuggestions,
|
|
||||||
List<String>
|
|
||||||
>
|
|
||||||
with SearchSuggestionsRef {
|
|
||||||
_SearchSuggestionsProviderElement(super.provider);
|
_SearchSuggestionsProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ISearchSuggestionProvider? get suggestionsProvider =>
|
ISearchSuggestionProvider? get suggestionsProvider =>
|
||||||
(origin as SearchSuggestionsProvider).suggestionsProvider;
|
(origin as SearchSuggestionsProvider).suggestionsProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -46,6 +46,7 @@ class _$ContainerAuthSettingsCWProxyImpl
|
|||||||
this(lockTimeout: lockTimeout);
|
this(lockTimeout: lockTimeout);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -63,13 +64,11 @@ class _$ContainerAuthSettingsCWProxyImpl
|
|||||||
? _value.authenticationRequired
|
? _value.authenticationRequired
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: authenticationRequired as bool,
|
: authenticationRequired as bool,
|
||||||
lockOnAppBackground:
|
lockOnAppBackground: lockOnAppBackground == const $CopyWithPlaceholder()
|
||||||
lockOnAppBackground == const $CopyWithPlaceholder()
|
|
||||||
? _value.lockOnAppBackground
|
? _value.lockOnAppBackground
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: lockOnAppBackground as bool,
|
: lockOnAppBackground as bool,
|
||||||
lockTimeout:
|
lockTimeout: lockTimeout == const $CopyWithPlaceholder()
|
||||||
lockTimeout == const $CopyWithPlaceholder()
|
|
||||||
? _value.lockTimeout
|
? _value.lockTimeout
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: lockTimeout as Duration?,
|
: lockTimeout as Duration?,
|
||||||
@@ -128,6 +127,7 @@ class _$ContainerMetadataCWProxyImpl implements _$ContainerMetadataCWProxy {
|
|||||||
ContainerMetadata useProxy(bool useProxy) => this(useProxy: useProxy);
|
ContainerMetadata useProxy(bool useProxy) => this(useProxy: useProxy);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -141,23 +141,19 @@ class _$ContainerMetadataCWProxyImpl implements _$ContainerMetadataCWProxy {
|
|||||||
Object? useProxy = const $CopyWithPlaceholder(),
|
Object? useProxy = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return ContainerMetadata(
|
return ContainerMetadata(
|
||||||
iconData:
|
iconData: iconData == const $CopyWithPlaceholder()
|
||||||
iconData == const $CopyWithPlaceholder()
|
|
||||||
? _value.iconData
|
? _value.iconData
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: iconData as IconData?,
|
: iconData as IconData?,
|
||||||
contextualIdentity:
|
contextualIdentity: contextualIdentity == const $CopyWithPlaceholder()
|
||||||
contextualIdentity == const $CopyWithPlaceholder()
|
|
||||||
? _value.contextualIdentity
|
? _value.contextualIdentity
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: contextualIdentity as String?,
|
: contextualIdentity as String?,
|
||||||
authSettings:
|
authSettings: authSettings == const $CopyWithPlaceholder()
|
||||||
authSettings == const $CopyWithPlaceholder()
|
|
||||||
? _value.authSettings
|
? _value.authSettings
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: authSettings as ContainerAuthSettings,
|
: authSettings as ContainerAuthSettings,
|
||||||
useProxy:
|
useProxy: useProxy == const $CopyWithPlaceholder()
|
||||||
useProxy == const $CopyWithPlaceholder()
|
|
||||||
? _value.useProxy
|
? _value.useProxy
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: useProxy as bool,
|
: useProxy as bool,
|
||||||
@@ -215,6 +211,7 @@ class _$ContainerDataCWProxyImpl implements _$ContainerDataCWProxy {
|
|||||||
this(metadata: metadata);
|
this(metadata: metadata);
|
||||||
|
|
||||||
@override
|
@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.
|
/// 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.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -228,23 +225,19 @@ class _$ContainerDataCWProxyImpl implements _$ContainerDataCWProxy {
|
|||||||
Object? metadata = const $CopyWithPlaceholder(),
|
Object? metadata = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return ContainerData(
|
return ContainerData(
|
||||||
id:
|
id: id == const $CopyWithPlaceholder()
|
||||||
id == const $CopyWithPlaceholder()
|
|
||||||
? _value.id
|
? _value.id
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: id as String,
|
: id as String,
|
||||||
name:
|
name: name == const $CopyWithPlaceholder()
|
||||||
name == const $CopyWithPlaceholder()
|
|
||||||
? _value.name
|
? _value.name
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: name as String?,
|
: name as String?,
|
||||||
color:
|
color: color == const $CopyWithPlaceholder()
|
||||||
color == const $CopyWithPlaceholder()
|
|
||||||
? _value.color
|
? _value.color
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: color as Color,
|
: color as Color,
|
||||||
metadata:
|
metadata: metadata == const $CopyWithPlaceholder()
|
||||||
metadata == const $CopyWithPlaceholder()
|
|
||||||
? _value.metadata
|
? _value.metadata
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: metadata as ContainerMetadata?,
|
: metadata as ContainerMetadata?,
|
||||||
@@ -263,19 +256,18 @@ extension $ContainerDataCopyWith on ContainerData {
|
|||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
ContainerAuthSettings _$ContainerAuthSettingsFromJson(
|
ContainerAuthSettings _$ContainerAuthSettingsFromJson(
|
||||||
Map<String, dynamic> json,
|
Map<String, dynamic> json) =>
|
||||||
) => ContainerAuthSettings(
|
ContainerAuthSettings(
|
||||||
authenticationRequired: json['authenticationRequired'] as bool,
|
authenticationRequired: json['authenticationRequired'] as bool,
|
||||||
lockOnAppBackground: json['lockOnAppBackground'] as bool,
|
lockOnAppBackground: json['lockOnAppBackground'] as bool,
|
||||||
lockTimeout:
|
lockTimeout: json['lockTimeout'] == null
|
||||||
json['lockTimeout'] == null
|
|
||||||
? null
|
? null
|
||||||
: Duration(microseconds: (json['lockTimeout'] as num).toInt()),
|
: Duration(microseconds: (json['lockTimeout'] as num).toInt()),
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> _$ContainerAuthSettingsToJson(
|
Map<String, dynamic> _$ContainerAuthSettingsToJson(
|
||||||
ContainerAuthSettings instance,
|
ContainerAuthSettings instance) =>
|
||||||
) => <String, dynamic>{
|
<String, dynamic>{
|
||||||
'authenticationRequired': instance.authenticationRequired,
|
'authenticationRequired': instance.authenticationRequired,
|
||||||
'lockOnAppBackground': instance.lockOnAppBackground,
|
'lockOnAppBackground': instance.lockOnAppBackground,
|
||||||
'lockTimeout': instance.lockTimeout?.inMicroseconds,
|
'lockTimeout': instance.lockTimeout?.inMicroseconds,
|
||||||
@@ -284,25 +276,19 @@ Map<String, dynamic> _$ContainerAuthSettingsToJson(
|
|||||||
ContainerMetadata _$ContainerMetadataFromJson(Map<String, dynamic> json) =>
|
ContainerMetadata _$ContainerMetadataFromJson(Map<String, dynamic> json) =>
|
||||||
ContainerMetadata.withDefaults(
|
ContainerMetadata.withDefaults(
|
||||||
iconData: _$JsonConverterFromJson<Map<String, dynamic>, IconData>(
|
iconData: _$JsonConverterFromJson<Map<String, dynamic>, IconData>(
|
||||||
json['iconData'],
|
json['iconData'], const IconDataJsonConverter().fromJson),
|
||||||
const IconDataJsonConverter().fromJson,
|
|
||||||
),
|
|
||||||
contextualIdentity: json['contextualIdentity'] as String?,
|
contextualIdentity: json['contextualIdentity'] as String?,
|
||||||
authSettings:
|
authSettings: json['authSettings'] == null
|
||||||
json['authSettings'] == null
|
|
||||||
? null
|
? null
|
||||||
: ContainerAuthSettings.fromJson(
|
: ContainerAuthSettings.fromJson(
|
||||||
json['authSettings'] as Map<String, dynamic>,
|
json['authSettings'] as Map<String, dynamic>),
|
||||||
),
|
|
||||||
useProxy: json['useProxy'] as bool? ?? false,
|
useProxy: json['useProxy'] as bool? ?? false,
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> _$ContainerMetadataToJson(ContainerMetadata instance) =>
|
Map<String, dynamic> _$ContainerMetadataToJson(ContainerMetadata instance) =>
|
||||||
<String, dynamic>{
|
<String, dynamic>{
|
||||||
'iconData': _$JsonConverterToJson<Map<String, dynamic>, IconData>(
|
'iconData': _$JsonConverterToJson<Map<String, dynamic>, IconData>(
|
||||||
instance.iconData,
|
instance.iconData, const IconDataJsonConverter().toJson),
|
||||||
const IconDataJsonConverter().toJson,
|
|
||||||
),
|
|
||||||
'contextualIdentity': instance.contextualIdentity,
|
'contextualIdentity': instance.contextualIdentity,
|
||||||
'authSettings': instance.authSettings,
|
'authSettings': instance.authSettings,
|
||||||
'useProxy': instance.useProxy,
|
'useProxy': instance.useProxy,
|
||||||
@@ -311,9 +297,11 @@ Map<String, dynamic> _$ContainerMetadataToJson(ContainerMetadata instance) =>
|
|||||||
Value? _$JsonConverterFromJson<Json, Value>(
|
Value? _$JsonConverterFromJson<Json, Value>(
|
||||||
Object? json,
|
Object? json,
|
||||||
Value? Function(Json json) fromJson,
|
Value? Function(Json json) fromJson,
|
||||||
) => json == null ? null : fromJson(json as Json);
|
) =>
|
||||||
|
json == null ? null : fromJson(json as Json);
|
||||||
|
|
||||||
Json? _$JsonConverterToJson<Json, Value>(
|
Json? _$JsonConverterToJson<Json, Value>(
|
||||||
Value? value,
|
Value? value,
|
||||||
Json? Function(Value value) toJson,
|
Json? Function(Value value) toJson,
|
||||||
) => value == null ? null : toJson(value);
|
) =>
|
||||||
|
value == null ? null : toJson(value);
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final unusedRandomContainerColorProvider =
|
|||||||
AutoDisposeFutureProvider<Color>.internal(
|
AutoDisposeFutureProvider<Color>.internal(
|
||||||
unusedRandomContainerColor,
|
unusedRandomContainerColor,
|
||||||
name: r'unusedRandomContainerColorProvider',
|
name: r'unusedRandomContainerColorProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$unusedRandomContainerColorHash,
|
: _$unusedRandomContainerColorHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -35,8 +34,7 @@ final containersWithCountProvider =
|
|||||||
AutoDisposeStreamProvider<List<ContainerDataWithCount>>.internal(
|
AutoDisposeStreamProvider<List<ContainerDataWithCount>>.internal(
|
||||||
containersWithCount,
|
containersWithCount,
|
||||||
name: r'containersWithCountProvider',
|
name: r'containersWithCountProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$containersWithCountHash,
|
: _$containersWithCountHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -45,8 +43,8 @@ final containersWithCountProvider =
|
|||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
typedef ContainersWithCountRef =
|
typedef ContainersWithCountRef
|
||||||
AutoDisposeStreamProviderRef<List<ContainerDataWithCount>>;
|
= AutoDisposeStreamProviderRef<List<ContainerDataWithCount>>;
|
||||||
String _$matchSortedContainersWithCountHash() =>
|
String _$matchSortedContainersWithCountHash() =>
|
||||||
r'0ed555f0cb72f4990a2841114d72f57d8178d5c3';
|
r'0ed555f0cb72f4990a2841114d72f57d8178d5c3';
|
||||||
|
|
||||||
@@ -83,15 +81,21 @@ class MatchSortedContainersWithCountFamily
|
|||||||
const MatchSortedContainersWithCountFamily();
|
const MatchSortedContainersWithCountFamily();
|
||||||
|
|
||||||
/// See also [matchSortedContainersWithCount].
|
/// See also [matchSortedContainersWithCount].
|
||||||
MatchSortedContainersWithCountProvider call(String? searchText) {
|
MatchSortedContainersWithCountProvider call(
|
||||||
return MatchSortedContainersWithCountProvider(searchText);
|
String? searchText,
|
||||||
|
) {
|
||||||
|
return MatchSortedContainersWithCountProvider(
|
||||||
|
searchText,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
MatchSortedContainersWithCountProvider getProviderOverride(
|
MatchSortedContainersWithCountProvider getProviderOverride(
|
||||||
covariant MatchSortedContainersWithCountProvider provider,
|
covariant MatchSortedContainersWithCountProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.searchText);
|
return call(
|
||||||
|
provider.searchText,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -113,8 +117,9 @@ class MatchSortedContainersWithCountFamily
|
|||||||
class MatchSortedContainersWithCountProvider
|
class MatchSortedContainersWithCountProvider
|
||||||
extends AutoDisposeProvider<AsyncValue<List<ContainerDataWithCount>>> {
|
extends AutoDisposeProvider<AsyncValue<List<ContainerDataWithCount>>> {
|
||||||
/// See also [matchSortedContainersWithCount].
|
/// See also [matchSortedContainersWithCount].
|
||||||
MatchSortedContainersWithCountProvider(String? searchText)
|
MatchSortedContainersWithCountProvider(
|
||||||
: this._internal(
|
String? searchText,
|
||||||
|
) : this._internal(
|
||||||
(ref) => matchSortedContainersWithCount(
|
(ref) => matchSortedContainersWithCount(
|
||||||
ref as MatchSortedContainersWithCountRef,
|
ref as MatchSortedContainersWithCountRef,
|
||||||
searchText,
|
searchText,
|
||||||
@@ -146,8 +151,7 @@ class MatchSortedContainersWithCountProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
AsyncValue<List<ContainerDataWithCount>> Function(
|
AsyncValue<List<ContainerDataWithCount>> Function(
|
||||||
MatchSortedContainersWithCountRef provider,
|
MatchSortedContainersWithCountRef provider)
|
||||||
)
|
|
||||||
create,
|
create,
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
@@ -215,15 +219,21 @@ class ContainerTabIdsFamily extends Family<AsyncValue<List<String>>> {
|
|||||||
const ContainerTabIdsFamily();
|
const ContainerTabIdsFamily();
|
||||||
|
|
||||||
/// See also [containerTabIds].
|
/// See also [containerTabIds].
|
||||||
ContainerTabIdsProvider call(ContainerFilter containerFilter) {
|
ContainerTabIdsProvider call(
|
||||||
return ContainerTabIdsProvider(containerFilter);
|
ContainerFilter containerFilter,
|
||||||
|
) {
|
||||||
|
return ContainerTabIdsProvider(
|
||||||
|
containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ContainerTabIdsProvider getProviderOverride(
|
ContainerTabIdsProvider getProviderOverride(
|
||||||
covariant ContainerTabIdsProvider provider,
|
covariant ContainerTabIdsProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.containerFilter);
|
return call(
|
||||||
|
provider.containerFilter,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -244,9 +254,13 @@ class ContainerTabIdsFamily extends Family<AsyncValue<List<String>>> {
|
|||||||
/// See also [containerTabIds].
|
/// See also [containerTabIds].
|
||||||
class ContainerTabIdsProvider extends AutoDisposeStreamProvider<List<String>> {
|
class ContainerTabIdsProvider extends AutoDisposeStreamProvider<List<String>> {
|
||||||
/// See also [containerTabIds].
|
/// See also [containerTabIds].
|
||||||
ContainerTabIdsProvider(ContainerFilter containerFilter)
|
ContainerTabIdsProvider(
|
||||||
: this._internal(
|
ContainerFilter containerFilter,
|
||||||
(ref) => containerTabIds(ref as ContainerTabIdsRef, containerFilter),
|
) : this._internal(
|
||||||
|
(ref) => containerTabIds(
|
||||||
|
ref as ContainerTabIdsRef,
|
||||||
|
containerFilter,
|
||||||
|
),
|
||||||
from: containerTabIdsProvider,
|
from: containerTabIdsProvider,
|
||||||
name: r'containerTabIdsProvider',
|
name: r'containerTabIdsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -325,6 +339,5 @@ class _ContainerTabIdsProviderElement
|
|||||||
ContainerFilter get containerFilter =>
|
ContainerFilter get containerFilter =>
|
||||||
(origin as ContainerTabIdsProvider).containerFilter;
|
(origin as ContainerTabIdsProvider).containerFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final selectedContainerDataProvider =
|
|||||||
AutoDisposeStreamProvider<ContainerData?>.internal(
|
AutoDisposeStreamProvider<ContainerData?>.internal(
|
||||||
selectedContainerData,
|
selectedContainerData,
|
||||||
name: r'selectedContainerDataProvider',
|
name: r'selectedContainerDataProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$selectedContainerDataHash,
|
: _$selectedContainerDataHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -34,8 +33,7 @@ final selectedContainerProvider =
|
|||||||
NotifierProvider<SelectedContainer, String?>.internal(
|
NotifierProvider<SelectedContainer, String?>.internal(
|
||||||
SelectedContainer.new,
|
SelectedContainer.new,
|
||||||
name: r'selectedContainerProvider',
|
name: r'selectedContainerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$selectedContainerHash,
|
: _$selectedContainerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final containerRepositoryProvider =
|
|||||||
NotifierProvider<ContainerRepository, void>.internal(
|
NotifierProvider<ContainerRepository, void>.internal(
|
||||||
ContainerRepository.new,
|
ContainerRepository.new,
|
||||||
name: r'containerRepositoryProvider',
|
name: r'containerRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$containerRepositoryHash,
|
: _$containerRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final tabDataRepositoryProvider =
|
|||||||
NotifierProvider<TabDataRepository, void>.internal(
|
NotifierProvider<TabDataRepository, void>.internal(
|
||||||
TabDataRepository.new,
|
TabDataRepository.new,
|
||||||
name: r'tabDataRepositoryProvider',
|
name: r'tabDataRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$tabDataRepositoryHash,
|
: _$tabDataRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ abstract class _$TabSearchRepository
|
|||||||
extends BuildlessAutoDisposeAsyncNotifier<List<TabQueryResult>?> {
|
extends BuildlessAutoDisposeAsyncNotifier<List<TabQueryResult>?> {
|
||||||
late final TabSearchPartition partition;
|
late final TabSearchPartition partition;
|
||||||
|
|
||||||
FutureOr<List<TabQueryResult>?> build(TabSearchPartition partition);
|
FutureOr<List<TabQueryResult>?> build(
|
||||||
|
TabSearchPartition partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [TabSearchRepository].
|
/// See also [TabSearchRepository].
|
||||||
@@ -48,15 +50,21 @@ class TabSearchRepositoryFamily
|
|||||||
const TabSearchRepositoryFamily();
|
const TabSearchRepositoryFamily();
|
||||||
|
|
||||||
/// See also [TabSearchRepository].
|
/// See also [TabSearchRepository].
|
||||||
TabSearchRepositoryProvider call(TabSearchPartition partition) {
|
TabSearchRepositoryProvider call(
|
||||||
return TabSearchRepositoryProvider(partition);
|
TabSearchPartition partition,
|
||||||
|
) {
|
||||||
|
return TabSearchRepositoryProvider(
|
||||||
|
partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TabSearchRepositoryProvider getProviderOverride(
|
TabSearchRepositoryProvider getProviderOverride(
|
||||||
covariant TabSearchRepositoryProvider provider,
|
covariant TabSearchRepositoryProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.partition);
|
return call(
|
||||||
|
provider.partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -75,15 +83,12 @@ class TabSearchRepositoryFamily
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// See also [TabSearchRepository].
|
/// See also [TabSearchRepository].
|
||||||
class TabSearchRepositoryProvider
|
class TabSearchRepositoryProvider extends AutoDisposeAsyncNotifierProviderImpl<
|
||||||
extends
|
TabSearchRepository, List<TabQueryResult>?> {
|
||||||
AutoDisposeAsyncNotifierProviderImpl<
|
|
||||||
TabSearchRepository,
|
|
||||||
List<TabQueryResult>?
|
|
||||||
> {
|
|
||||||
/// See also [TabSearchRepository].
|
/// See also [TabSearchRepository].
|
||||||
TabSearchRepositoryProvider(TabSearchPartition partition)
|
TabSearchRepositoryProvider(
|
||||||
: this._internal(
|
TabSearchPartition partition,
|
||||||
|
) : this._internal(
|
||||||
() => TabSearchRepository()..partition = partition,
|
() => TabSearchRepository()..partition = partition,
|
||||||
from: tabSearchRepositoryProvider,
|
from: tabSearchRepositoryProvider,
|
||||||
name: r'tabSearchRepositoryProvider',
|
name: r'tabSearchRepositoryProvider',
|
||||||
@@ -113,7 +118,9 @@ class TabSearchRepositoryProvider
|
|||||||
FutureOr<List<TabQueryResult>?> runNotifierBuild(
|
FutureOr<List<TabQueryResult>?> runNotifierBuild(
|
||||||
covariant TabSearchRepository notifier,
|
covariant TabSearchRepository notifier,
|
||||||
) {
|
) {
|
||||||
return notifier.build(partition);
|
return notifier.build(
|
||||||
|
partition,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -133,11 +140,8 @@ class TabSearchRepositoryProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeAsyncNotifierProviderElement<
|
AutoDisposeAsyncNotifierProviderElement<TabSearchRepository,
|
||||||
TabSearchRepository,
|
List<TabQueryResult>?> createElement() {
|
||||||
List<TabQueryResult>?
|
|
||||||
>
|
|
||||||
createElement() {
|
|
||||||
return _TabSearchRepositoryProviderElement(this);
|
return _TabSearchRepositoryProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,18 +168,13 @@ mixin TabSearchRepositoryRef
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _TabSearchRepositoryProviderElement
|
class _TabSearchRepositoryProviderElement
|
||||||
extends
|
extends AutoDisposeAsyncNotifierProviderElement<TabSearchRepository,
|
||||||
AutoDisposeAsyncNotifierProviderElement<
|
List<TabQueryResult>?> with TabSearchRepositoryRef {
|
||||||
TabSearchRepository,
|
|
||||||
List<TabQueryResult>?
|
|
||||||
>
|
|
||||||
with TabSearchRepositoryRef {
|
|
||||||
_TabSearchRepositoryProviderElement(super.provider);
|
_TabSearchRepositoryProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TabSearchPartition get partition =>
|
TabSearchPartition get partition =>
|
||||||
(origin as TabSearchRepositoryProvider).partition;
|
(origin as TabSearchRepositoryProvider).partition;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ class _SystemHash {
|
|||||||
abstract class _$ChatBackend extends BuildlessAutoDisposeNotifier<void> {
|
abstract class _$ChatBackend extends BuildlessAutoDisposeNotifier<void> {
|
||||||
late final String chatId;
|
late final String chatId;
|
||||||
|
|
||||||
void build(String chatId);
|
void build(
|
||||||
|
String chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [ChatBackend].
|
/// See also [ChatBackend].
|
||||||
@@ -45,15 +47,21 @@ class ChatBackendFamily extends Family<void> {
|
|||||||
const ChatBackendFamily();
|
const ChatBackendFamily();
|
||||||
|
|
||||||
/// See also [ChatBackend].
|
/// See also [ChatBackend].
|
||||||
ChatBackendProvider call(String chatId) {
|
ChatBackendProvider call(
|
||||||
return ChatBackendProvider(chatId);
|
String chatId,
|
||||||
|
) {
|
||||||
|
return ChatBackendProvider(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ChatBackendProvider getProviderOverride(
|
ChatBackendProvider getProviderOverride(
|
||||||
covariant ChatBackendProvider provider,
|
covariant ChatBackendProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.chatId);
|
return call(
|
||||||
|
provider.chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -75,8 +83,9 @@ class ChatBackendFamily extends Family<void> {
|
|||||||
class ChatBackendProvider
|
class ChatBackendProvider
|
||||||
extends AutoDisposeNotifierProviderImpl<ChatBackend, void> {
|
extends AutoDisposeNotifierProviderImpl<ChatBackend, void> {
|
||||||
/// See also [ChatBackend].
|
/// See also [ChatBackend].
|
||||||
ChatBackendProvider(String chatId)
|
ChatBackendProvider(
|
||||||
: this._internal(
|
String chatId,
|
||||||
|
) : this._internal(
|
||||||
() => ChatBackend()..chatId = chatId,
|
() => ChatBackend()..chatId = chatId,
|
||||||
from: chatBackendProvider,
|
from: chatBackendProvider,
|
||||||
name: r'chatBackendProvider',
|
name: r'chatBackendProvider',
|
||||||
@@ -85,7 +94,8 @@ class ChatBackendProvider
|
|||||||
? null
|
? null
|
||||||
: _$chatBackendHash,
|
: _$chatBackendHash,
|
||||||
dependencies: ChatBackendFamily._dependencies,
|
dependencies: ChatBackendFamily._dependencies,
|
||||||
allTransitiveDependencies: ChatBackendFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
|
ChatBackendFamily._allTransitiveDependencies,
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -102,8 +112,12 @@ class ChatBackendProvider
|
|||||||
final String chatId;
|
final String chatId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void runNotifierBuild(covariant ChatBackend notifier) {
|
void runNotifierBuild(
|
||||||
return notifier.build(chatId);
|
covariant ChatBackend notifier,
|
||||||
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
chatId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -156,6 +170,5 @@ class _ChatBackendProviderElement
|
|||||||
@override
|
@override
|
||||||
String get chatId => (origin as ChatBackendProvider).chatId;
|
String get chatId => (origin as ChatBackendProvider).chatId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
+5
-6
@@ -98,8 +98,7 @@ class QAMemoryChainProvider
|
|||||||
String? mainDocumentId,
|
String? mainDocumentId,
|
||||||
String? contextId,
|
String? contextId,
|
||||||
}) : this._internal(
|
}) : this._internal(
|
||||||
() =>
|
() => QAMemoryChain()
|
||||||
QAMemoryChain()
|
|
||||||
..chatId = chatId
|
..chatId = chatId
|
||||||
..mainDocumentId = mainDocumentId
|
..mainDocumentId = mainDocumentId
|
||||||
..contextId = contextId,
|
..contextId = contextId,
|
||||||
@@ -134,7 +133,9 @@ class QAMemoryChainProvider
|
|||||||
final String? contextId;
|
final String? contextId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void runNotifierBuild(covariant QAMemoryChain notifier) {
|
void runNotifierBuild(
|
||||||
|
covariant QAMemoryChain notifier,
|
||||||
|
) {
|
||||||
return notifier.build(
|
return notifier.build(
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
mainDocumentId: mainDocumentId,
|
mainDocumentId: mainDocumentId,
|
||||||
@@ -147,8 +148,7 @@ class QAMemoryChainProvider
|
|||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
origin: this,
|
origin: this,
|
||||||
override: QAMemoryChainProvider._internal(
|
override: QAMemoryChainProvider._internal(
|
||||||
() =>
|
() => create()
|
||||||
create()
|
|
||||||
..chatId = chatId
|
..chatId = chatId
|
||||||
..mainDocumentId = mainDocumentId
|
..mainDocumentId = mainDocumentId
|
||||||
..contextId = contextId,
|
..contextId = contextId,
|
||||||
@@ -214,6 +214,5 @@ class _QAMemoryChainProviderElement
|
|||||||
@override
|
@override
|
||||||
String? get contextId => (origin as QAMemoryChainProvider).contextId;
|
String? get contextId => (origin as QAMemoryChainProvider).contextId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@ final documentRepositoryProvider =
|
|||||||
AutoDisposeNotifierProvider<DocumentRepository, void>.internal(
|
AutoDisposeNotifierProvider<DocumentRepository, void>.internal(
|
||||||
DocumentRepository.new,
|
DocumentRepository.new,
|
||||||
name: r'documentRepositoryProvider',
|
name: r'documentRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$documentRepositoryHash,
|
: _$documentRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final kagiAutosuggestServiceProvider =
|
|||||||
NotifierProvider<KagiAutosuggestService, void>.internal(
|
NotifierProvider<KagiAutosuggestService, void>.internal(
|
||||||
KagiAutosuggestService.new,
|
KagiAutosuggestService.new,
|
||||||
name: r'kagiAutosuggestServiceProvider',
|
name: r'kagiAutosuggestServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$kagiAutosuggestServiceHash,
|
: _$kagiAutosuggestServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final kagiChatServiceProvider =
|
|||||||
NotifierProvider<KagiChatService, void>.internal(
|
NotifierProvider<KagiChatService, void>.internal(
|
||||||
KagiChatService.new,
|
KagiChatService.new,
|
||||||
name: r'kagiChatServiceProvider',
|
name: r'kagiChatServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$kagiChatServiceHash,
|
: _$kagiChatServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final kagiSessionServiceProvider =
|
|||||||
AutoDisposeNotifierProvider<KagiSessionService, void>.internal(
|
AutoDisposeNotifierProvider<KagiSessionService, void>.internal(
|
||||||
KagiSessionService.new,
|
KagiSessionService.new,
|
||||||
name: r'kagiSessionServiceProvider',
|
name: r'kagiSessionServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$kagiSessionServiceHash,
|
: _$kagiSessionServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -53,14 +53,18 @@ class SearchSuggestionsRepositoryFamily
|
|||||||
SearchSuggestionsRepositoryProvider call(
|
SearchSuggestionsRepositoryProvider call(
|
||||||
ISearchSuggestionProvider suggestionsProvider,
|
ISearchSuggestionProvider suggestionsProvider,
|
||||||
) {
|
) {
|
||||||
return SearchSuggestionsRepositoryProvider(suggestionsProvider);
|
return SearchSuggestionsRepositoryProvider(
|
||||||
|
suggestionsProvider,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
SearchSuggestionsRepositoryProvider getProviderOverride(
|
SearchSuggestionsRepositoryProvider getProviderOverride(
|
||||||
covariant SearchSuggestionsRepositoryProvider provider,
|
covariant SearchSuggestionsRepositoryProvider provider,
|
||||||
) {
|
) {
|
||||||
return call(provider.suggestionsProvider);
|
return call(
|
||||||
|
provider.suggestionsProvider,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -79,18 +83,13 @@ class SearchSuggestionsRepositoryFamily
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// See also [SearchSuggestionsRepository].
|
/// See also [SearchSuggestionsRepository].
|
||||||
class SearchSuggestionsRepositoryProvider
|
class SearchSuggestionsRepositoryProvider extends NotifierProviderImpl<
|
||||||
extends
|
SearchSuggestionsRepository, Raw<Stream<List<String>>>> {
|
||||||
NotifierProviderImpl<
|
|
||||||
SearchSuggestionsRepository,
|
|
||||||
Raw<Stream<List<String>>>
|
|
||||||
> {
|
|
||||||
/// See also [SearchSuggestionsRepository].
|
/// See also [SearchSuggestionsRepository].
|
||||||
SearchSuggestionsRepositoryProvider(
|
SearchSuggestionsRepositoryProvider(
|
||||||
ISearchSuggestionProvider suggestionsProvider,
|
ISearchSuggestionProvider suggestionsProvider,
|
||||||
) : this._internal(
|
) : this._internal(
|
||||||
() =>
|
() => SearchSuggestionsRepository()
|
||||||
SearchSuggestionsRepository()
|
|
||||||
..suggestionsProvider = suggestionsProvider,
|
..suggestionsProvider = suggestionsProvider,
|
||||||
from: searchSuggestionsRepositoryProvider,
|
from: searchSuggestionsRepositoryProvider,
|
||||||
name: r'searchSuggestionsRepositoryProvider',
|
name: r'searchSuggestionsRepositoryProvider',
|
||||||
@@ -120,7 +119,9 @@ class SearchSuggestionsRepositoryProvider
|
|||||||
Raw<Stream<List<String>>> runNotifierBuild(
|
Raw<Stream<List<String>>> runNotifierBuild(
|
||||||
covariant SearchSuggestionsRepository notifier,
|
covariant SearchSuggestionsRepository notifier,
|
||||||
) {
|
) {
|
||||||
return notifier.build(suggestionsProvider);
|
return notifier.build(
|
||||||
|
suggestionsProvider,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -140,11 +141,8 @@ class SearchSuggestionsRepositoryProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
NotifierProviderElement<
|
NotifierProviderElement<SearchSuggestionsRepository,
|
||||||
SearchSuggestionsRepository,
|
Raw<Stream<List<String>>>> createElement() {
|
||||||
Raw<Stream<List<String>>>
|
|
||||||
>
|
|
||||||
createElement() {
|
|
||||||
return _SearchSuggestionsRepositoryProviderElement(this);
|
return _SearchSuggestionsRepositoryProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,18 +170,13 @@ mixin SearchSuggestionsRepositoryRef
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _SearchSuggestionsRepositoryProviderElement
|
class _SearchSuggestionsRepositoryProviderElement
|
||||||
extends
|
extends NotifierProviderElement<SearchSuggestionsRepository,
|
||||||
NotifierProviderElement<
|
Raw<Stream<List<String>>>> with SearchSuggestionsRepositoryRef {
|
||||||
SearchSuggestionsRepository,
|
|
||||||
Raw<Stream<List<String>>>
|
|
||||||
>
|
|
||||||
with SearchSuggestionsRepositoryRef {
|
|
||||||
_SearchSuggestionsRepositoryProviderElement(super.provider);
|
_SearchSuggestionsRepositoryProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ISearchSuggestionProvider get suggestionsProvider =>
|
ISearchSuggestionProvider get suggestionsProvider =>
|
||||||
(origin as SearchSuggestionsRepositoryProvider).suggestionsProvider;
|
(origin as SearchSuggestionsRepositoryProvider).suggestionsProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final saveGeneralSettingsControllerProvider =
|
|||||||
AsyncNotifierProvider<SaveGeneralSettingsController, void>.internal(
|
AsyncNotifierProvider<SaveGeneralSettingsController, void>.internal(
|
||||||
SaveGeneralSettingsController.new,
|
SaveGeneralSettingsController.new,
|
||||||
name: r'saveGeneralSettingsControllerProvider',
|
name: r'saveGeneralSettingsControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$saveGeneralSettingsControllerHash,
|
: _$saveGeneralSettingsControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -33,8 +32,7 @@ final saveEngineSettingsControllerProvider =
|
|||||||
AsyncNotifierProvider<SaveEngineSettingsController, void>.internal(
|
AsyncNotifierProvider<SaveEngineSettingsController, void>.internal(
|
||||||
SaveEngineSettingsController.new,
|
SaveEngineSettingsController.new,
|
||||||
name: r'saveEngineSettingsControllerProvider',
|
name: r'saveEngineSettingsControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$saveEngineSettingsControllerHash,
|
: _$saveEngineSettingsControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final sharingIntentStreamProvider =
|
|||||||
AutoDisposeProvider<Raw<Stream<ReceivedParameter>>>.internal(
|
AutoDisposeProvider<Raw<Stream<ReceivedParameter>>>.internal(
|
||||||
sharingIntentStream,
|
sharingIntentStream,
|
||||||
name: r'sharingIntentStreamProvider',
|
name: r'sharingIntentStreamProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$sharingIntentStreamHash,
|
: _$sharingIntentStreamHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -25,7 +24,7 @@ final sharingIntentStreamProvider =
|
|||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
typedef SharingIntentStreamRef =
|
typedef SharingIntentStreamRef
|
||||||
AutoDisposeProviderRef<Raw<Stream<ReceivedParameter>>>;
|
= AutoDisposeProviderRef<Raw<Stream<ReceivedParameter>>>;
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final torProxyServiceProvider =
|
|||||||
AsyncNotifierProvider<TorProxyService, int?>.internal(
|
AsyncNotifierProvider<TorProxyService, int?>.internal(
|
||||||
TorProxyService.new,
|
TorProxyService.new,
|
||||||
name: r'torProxyServiceProvider',
|
name: r'torProxyServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$torProxyServiceHash,
|
: _$torProxyServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final startProxyControllerProvider =
|
|||||||
AutoDisposeNotifierProvider<StartProxyController, void>.internal(
|
AutoDisposeNotifierProvider<StartProxyController, void>.internal(
|
||||||
StartProxyController.new,
|
StartProxyController.new,
|
||||||
name: r'startProxyControllerProvider',
|
name: r'startProxyControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$startProxyControllerHash,
|
: _$startProxyControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -9,29 +9,20 @@ class Setting extends Table with TableInfo<Setting, SettingData> {
|
|||||||
final String? _alias;
|
final String? _alias;
|
||||||
Setting(this.attachedDatabase, [this._alias]);
|
Setting(this.attachedDatabase, [this._alias]);
|
||||||
late final GeneratedColumn<String> key = GeneratedColumn<String>(
|
late final GeneratedColumn<String> key = GeneratedColumn<String>(
|
||||||
'key',
|
'key', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'PRIMARY KEY NOT NULL',
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
);
|
|
||||||
late final GeneratedColumn<String> partitionKey = GeneratedColumn<String>(
|
late final GeneratedColumn<String> partitionKey = GeneratedColumn<String>(
|
||||||
'partition_key',
|
'partition_key', aliasedName, true,
|
||||||
aliasedName,
|
|
||||||
true,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: false,
|
requiredDuringInsert: false,
|
||||||
$customConstraints: '',
|
$customConstraints: '');
|
||||||
);
|
|
||||||
late final GeneratedColumn<DriftAny> value = GeneratedColumn<DriftAny>(
|
late final GeneratedColumn<DriftAny> value = GeneratedColumn<DriftAny>(
|
||||||
'value',
|
'value', aliasedName, true,
|
||||||
aliasedName,
|
|
||||||
true,
|
|
||||||
type: DriftSqlType.any,
|
type: DriftSqlType.any,
|
||||||
requiredDuringInsert: false,
|
requiredDuringInsert: false,
|
||||||
$customConstraints: '',
|
$customConstraints: '');
|
||||||
);
|
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns => [key, partitionKey, value];
|
List<GeneratedColumn> get $columns => [key, partitionKey, value];
|
||||||
@override
|
@override
|
||||||
@@ -45,19 +36,12 @@ class Setting extends Table with TableInfo<Setting, SettingData> {
|
|||||||
SettingData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
SettingData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||||
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
||||||
return SettingData(
|
return SettingData(
|
||||||
key:
|
key: attachedDatabase.typeMapping
|
||||||
attachedDatabase.typeMapping.read(
|
.read(DriftSqlType.string, data['${effectivePrefix}key'])!,
|
||||||
DriftSqlType.string,
|
partitionKey: attachedDatabase.typeMapping
|
||||||
data['${effectivePrefix}key'],
|
.read(DriftSqlType.string, data['${effectivePrefix}partition_key']),
|
||||||
)!,
|
value: attachedDatabase.typeMapping
|
||||||
partitionKey: attachedDatabase.typeMapping.read(
|
.read(DriftSqlType.any, data['${effectivePrefix}value']),
|
||||||
DriftSqlType.string,
|
|
||||||
data['${effectivePrefix}partition_key'],
|
|
||||||
),
|
|
||||||
value: attachedDatabase.typeMapping.read(
|
|
||||||
DriftSqlType.any,
|
|
||||||
data['${effectivePrefix}value'],
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,10 +74,8 @@ class SettingData extends DataClass implements Insertable<SettingData> {
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
factory SettingData.fromJson(
|
factory SettingData.fromJson(Map<String, dynamic> json,
|
||||||
Map<String, dynamic> json, {
|
{ValueSerializer? serializer}) {
|
||||||
ValueSerializer? serializer,
|
|
||||||
}) {
|
|
||||||
serializer ??= driftRuntimeOptions.defaultSerializer;
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
||||||
return SettingData(
|
return SettingData(
|
||||||
key: serializer.fromJson<String>(json['key']),
|
key: serializer.fromJson<String>(json['key']),
|
||||||
@@ -111,20 +93,20 @@ class SettingData extends DataClass implements Insertable<SettingData> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingData copyWith({
|
SettingData copyWith(
|
||||||
String? key,
|
{String? key,
|
||||||
Value<String?> partitionKey = const Value.absent(),
|
Value<String?> partitionKey = const Value.absent(),
|
||||||
Value<DriftAny?> value = const Value.absent(),
|
Value<DriftAny?> value = const Value.absent()}) =>
|
||||||
}) => SettingData(
|
SettingData(
|
||||||
key: key ?? this.key,
|
key: key ?? this.key,
|
||||||
partitionKey: partitionKey.present ? partitionKey.value : this.partitionKey,
|
partitionKey:
|
||||||
|
partitionKey.present ? partitionKey.value : this.partitionKey,
|
||||||
value: value.present ? value.value : this.value,
|
value: value.present ? value.value : this.value,
|
||||||
);
|
);
|
||||||
SettingData copyWithCompanion(SettingCompanion data) {
|
SettingData copyWithCompanion(SettingCompanion data) {
|
||||||
return SettingData(
|
return SettingData(
|
||||||
key: data.key.present ? data.key.value : this.key,
|
key: data.key.present ? data.key.value : this.key,
|
||||||
partitionKey:
|
partitionKey: data.partitionKey.present
|
||||||
data.partitionKey.present
|
|
||||||
? data.partitionKey.value
|
? data.partitionKey.value
|
||||||
: this.partitionKey,
|
: this.partitionKey,
|
||||||
value: data.value.present ? data.value.value : this.value,
|
value: data.value.present ? data.value.value : this.value,
|
||||||
@@ -183,12 +165,11 @@ class SettingCompanion extends UpdateCompanion<SettingData> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingCompanion copyWith({
|
SettingCompanion copyWith(
|
||||||
Value<String>? key,
|
{Value<String>? key,
|
||||||
Value<String?>? partitionKey,
|
Value<String?>? partitionKey,
|
||||||
Value<DriftAny?>? value,
|
Value<DriftAny?>? value,
|
||||||
Value<int>? rowid,
|
Value<int>? rowid}) {
|
||||||
}) {
|
|
||||||
return SettingCompanion(
|
return SettingCompanion(
|
||||||
key: key ?? this.key,
|
key: key ?? this.key,
|
||||||
partitionKey: partitionKey ?? this.partitionKey,
|
partitionKey: partitionKey ?? this.partitionKey,
|
||||||
@@ -233,29 +214,20 @@ class IconCache extends Table with TableInfo<IconCache, IconCacheData> {
|
|||||||
final String? _alias;
|
final String? _alias;
|
||||||
IconCache(this.attachedDatabase, [this._alias]);
|
IconCache(this.attachedDatabase, [this._alias]);
|
||||||
late final GeneratedColumn<String> origin = GeneratedColumn<String>(
|
late final GeneratedColumn<String> origin = GeneratedColumn<String>(
|
||||||
'origin',
|
'origin', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.string,
|
type: DriftSqlType.string,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'PRIMARY KEY NOT NULL',
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
);
|
|
||||||
late final GeneratedColumn<Uint8List> iconData = GeneratedColumn<Uint8List>(
|
late final GeneratedColumn<Uint8List> iconData = GeneratedColumn<Uint8List>(
|
||||||
'icon_data',
|
'icon_data', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.blob,
|
type: DriftSqlType.blob,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'NOT NULL',
|
$customConstraints: 'NOT NULL');
|
||||||
);
|
|
||||||
late final GeneratedColumn<DateTime> fetchDate = GeneratedColumn<DateTime>(
|
late final GeneratedColumn<DateTime> fetchDate = GeneratedColumn<DateTime>(
|
||||||
'fetch_date',
|
'fetch_date', aliasedName, false,
|
||||||
aliasedName,
|
|
||||||
false,
|
|
||||||
type: DriftSqlType.dateTime,
|
type: DriftSqlType.dateTime,
|
||||||
requiredDuringInsert: true,
|
requiredDuringInsert: true,
|
||||||
$customConstraints: 'NOT NULL',
|
$customConstraints: 'NOT NULL');
|
||||||
);
|
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns => [origin, iconData, fetchDate];
|
List<GeneratedColumn> get $columns => [origin, iconData, fetchDate];
|
||||||
@override
|
@override
|
||||||
@@ -269,21 +241,12 @@ class IconCache extends Table with TableInfo<IconCache, IconCacheData> {
|
|||||||
IconCacheData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
IconCacheData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
||||||
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
||||||
return IconCacheData(
|
return IconCacheData(
|
||||||
origin:
|
origin: attachedDatabase.typeMapping
|
||||||
attachedDatabase.typeMapping.read(
|
.read(DriftSqlType.string, data['${effectivePrefix}origin'])!,
|
||||||
DriftSqlType.string,
|
iconData: attachedDatabase.typeMapping
|
||||||
data['${effectivePrefix}origin'],
|
.read(DriftSqlType.blob, data['${effectivePrefix}icon_data'])!,
|
||||||
)!,
|
fetchDate: attachedDatabase.typeMapping
|
||||||
iconData:
|
.read(DriftSqlType.dateTime, data['${effectivePrefix}fetch_date'])!,
|
||||||
attachedDatabase.typeMapping.read(
|
|
||||||
DriftSqlType.blob,
|
|
||||||
data['${effectivePrefix}icon_data'],
|
|
||||||
)!,
|
|
||||||
fetchDate:
|
|
||||||
attachedDatabase.typeMapping.read(
|
|
||||||
DriftSqlType.dateTime,
|
|
||||||
data['${effectivePrefix}fetch_date'],
|
|
||||||
)!,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -300,11 +263,8 @@ class IconCacheData extends DataClass implements Insertable<IconCacheData> {
|
|||||||
final String origin;
|
final String origin;
|
||||||
final Uint8List iconData;
|
final Uint8List iconData;
|
||||||
final DateTime fetchDate;
|
final DateTime fetchDate;
|
||||||
const IconCacheData({
|
const IconCacheData(
|
||||||
required this.origin,
|
{required this.origin, required this.iconData, required this.fetchDate});
|
||||||
required this.iconData,
|
|
||||||
required this.fetchDate,
|
|
||||||
});
|
|
||||||
@override
|
@override
|
||||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||||
final map = <String, Expression>{};
|
final map = <String, Expression>{};
|
||||||
@@ -314,10 +274,8 @@ class IconCacheData extends DataClass implements Insertable<IconCacheData> {
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
factory IconCacheData.fromJson(
|
factory IconCacheData.fromJson(Map<String, dynamic> json,
|
||||||
Map<String, dynamic> json, {
|
{ValueSerializer? serializer}) {
|
||||||
ValueSerializer? serializer,
|
|
||||||
}) {
|
|
||||||
serializer ??= driftRuntimeOptions.defaultSerializer;
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
||||||
return IconCacheData(
|
return IconCacheData(
|
||||||
origin: serializer.fromJson<String>(json['origin']),
|
origin: serializer.fromJson<String>(json['origin']),
|
||||||
@@ -335,11 +293,9 @@ class IconCacheData extends DataClass implements Insertable<IconCacheData> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
IconCacheData copyWith({
|
IconCacheData copyWith(
|
||||||
String? origin,
|
{String? origin, Uint8List? iconData, DateTime? fetchDate}) =>
|
||||||
Uint8List? iconData,
|
IconCacheData(
|
||||||
DateTime? fetchDate,
|
|
||||||
}) => IconCacheData(
|
|
||||||
origin: origin ?? this.origin,
|
origin: origin ?? this.origin,
|
||||||
iconData: iconData ?? this.iconData,
|
iconData: iconData ?? this.iconData,
|
||||||
fetchDate: fetchDate ?? this.fetchDate,
|
fetchDate: fetchDate ?? this.fetchDate,
|
||||||
@@ -407,12 +363,11 @@ class IconCacheCompanion extends UpdateCompanion<IconCacheData> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
IconCacheCompanion copyWith({
|
IconCacheCompanion copyWith(
|
||||||
Value<String>? origin,
|
{Value<String>? origin,
|
||||||
Value<Uint8List>? iconData,
|
Value<Uint8List>? iconData,
|
||||||
Value<DateTime>? fetchDate,
|
Value<DateTime>? fetchDate,
|
||||||
Value<int>? rowid,
|
Value<int>? rowid}) {
|
||||||
}) {
|
|
||||||
return IconCacheCompanion(
|
return IconCacheCompanion(
|
||||||
origin: origin ?? this.origin,
|
origin: origin ?? this.origin,
|
||||||
iconData: iconData ?? this.iconData,
|
iconData: iconData ?? this.iconData,
|
||||||
@@ -474,15 +429,13 @@ abstract class _$UserDatabase extends GeneratedDatabase {
|
|||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [setting, iconCache];
|
List<DatabaseSchemaEntity> get allSchemaEntities => [setting, iconCache];
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $SettingCreateCompanionBuilder =
|
typedef $SettingCreateCompanionBuilder = SettingCompanion Function({
|
||||||
SettingCompanion Function({
|
|
||||||
required String key,
|
required String key,
|
||||||
Value<String?> partitionKey,
|
Value<String?> partitionKey,
|
||||||
Value<DriftAny?> value,
|
Value<DriftAny?> value,
|
||||||
Value<int> rowid,
|
Value<int> rowid,
|
||||||
});
|
});
|
||||||
typedef $SettingUpdateCompanionBuilder =
|
typedef $SettingUpdateCompanionBuilder = SettingCompanion Function({
|
||||||
SettingCompanion Function({
|
|
||||||
Value<String> key,
|
Value<String> key,
|
||||||
Value<String?> partitionKey,
|
Value<String?> partitionKey,
|
||||||
Value<DriftAny?> value,
|
Value<DriftAny?> value,
|
||||||
@@ -498,19 +451,13 @@ class $SettingFilterComposer extends Composer<_$UserDatabase, Setting> {
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnFilters<String> get key => $composableBuilder(
|
ColumnFilters<String> get key => $composableBuilder(
|
||||||
column: $table.key,
|
column: $table.key, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnFilters<String> get partitionKey => $composableBuilder(
|
ColumnFilters<String> get partitionKey => $composableBuilder(
|
||||||
column: $table.partitionKey,
|
column: $table.partitionKey, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnFilters<DriftAny> get value => $composableBuilder(
|
ColumnFilters<DriftAny> get value => $composableBuilder(
|
||||||
column: $table.value,
|
column: $table.value, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $SettingOrderingComposer extends Composer<_$UserDatabase, Setting> {
|
class $SettingOrderingComposer extends Composer<_$UserDatabase, Setting> {
|
||||||
@@ -522,19 +469,14 @@ class $SettingOrderingComposer extends Composer<_$UserDatabase, Setting> {
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnOrderings<String> get key => $composableBuilder(
|
ColumnOrderings<String> get key => $composableBuilder(
|
||||||
column: $table.key,
|
column: $table.key, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<String> get partitionKey => $composableBuilder(
|
ColumnOrderings<String> get partitionKey => $composableBuilder(
|
||||||
column: $table.partitionKey,
|
column: $table.partitionKey,
|
||||||
builder: (column) => ColumnOrderings(column),
|
builder: (column) => ColumnOrderings(column));
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<DriftAny> get value => $composableBuilder(
|
ColumnOrderings<DriftAny> get value => $composableBuilder(
|
||||||
column: $table.value,
|
column: $table.value, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $SettingAnnotationComposer extends Composer<_$UserDatabase, Setting> {
|
class $SettingAnnotationComposer extends Composer<_$UserDatabase, Setting> {
|
||||||
@@ -549,17 +491,13 @@ class $SettingAnnotationComposer extends Composer<_$UserDatabase, Setting> {
|
|||||||
$composableBuilder(column: $table.key, builder: (column) => column);
|
$composableBuilder(column: $table.key, builder: (column) => column);
|
||||||
|
|
||||||
GeneratedColumn<String> get partitionKey => $composableBuilder(
|
GeneratedColumn<String> get partitionKey => $composableBuilder(
|
||||||
column: $table.partitionKey,
|
column: $table.partitionKey, builder: (column) => column);
|
||||||
builder: (column) => column,
|
|
||||||
);
|
|
||||||
|
|
||||||
GeneratedColumn<DriftAny> get value =>
|
GeneratedColumn<DriftAny> get value =>
|
||||||
$composableBuilder(column: $table.value, builder: (column) => column);
|
$composableBuilder(column: $table.value, builder: (column) => column);
|
||||||
}
|
}
|
||||||
|
|
||||||
class $SettingTableManager
|
class $SettingTableManager extends RootTableManager<
|
||||||
extends
|
|
||||||
RootTableManager<
|
|
||||||
_$UserDatabase,
|
_$UserDatabase,
|
||||||
Setting,
|
Setting,
|
||||||
SettingData,
|
SettingData,
|
||||||
@@ -570,60 +508,49 @@ class $SettingTableManager
|
|||||||
$SettingUpdateCompanionBuilder,
|
$SettingUpdateCompanionBuilder,
|
||||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||||
SettingData,
|
SettingData,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()> {
|
||||||
> {
|
|
||||||
$SettingTableManager(_$UserDatabase db, Setting table)
|
$SettingTableManager(_$UserDatabase db, Setting table)
|
||||||
: super(
|
: super(TableManagerState(
|
||||||
TableManagerState(
|
|
||||||
db: db,
|
db: db,
|
||||||
table: table,
|
table: table,
|
||||||
createFilteringComposer:
|
createFilteringComposer: () =>
|
||||||
() => $SettingFilterComposer($db: db, $table: table),
|
$SettingFilterComposer($db: db, $table: table),
|
||||||
createOrderingComposer:
|
createOrderingComposer: () =>
|
||||||
() => $SettingOrderingComposer($db: db, $table: table),
|
$SettingOrderingComposer($db: db, $table: table),
|
||||||
createComputedFieldComposer:
|
createComputedFieldComposer: () =>
|
||||||
() => $SettingAnnotationComposer($db: db, $table: table),
|
$SettingAnnotationComposer($db: db, $table: table),
|
||||||
updateCompanionCallback:
|
updateCompanionCallback: ({
|
||||||
({
|
|
||||||
Value<String> key = const Value.absent(),
|
Value<String> key = const Value.absent(),
|
||||||
Value<String?> partitionKey = const Value.absent(),
|
Value<String?> partitionKey = const Value.absent(),
|
||||||
Value<DriftAny?> value = const Value.absent(),
|
Value<DriftAny?> value = const Value.absent(),
|
||||||
Value<int> rowid = const Value.absent(),
|
Value<int> rowid = const Value.absent(),
|
||||||
}) => SettingCompanion(
|
}) =>
|
||||||
|
SettingCompanion(
|
||||||
key: key,
|
key: key,
|
||||||
partitionKey: partitionKey,
|
partitionKey: partitionKey,
|
||||||
value: value,
|
value: value,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
createCompanionCallback:
|
createCompanionCallback: ({
|
||||||
({
|
|
||||||
required String key,
|
required String key,
|
||||||
Value<String?> partitionKey = const Value.absent(),
|
Value<String?> partitionKey = const Value.absent(),
|
||||||
Value<DriftAny?> value = const Value.absent(),
|
Value<DriftAny?> value = const Value.absent(),
|
||||||
Value<int> rowid = const Value.absent(),
|
Value<int> rowid = const Value.absent(),
|
||||||
}) => SettingCompanion.insert(
|
}) =>
|
||||||
|
SettingCompanion.insert(
|
||||||
key: key,
|
key: key,
|
||||||
partitionKey: partitionKey,
|
partitionKey: partitionKey,
|
||||||
value: value,
|
value: value,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
withReferenceMapper:
|
withReferenceMapper: (p0) => p0
|
||||||
(p0) =>
|
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||||
p0
|
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
.toList(),
|
||||||
prefetchHooksCallback: null,
|
prefetchHooksCallback: null,
|
||||||
),
|
));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $SettingProcessedTableManager =
|
typedef $SettingProcessedTableManager = ProcessedTableManager<
|
||||||
ProcessedTableManager<
|
|
||||||
_$UserDatabase,
|
_$UserDatabase,
|
||||||
Setting,
|
Setting,
|
||||||
SettingData,
|
SettingData,
|
||||||
@@ -634,17 +561,14 @@ typedef $SettingProcessedTableManager =
|
|||||||
$SettingUpdateCompanionBuilder,
|
$SettingUpdateCompanionBuilder,
|
||||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||||
SettingData,
|
SettingData,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()>;
|
||||||
>;
|
typedef $IconCacheCreateCompanionBuilder = IconCacheCompanion Function({
|
||||||
typedef $IconCacheCreateCompanionBuilder =
|
|
||||||
IconCacheCompanion Function({
|
|
||||||
required String origin,
|
required String origin,
|
||||||
required Uint8List iconData,
|
required Uint8List iconData,
|
||||||
required DateTime fetchDate,
|
required DateTime fetchDate,
|
||||||
Value<int> rowid,
|
Value<int> rowid,
|
||||||
});
|
});
|
||||||
typedef $IconCacheUpdateCompanionBuilder =
|
typedef $IconCacheUpdateCompanionBuilder = IconCacheCompanion Function({
|
||||||
IconCacheCompanion Function({
|
|
||||||
Value<String> origin,
|
Value<String> origin,
|
||||||
Value<Uint8List> iconData,
|
Value<Uint8List> iconData,
|
||||||
Value<DateTime> fetchDate,
|
Value<DateTime> fetchDate,
|
||||||
@@ -660,19 +584,13 @@ class $IconCacheFilterComposer extends Composer<_$UserDatabase, IconCache> {
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnFilters<String> get origin => $composableBuilder(
|
ColumnFilters<String> get origin => $composableBuilder(
|
||||||
column: $table.origin,
|
column: $table.origin, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnFilters<Uint8List> get iconData => $composableBuilder(
|
ColumnFilters<Uint8List> get iconData => $composableBuilder(
|
||||||
column: $table.iconData,
|
column: $table.iconData, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnFilters<DateTime> get fetchDate => $composableBuilder(
|
ColumnFilters<DateTime> get fetchDate => $composableBuilder(
|
||||||
column: $table.fetchDate,
|
column: $table.fetchDate, builder: (column) => ColumnFilters(column));
|
||||||
builder: (column) => ColumnFilters(column),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $IconCacheOrderingComposer extends Composer<_$UserDatabase, IconCache> {
|
class $IconCacheOrderingComposer extends Composer<_$UserDatabase, IconCache> {
|
||||||
@@ -684,19 +602,13 @@ class $IconCacheOrderingComposer extends Composer<_$UserDatabase, IconCache> {
|
|||||||
super.$removeJoinBuilderFromRootComposer,
|
super.$removeJoinBuilderFromRootComposer,
|
||||||
});
|
});
|
||||||
ColumnOrderings<String> get origin => $composableBuilder(
|
ColumnOrderings<String> get origin => $composableBuilder(
|
||||||
column: $table.origin,
|
column: $table.origin, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<Uint8List> get iconData => $composableBuilder(
|
ColumnOrderings<Uint8List> get iconData => $composableBuilder(
|
||||||
column: $table.iconData,
|
column: $table.iconData, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
|
|
||||||
ColumnOrderings<DateTime> get fetchDate => $composableBuilder(
|
ColumnOrderings<DateTime> get fetchDate => $composableBuilder(
|
||||||
column: $table.fetchDate,
|
column: $table.fetchDate, builder: (column) => ColumnOrderings(column));
|
||||||
builder: (column) => ColumnOrderings(column),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class $IconCacheAnnotationComposer extends Composer<_$UserDatabase, IconCache> {
|
class $IconCacheAnnotationComposer extends Composer<_$UserDatabase, IconCache> {
|
||||||
@@ -717,76 +629,7 @@ class $IconCacheAnnotationComposer extends Composer<_$UserDatabase, IconCache> {
|
|||||||
$composableBuilder(column: $table.fetchDate, builder: (column) => column);
|
$composableBuilder(column: $table.fetchDate, builder: (column) => column);
|
||||||
}
|
}
|
||||||
|
|
||||||
class $IconCacheTableManager
|
class $IconCacheTableManager extends RootTableManager<
|
||||||
extends
|
|
||||||
RootTableManager<
|
|
||||||
_$UserDatabase,
|
|
||||||
IconCache,
|
|
||||||
IconCacheData,
|
|
||||||
$IconCacheFilterComposer,
|
|
||||||
$IconCacheOrderingComposer,
|
|
||||||
$IconCacheAnnotationComposer,
|
|
||||||
$IconCacheCreateCompanionBuilder,
|
|
||||||
$IconCacheUpdateCompanionBuilder,
|
|
||||||
(
|
|
||||||
IconCacheData,
|
|
||||||
BaseReferences<_$UserDatabase, IconCache, IconCacheData>,
|
|
||||||
),
|
|
||||||
IconCacheData,
|
|
||||||
PrefetchHooks Function()
|
|
||||||
> {
|
|
||||||
$IconCacheTableManager(_$UserDatabase db, IconCache table)
|
|
||||||
: super(
|
|
||||||
TableManagerState(
|
|
||||||
db: db,
|
|
||||||
table: table,
|
|
||||||
createFilteringComposer:
|
|
||||||
() => $IconCacheFilterComposer($db: db, $table: table),
|
|
||||||
createOrderingComposer:
|
|
||||||
() => $IconCacheOrderingComposer($db: db, $table: table),
|
|
||||||
createComputedFieldComposer:
|
|
||||||
() => $IconCacheAnnotationComposer($db: db, $table: table),
|
|
||||||
updateCompanionCallback:
|
|
||||||
({
|
|
||||||
Value<String> origin = const Value.absent(),
|
|
||||||
Value<Uint8List> iconData = const Value.absent(),
|
|
||||||
Value<DateTime> fetchDate = const Value.absent(),
|
|
||||||
Value<int> rowid = const Value.absent(),
|
|
||||||
}) => IconCacheCompanion(
|
|
||||||
origin: origin,
|
|
||||||
iconData: iconData,
|
|
||||||
fetchDate: fetchDate,
|
|
||||||
rowid: rowid,
|
|
||||||
),
|
|
||||||
createCompanionCallback:
|
|
||||||
({
|
|
||||||
required String origin,
|
|
||||||
required Uint8List iconData,
|
|
||||||
required DateTime fetchDate,
|
|
||||||
Value<int> rowid = const Value.absent(),
|
|
||||||
}) => IconCacheCompanion.insert(
|
|
||||||
origin: origin,
|
|
||||||
iconData: iconData,
|
|
||||||
fetchDate: fetchDate,
|
|
||||||
rowid: rowid,
|
|
||||||
),
|
|
||||||
withReferenceMapper:
|
|
||||||
(p0) =>
|
|
||||||
p0
|
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
|
||||||
prefetchHooksCallback: null,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef $IconCacheProcessedTableManager =
|
|
||||||
ProcessedTableManager<
|
|
||||||
_$UserDatabase,
|
_$UserDatabase,
|
||||||
IconCache,
|
IconCache,
|
||||||
IconCacheData,
|
IconCacheData,
|
||||||
@@ -797,8 +640,60 @@ typedef $IconCacheProcessedTableManager =
|
|||||||
$IconCacheUpdateCompanionBuilder,
|
$IconCacheUpdateCompanionBuilder,
|
||||||
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
||||||
IconCacheData,
|
IconCacheData,
|
||||||
PrefetchHooks Function()
|
PrefetchHooks Function()> {
|
||||||
>;
|
$IconCacheTableManager(_$UserDatabase db, IconCache table)
|
||||||
|
: super(TableManagerState(
|
||||||
|
db: db,
|
||||||
|
table: table,
|
||||||
|
createFilteringComposer: () =>
|
||||||
|
$IconCacheFilterComposer($db: db, $table: table),
|
||||||
|
createOrderingComposer: () =>
|
||||||
|
$IconCacheOrderingComposer($db: db, $table: table),
|
||||||
|
createComputedFieldComposer: () =>
|
||||||
|
$IconCacheAnnotationComposer($db: db, $table: table),
|
||||||
|
updateCompanionCallback: ({
|
||||||
|
Value<String> origin = const Value.absent(),
|
||||||
|
Value<Uint8List> iconData = const Value.absent(),
|
||||||
|
Value<DateTime> fetchDate = const Value.absent(),
|
||||||
|
Value<int> rowid = const Value.absent(),
|
||||||
|
}) =>
|
||||||
|
IconCacheCompanion(
|
||||||
|
origin: origin,
|
||||||
|
iconData: iconData,
|
||||||
|
fetchDate: fetchDate,
|
||||||
|
rowid: rowid,
|
||||||
|
),
|
||||||
|
createCompanionCallback: ({
|
||||||
|
required String origin,
|
||||||
|
required Uint8List iconData,
|
||||||
|
required DateTime fetchDate,
|
||||||
|
Value<int> rowid = const Value.absent(),
|
||||||
|
}) =>
|
||||||
|
IconCacheCompanion.insert(
|
||||||
|
origin: origin,
|
||||||
|
iconData: iconData,
|
||||||
|
fetchDate: fetchDate,
|
||||||
|
rowid: rowid,
|
||||||
|
),
|
||||||
|
withReferenceMapper: (p0) => p0
|
||||||
|
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||||
|
.toList(),
|
||||||
|
prefetchHooksCallback: null,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
typedef $IconCacheProcessedTableManager = ProcessedTableManager<
|
||||||
|
_$UserDatabase,
|
||||||
|
IconCache,
|
||||||
|
IconCacheData,
|
||||||
|
$IconCacheFilterComposer,
|
||||||
|
$IconCacheOrderingComposer,
|
||||||
|
$IconCacheAnnotationComposer,
|
||||||
|
$IconCacheCreateCompanionBuilder,
|
||||||
|
$IconCacheUpdateCompanionBuilder,
|
||||||
|
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
||||||
|
IconCacheData,
|
||||||
|
PrefetchHooks Function()>;
|
||||||
|
|
||||||
class $UserDatabaseManager {
|
class $UserDatabaseManager {
|
||||||
final _$UserDatabase _db;
|
final _$UserDatabase _db;
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ abstract class _$EngineSettingsCWProxy {
|
|||||||
EngineSettings javascriptEnabled(bool? javascriptEnabled);
|
EngineSettings javascriptEnabled(bool? javascriptEnabled);
|
||||||
|
|
||||||
EngineSettings trackingProtectionPolicy(
|
EngineSettings trackingProtectionPolicy(
|
||||||
TrackingProtectionPolicy? trackingProtectionPolicy,
|
TrackingProtectionPolicy? trackingProtectionPolicy);
|
||||||
);
|
|
||||||
|
|
||||||
EngineSettings httpsOnlyMode(HttpsOnlyMode? httpsOnlyMode);
|
EngineSettings httpsOnlyMode(HttpsOnlyMode? httpsOnlyMode);
|
||||||
|
|
||||||
@@ -20,24 +19,19 @@ abstract class _$EngineSettingsCWProxy {
|
|||||||
EngineSettings preferredColorScheme(ColorScheme? preferredColorScheme);
|
EngineSettings preferredColorScheme(ColorScheme? preferredColorScheme);
|
||||||
|
|
||||||
EngineSettings cookieBannerHandlingMode(
|
EngineSettings cookieBannerHandlingMode(
|
||||||
CookieBannerHandlingMode? cookieBannerHandlingMode,
|
CookieBannerHandlingMode? cookieBannerHandlingMode);
|
||||||
);
|
|
||||||
|
|
||||||
EngineSettings cookieBannerHandlingModePrivateBrowsing(
|
EngineSettings cookieBannerHandlingModePrivateBrowsing(
|
||||||
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing,
|
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing);
|
||||||
);
|
|
||||||
|
|
||||||
EngineSettings cookieBannerHandlingGlobalRules(
|
EngineSettings cookieBannerHandlingGlobalRules(
|
||||||
bool? cookieBannerHandlingGlobalRules,
|
bool? cookieBannerHandlingGlobalRules);
|
||||||
);
|
|
||||||
|
|
||||||
EngineSettings cookieBannerHandlingGlobalRulesSubFrames(
|
EngineSettings cookieBannerHandlingGlobalRulesSubFrames(
|
||||||
bool? cookieBannerHandlingGlobalRulesSubFrames,
|
bool? cookieBannerHandlingGlobalRulesSubFrames);
|
||||||
);
|
|
||||||
|
|
||||||
EngineSettings webContentIsolationStrategy(
|
EngineSettings webContentIsolationStrategy(
|
||||||
WebContentIsolationStrategy? webContentIsolationStrategy,
|
WebContentIsolationStrategy? webContentIsolationStrategy);
|
||||||
);
|
|
||||||
|
|
||||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `EngineSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `EngineSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||||
///
|
///
|
||||||
@@ -71,8 +65,8 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings trackingProtectionPolicy(
|
EngineSettings trackingProtectionPolicy(
|
||||||
TrackingProtectionPolicy? trackingProtectionPolicy,
|
TrackingProtectionPolicy? trackingProtectionPolicy) =>
|
||||||
) => this(trackingProtectionPolicy: trackingProtectionPolicy);
|
this(trackingProtectionPolicy: trackingProtectionPolicy);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings httpsOnlyMode(HttpsOnlyMode? httpsOnlyMode) =>
|
EngineSettings httpsOnlyMode(HttpsOnlyMode? httpsOnlyMode) =>
|
||||||
@@ -80,8 +74,8 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings globalPrivacyControlEnabled(
|
EngineSettings globalPrivacyControlEnabled(
|
||||||
bool? globalPrivacyControlEnabled,
|
bool? globalPrivacyControlEnabled) =>
|
||||||
) => this(globalPrivacyControlEnabled: globalPrivacyControlEnabled);
|
this(globalPrivacyControlEnabled: globalPrivacyControlEnabled);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings preferredColorScheme(ColorScheme? preferredColorScheme) =>
|
EngineSettings preferredColorScheme(ColorScheme? preferredColorScheme) =>
|
||||||
@@ -89,36 +83,35 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings cookieBannerHandlingMode(
|
EngineSettings cookieBannerHandlingMode(
|
||||||
CookieBannerHandlingMode? cookieBannerHandlingMode,
|
CookieBannerHandlingMode? cookieBannerHandlingMode) =>
|
||||||
) => this(cookieBannerHandlingMode: cookieBannerHandlingMode);
|
this(cookieBannerHandlingMode: cookieBannerHandlingMode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings cookieBannerHandlingModePrivateBrowsing(
|
EngineSettings cookieBannerHandlingModePrivateBrowsing(
|
||||||
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing,
|
CookieBannerHandlingMode? cookieBannerHandlingModePrivateBrowsing) =>
|
||||||
) => this(
|
this(
|
||||||
cookieBannerHandlingModePrivateBrowsing:
|
cookieBannerHandlingModePrivateBrowsing:
|
||||||
cookieBannerHandlingModePrivateBrowsing,
|
cookieBannerHandlingModePrivateBrowsing);
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings cookieBannerHandlingGlobalRules(
|
EngineSettings cookieBannerHandlingGlobalRules(
|
||||||
bool? cookieBannerHandlingGlobalRules,
|
bool? cookieBannerHandlingGlobalRules) =>
|
||||||
) => this(cookieBannerHandlingGlobalRules: cookieBannerHandlingGlobalRules);
|
this(cookieBannerHandlingGlobalRules: cookieBannerHandlingGlobalRules);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings cookieBannerHandlingGlobalRulesSubFrames(
|
EngineSettings cookieBannerHandlingGlobalRulesSubFrames(
|
||||||
bool? cookieBannerHandlingGlobalRulesSubFrames,
|
bool? cookieBannerHandlingGlobalRulesSubFrames) =>
|
||||||
) => this(
|
this(
|
||||||
cookieBannerHandlingGlobalRulesSubFrames:
|
cookieBannerHandlingGlobalRulesSubFrames:
|
||||||
cookieBannerHandlingGlobalRulesSubFrames,
|
cookieBannerHandlingGlobalRulesSubFrames);
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
EngineSettings webContentIsolationStrategy(
|
EngineSettings webContentIsolationStrategy(
|
||||||
WebContentIsolationStrategy? webContentIsolationStrategy,
|
WebContentIsolationStrategy? webContentIsolationStrategy) =>
|
||||||
) => this(webContentIsolationStrategy: webContentIsolationStrategy);
|
this(webContentIsolationStrategy: webContentIsolationStrategy);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
||||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `EngineSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `EngineSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -140,8 +133,7 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
|||||||
Object? webContentIsolationStrategy = const $CopyWithPlaceholder(),
|
Object? webContentIsolationStrategy = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return EngineSettings(
|
return EngineSettings(
|
||||||
javascriptEnabled:
|
javascriptEnabled: javascriptEnabled == const $CopyWithPlaceholder()
|
||||||
javascriptEnabled == const $CopyWithPlaceholder()
|
|
||||||
? _value.javascriptEnabled
|
? _value.javascriptEnabled
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: javascriptEnabled as bool?,
|
: javascriptEnabled as bool?,
|
||||||
@@ -150,8 +142,7 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
|||||||
? _value.trackingProtectionPolicy
|
? _value.trackingProtectionPolicy
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: trackingProtectionPolicy as TrackingProtectionPolicy?,
|
: trackingProtectionPolicy as TrackingProtectionPolicy?,
|
||||||
httpsOnlyMode:
|
httpsOnlyMode: httpsOnlyMode == const $CopyWithPlaceholder()
|
||||||
httpsOnlyMode == const $CopyWithPlaceholder()
|
|
||||||
? _value.httpsOnlyMode
|
? _value.httpsOnlyMode
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: httpsOnlyMode as HttpsOnlyMode?,
|
: httpsOnlyMode as HttpsOnlyMode?,
|
||||||
@@ -160,8 +151,7 @@ class _$EngineSettingsCWProxyImpl implements _$EngineSettingsCWProxy {
|
|||||||
? _value.globalPrivacyControlEnabled
|
? _value.globalPrivacyControlEnabled
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: globalPrivacyControlEnabled as bool?,
|
: globalPrivacyControlEnabled as bool?,
|
||||||
preferredColorScheme:
|
preferredColorScheme: preferredColorScheme == const $CopyWithPlaceholder()
|
||||||
preferredColorScheme == const $CopyWithPlaceholder()
|
|
||||||
? _value.preferredColorScheme
|
? _value.preferredColorScheme
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: preferredColorScheme as ColorScheme?,
|
: preferredColorScheme as ColorScheme?,
|
||||||
@@ -211,56 +201,46 @@ EngineSettings _$EngineSettingsFromJson(Map<String, dynamic> json) =>
|
|||||||
EngineSettings.withDefaults(
|
EngineSettings.withDefaults(
|
||||||
javascriptEnabled: json['javascriptEnabled'] as bool?,
|
javascriptEnabled: json['javascriptEnabled'] as bool?,
|
||||||
trackingProtectionPolicy: $enumDecodeNullable(
|
trackingProtectionPolicy: $enumDecodeNullable(
|
||||||
_$TrackingProtectionPolicyEnumMap,
|
_$TrackingProtectionPolicyEnumMap, json['trackingProtectionPolicy']),
|
||||||
json['trackingProtectionPolicy'],
|
httpsOnlyMode:
|
||||||
),
|
$enumDecodeNullable(_$HttpsOnlyModeEnumMap, json['httpsOnlyMode']),
|
||||||
httpsOnlyMode: $enumDecodeNullable(
|
|
||||||
_$HttpsOnlyModeEnumMap,
|
|
||||||
json['httpsOnlyMode'],
|
|
||||||
),
|
|
||||||
globalPrivacyControlEnabled: json['globalPrivacyControlEnabled'] as bool?,
|
globalPrivacyControlEnabled: json['globalPrivacyControlEnabled'] as bool?,
|
||||||
preferredColorScheme: $enumDecodeNullable(
|
preferredColorScheme: $enumDecodeNullable(
|
||||||
_$ColorSchemeEnumMap,
|
_$ColorSchemeEnumMap, json['preferredColorScheme']),
|
||||||
json['preferredColorScheme'],
|
|
||||||
),
|
|
||||||
cookieBannerHandlingMode: $enumDecodeNullable(
|
cookieBannerHandlingMode: $enumDecodeNullable(
|
||||||
_$CookieBannerHandlingModeEnumMap,
|
_$CookieBannerHandlingModeEnumMap, json['cookieBannerHandlingMode']),
|
||||||
json['cookieBannerHandlingMode'],
|
|
||||||
),
|
|
||||||
cookieBannerHandlingModePrivateBrowsing: $enumDecodeNullable(
|
cookieBannerHandlingModePrivateBrowsing: $enumDecodeNullable(
|
||||||
_$CookieBannerHandlingModeEnumMap,
|
_$CookieBannerHandlingModeEnumMap,
|
||||||
json['cookieBannerHandlingModePrivateBrowsing'],
|
json['cookieBannerHandlingModePrivateBrowsing']),
|
||||||
),
|
|
||||||
cookieBannerHandlingGlobalRules:
|
cookieBannerHandlingGlobalRules:
|
||||||
json['cookieBannerHandlingGlobalRules'] as bool?,
|
json['cookieBannerHandlingGlobalRules'] as bool?,
|
||||||
cookieBannerHandlingGlobalRulesSubFrames:
|
cookieBannerHandlingGlobalRulesSubFrames:
|
||||||
json['cookieBannerHandlingGlobalRulesSubFrames'] as bool?,
|
json['cookieBannerHandlingGlobalRulesSubFrames'] as bool?,
|
||||||
webContentIsolationStrategy: $enumDecodeNullable(
|
webContentIsolationStrategy: $enumDecodeNullable(
|
||||||
_$WebContentIsolationStrategyEnumMap,
|
_$WebContentIsolationStrategyEnumMap,
|
||||||
json['webContentIsolationStrategy'],
|
json['webContentIsolationStrategy']),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> _$EngineSettingsToJson(
|
Map<String, dynamic> _$EngineSettingsToJson(EngineSettings instance) =>
|
||||||
EngineSettings instance,
|
<String, dynamic>{
|
||||||
) => <String, dynamic>{
|
|
||||||
'javascriptEnabled': instance.javascriptEnabled,
|
'javascriptEnabled': instance.javascriptEnabled,
|
||||||
'trackingProtectionPolicy':
|
'trackingProtectionPolicy':
|
||||||
_$TrackingProtectionPolicyEnumMap[instance.trackingProtectionPolicy]!,
|
_$TrackingProtectionPolicyEnumMap[instance.trackingProtectionPolicy]!,
|
||||||
'httpsOnlyMode': _$HttpsOnlyModeEnumMap[instance.httpsOnlyMode]!,
|
'httpsOnlyMode': _$HttpsOnlyModeEnumMap[instance.httpsOnlyMode]!,
|
||||||
'preferredColorScheme': _$ColorSchemeEnumMap[instance.preferredColorScheme]!,
|
'preferredColorScheme':
|
||||||
|
_$ColorSchemeEnumMap[instance.preferredColorScheme]!,
|
||||||
'globalPrivacyControlEnabled': instance.globalPrivacyControlEnabled,
|
'globalPrivacyControlEnabled': instance.globalPrivacyControlEnabled,
|
||||||
'cookieBannerHandlingMode':
|
'cookieBannerHandlingMode':
|
||||||
_$CookieBannerHandlingModeEnumMap[instance.cookieBannerHandlingMode]!,
|
_$CookieBannerHandlingModeEnumMap[instance.cookieBannerHandlingMode]!,
|
||||||
'cookieBannerHandlingModePrivateBrowsing':
|
'cookieBannerHandlingModePrivateBrowsing':
|
||||||
_$CookieBannerHandlingModeEnumMap[instance
|
_$CookieBannerHandlingModeEnumMap[
|
||||||
.cookieBannerHandlingModePrivateBrowsing]!,
|
instance.cookieBannerHandlingModePrivateBrowsing]!,
|
||||||
'cookieBannerHandlingGlobalRules': instance.cookieBannerHandlingGlobalRules,
|
'cookieBannerHandlingGlobalRules':
|
||||||
|
instance.cookieBannerHandlingGlobalRules,
|
||||||
'cookieBannerHandlingGlobalRulesSubFrames':
|
'cookieBannerHandlingGlobalRulesSubFrames':
|
||||||
instance.cookieBannerHandlingGlobalRulesSubFrames,
|
instance.cookieBannerHandlingGlobalRulesSubFrames,
|
||||||
'webContentIsolationStrategy':
|
'webContentIsolationStrategy': _$WebContentIsolationStrategyEnumMap[
|
||||||
_$WebContentIsolationStrategyEnumMap[instance
|
instance.webContentIsolationStrategy]!,
|
||||||
.webContentIsolationStrategy]!,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const _$TrackingProtectionPolicyEnumMap = {
|
const _$TrackingProtectionPolicyEnumMap = {
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ abstract class _$GeneralSettingsCWProxy {
|
|||||||
GeneralSettings enableReadability(bool enableReadability);
|
GeneralSettings enableReadability(bool enableReadability);
|
||||||
|
|
||||||
GeneralSettings deleteBrowsingDataOnQuit(
|
GeneralSettings deleteBrowsingDataOnQuit(
|
||||||
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit,
|
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit);
|
||||||
);
|
|
||||||
|
|
||||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `GeneralSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `GeneralSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||||
///
|
///
|
||||||
@@ -43,10 +42,11 @@ class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
GeneralSettings deleteBrowsingDataOnQuit(
|
GeneralSettings deleteBrowsingDataOnQuit(
|
||||||
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit,
|
Set<DeleteBrowsingDataType>? deleteBrowsingDataOnQuit) =>
|
||||||
) => this(deleteBrowsingDataOnQuit: deleteBrowsingDataOnQuit);
|
this(deleteBrowsingDataOnQuit: deleteBrowsingDataOnQuit);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
||||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `GeneralSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `GeneralSettings(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -59,13 +59,11 @@ class _$GeneralSettingsCWProxyImpl implements _$GeneralSettingsCWProxy {
|
|||||||
Object? deleteBrowsingDataOnQuit = const $CopyWithPlaceholder(),
|
Object? deleteBrowsingDataOnQuit = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return GeneralSettings(
|
return GeneralSettings(
|
||||||
themeMode:
|
themeMode: themeMode == const $CopyWithPlaceholder()
|
||||||
themeMode == const $CopyWithPlaceholder()
|
|
||||||
? _value.themeMode
|
? _value.themeMode
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: themeMode as ThemeMode,
|
: themeMode as ThemeMode,
|
||||||
enableReadability:
|
enableReadability: enableReadability == const $CopyWithPlaceholder()
|
||||||
enableReadability == const $CopyWithPlaceholder()
|
|
||||||
? _value.enableReadability
|
? _value.enableReadability
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: enableReadability as bool,
|
: enableReadability as bool,
|
||||||
@@ -102,8 +100,7 @@ Map<String, dynamic> _$GeneralSettingsToJson(GeneralSettings instance) =>
|
|||||||
<String, dynamic>{
|
<String, dynamic>{
|
||||||
'themeMode': _$ThemeModeEnumMap[instance.themeMode]!,
|
'themeMode': _$ThemeModeEnumMap[instance.themeMode]!,
|
||||||
'enableReadability': instance.enableReadability,
|
'enableReadability': instance.enableReadability,
|
||||||
'deleteBrowsingDataOnQuit':
|
'deleteBrowsingDataOnQuit': instance.deleteBrowsingDataOnQuit
|
||||||
instance.deleteBrowsingDataOnQuit
|
|
||||||
?.map((e) => _$DeleteBrowsingDataTypeEnumMap[e]!)
|
?.map((e) => _$DeleteBrowsingDataTypeEnumMap[e]!)
|
||||||
.toList(),
|
.toList(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final iconCacheSizeMegabytesProvider =
|
|||||||
AutoDisposeStreamProvider<double>.internal(
|
AutoDisposeStreamProvider<double>.internal(
|
||||||
iconCacheSizeMegabytes,
|
iconCacheSizeMegabytes,
|
||||||
name: r'iconCacheSizeMegabytesProvider',
|
name: r'iconCacheSizeMegabytesProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$iconCacheSizeMegabytesHash,
|
: _$iconCacheSizeMegabytesHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -33,8 +32,7 @@ String _$storedAuthDataHash() => r'5f7e3ef6233a2036f7ce3728131901a46b1e548e';
|
|||||||
final _storedAuthDataProvider = AutoDisposeFutureProvider<String?>.internal(
|
final _storedAuthDataProvider = AutoDisposeFutureProvider<String?>.internal(
|
||||||
_storedAuthData,
|
_storedAuthData,
|
||||||
name: r'_storedAuthDataProvider',
|
name: r'_storedAuthDataProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$storedAuthDataHash,
|
: _$storedAuthDataHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -100,8 +98,7 @@ String _$incognitoModeEnabledHash() =>
|
|||||||
final incognitoModeEnabledProvider = AutoDisposeProvider<bool>.internal(
|
final incognitoModeEnabledProvider = AutoDisposeProvider<bool>.internal(
|
||||||
incognitoModeEnabled,
|
incognitoModeEnabled,
|
||||||
name: r'incognitoModeEnabledProvider',
|
name: r'incognitoModeEnabledProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$incognitoModeEnabledHash,
|
: _$incognitoModeEnabledHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final authRepositoryProvider =
|
|||||||
AutoDisposeNotifierProvider<AuthRepository, void>.internal(
|
AutoDisposeNotifierProvider<AuthRepository, void>.internal(
|
||||||
AuthRepository.new,
|
AuthRepository.new,
|
||||||
name: r'authRepositoryProvider',
|
name: r'authRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$authRepositoryHash,
|
: _$authRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final cacheRepositoryProvider =
|
|||||||
NotifierProvider<CacheRepository, void>.internal(
|
NotifierProvider<CacheRepository, void>.internal(
|
||||||
CacheRepository.new,
|
CacheRepository.new,
|
||||||
name: r'cacheRepositoryProvider',
|
name: r'cacheRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$cacheRepositoryHash,
|
: _$cacheRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final engineSettingsRepositoryProvider =
|
|||||||
NotifierProvider<EngineSettingsRepository, EngineSettings>.internal(
|
NotifierProvider<EngineSettingsRepository, EngineSettings>.internal(
|
||||||
EngineSettingsRepository.new,
|
EngineSettingsRepository.new,
|
||||||
name: r'engineSettingsRepositoryProvider',
|
name: r'engineSettingsRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$engineSettingsRepositoryHash,
|
: _$engineSettingsRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final generalSettingsRepositoryProvider =
|
|||||||
NotifierProvider<GeneralSettingsRepository, GeneralSettings>.internal(
|
NotifierProvider<GeneralSettingsRepository, GeneralSettings>.internal(
|
||||||
GeneralSettingsRepository.new,
|
GeneralSettingsRepository.new,
|
||||||
name: r'generalSettingsRepositoryProvider',
|
name: r'generalSettingsRepositoryProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$generalSettingsRepositoryHash,
|
: _$generalSettingsRepositoryHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ final localAuthenticationServiceProvider =
|
|||||||
AsyncNotifierProvider<LocalAuthenticationService, bool>.internal(
|
AsyncNotifierProvider<LocalAuthenticationService, bool>.internal(
|
||||||
LocalAuthenticationService.new,
|
LocalAuthenticationService.new,
|
||||||
name: r'localAuthenticationServiceProvider',
|
name: r'localAuthenticationServiceProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$localAuthenticationServiceHash,
|
: _$localAuthenticationServiceHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ final authControllerProvider =
|
|||||||
AutoDisposeAsyncNotifierProvider<AuthController, void>.internal(
|
AutoDisposeAsyncNotifierProvider<AuthController, void>.internal(
|
||||||
AuthController.new,
|
AuthController.new,
|
||||||
name: r'authControllerProvider',
|
name: r'authControllerProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
? null
|
||||||
: _$authControllerHash,
|
: _$authControllerHash,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|||||||
@@ -39,13 +39,21 @@ class PageInfoFamily extends Family<AsyncValue<WebPageInfo>> {
|
|||||||
const PageInfoFamily();
|
const PageInfoFamily();
|
||||||
|
|
||||||
/// See also [pageInfo].
|
/// See also [pageInfo].
|
||||||
PageInfoProvider call(Uri url) {
|
PageInfoProvider call(
|
||||||
return PageInfoProvider(url);
|
Uri url,
|
||||||
|
) {
|
||||||
|
return PageInfoProvider(
|
||||||
|
url,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
PageInfoProvider getProviderOverride(covariant PageInfoProvider provider) {
|
PageInfoProvider getProviderOverride(
|
||||||
return call(provider.url);
|
covariant PageInfoProvider provider,
|
||||||
|
) {
|
||||||
|
return call(
|
||||||
|
provider.url,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||||
@@ -66,9 +74,13 @@ class PageInfoFamily extends Family<AsyncValue<WebPageInfo>> {
|
|||||||
/// See also [pageInfo].
|
/// See also [pageInfo].
|
||||||
class PageInfoProvider extends FutureProvider<WebPageInfo> {
|
class PageInfoProvider extends FutureProvider<WebPageInfo> {
|
||||||
/// See also [pageInfo].
|
/// See also [pageInfo].
|
||||||
PageInfoProvider(Uri url)
|
PageInfoProvider(
|
||||||
: this._internal(
|
Uri url,
|
||||||
(ref) => pageInfo(ref as PageInfoRef, url),
|
) : this._internal(
|
||||||
|
(ref) => pageInfo(
|
||||||
|
ref as PageInfoRef,
|
||||||
|
url,
|
||||||
|
),
|
||||||
from: pageInfoProvider,
|
from: pageInfoProvider,
|
||||||
name: r'pageInfoProvider',
|
name: r'pageInfoProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
@@ -143,6 +155,5 @@ class _PageInfoProviderElement extends FutureProviderElement<WebPageInfo>
|
|||||||
@override
|
@override
|
||||||
Uri get url => (origin as PageInfoProvider).url;
|
Uri get url => (origin as PageInfoProvider).url;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user