run build with new formatter
This commit is contained in:
@@ -29,10 +29,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -48,10 +47,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -28,15 +28,14 @@ String _$willAcceptDropHash() => r'97b47784ef9101757602b4408d1f545ef2308830';
|
|||||||
@ProviderFor(WillAcceptDrop)
|
@ProviderFor(WillAcceptDrop)
|
||||||
final willAcceptDropProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$WillAcceptDrop = AutoDisposeNotifier<DropTargetData?>;
|
typedef _$WillAcceptDrop = AutoDisposeNotifier<DropTargetData?>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,21 +55,18 @@ 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 == const $CopyWithPlaceholder()
|
||||||
title:
|
? _value.title
|
||||||
title == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.title
|
: title as String?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
favicon: favicon == const $CopyWithPlaceholder()
|
||||||
: title as String?,
|
? _value.favicon
|
||||||
favicon:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
favicon == const $CopyWithPlaceholder()
|
: favicon as BrowserIcon?,
|
||||||
? _value.favicon
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: favicon as BrowserIcon?,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,22 +12,23 @@ String _$appInitializationServiceHash() =>
|
|||||||
/// See also [AppInitializationService].
|
/// See also [AppInitializationService].
|
||||||
@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
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$genericWebsiteServiceHash() =>
|
|||||||
@ProviderFor(GenericWebsiteService)
|
@ProviderFor(GenericWebsiteService)
|
||||||
final genericWebsiteServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$GenericWebsiteService = Notifier<void>;
|
typedef _$GenericWebsiteService = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,10 +13,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -31,19 +30,18 @@ String _$appWidgetLaunchStreamHash() =>
|
|||||||
@ProviderFor(appWidgetLaunchStream)
|
@ProviderFor(appWidgetLaunchStream)
|
||||||
final appWidgetLaunchStreamProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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,46 +90,38 @@ 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 == const $CopyWithPlaceholder()
|
||||||
domain:
|
? _value.domain
|
||||||
domain == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.domain
|
: domain as String,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
trigger: trigger == const $CopyWithPlaceholder()
|
||||||
: domain as String,
|
? _value.trigger
|
||||||
trigger:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
trigger == const $CopyWithPlaceholder()
|
: trigger as String,
|
||||||
? _value.trigger
|
urlTemplate: urlTemplate == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.urlTemplate
|
||||||
: trigger as String,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
urlTemplate:
|
: urlTemplate as String,
|
||||||
urlTemplate == const $CopyWithPlaceholder()
|
group: group == const $CopyWithPlaceholder()
|
||||||
? _value.urlTemplate
|
? _value.group
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: urlTemplate as String,
|
: group as BangGroup?,
|
||||||
group:
|
category: category == const $CopyWithPlaceholder()
|
||||||
group == const $CopyWithPlaceholder()
|
? _value.category
|
||||||
? _value.group
|
// ignore: cast_nullable_to_non_nullable
|
||||||
// ignore: cast_nullable_to_non_nullable
|
: category as String?,
|
||||||
: group as BangGroup?,
|
subCategory: subCategory == const $CopyWithPlaceholder()
|
||||||
category:
|
? _value.subCategory
|
||||||
category == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.category
|
: subCategory as String?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
format: format == const $CopyWithPlaceholder()
|
||||||
: category as String?,
|
? _value.format
|
||||||
subCategory:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
subCategory == const $CopyWithPlaceholder()
|
: format as Set<BangFormat>?,
|
||||||
? _value.subCategory
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: subCategory as String?,
|
|
||||||
format:
|
|
||||||
format == const $CopyWithPlaceholder()
|
|
||||||
? _value.format
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: format as Set<BangFormat>?,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -144,27 +137,26 @@ extension $BangCopyWith on Bang {
|
|||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
Bang _$BangFromJson(Map<String, dynamic> json) => Bang(
|
Bang _$BangFromJson(Map<String, dynamic> json) => Bang(
|
||||||
websiteName: json['s'] as String,
|
websiteName: json['s'] as String,
|
||||||
domain: json['d'] as String,
|
domain: json['d'] as String,
|
||||||
trigger: json['t'] as String,
|
trigger: json['t'] as String,
|
||||||
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(),
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> _$BangToJson(Bang instance) => <String, dynamic>{
|
Map<String, dynamic> _$BangToJson(Bang instance) => <String, dynamic>{
|
||||||
's': instance.websiteName,
|
's': instance.websiteName,
|
||||||
'd': instance.domain,
|
'd': instance.domain,
|
||||||
't': instance.trigger,
|
't': instance.trigger,
|
||||||
'u': instance.urlTemplate,
|
'u': instance.urlTemplate,
|
||||||
'c': instance.category,
|
'c': instance.category,
|
||||||
'sc': instance.subCategory,
|
'sc': instance.subCategory,
|
||||||
'fmt': instance.format?.map((e) => _$BangFormatEnumMap[e]!).toList(),
|
'fmt': instance.format?.map((e) => _$BangFormatEnumMap[e]!).toList(),
|
||||||
};
|
};
|
||||||
|
|
||||||
const _$BangFormatEnumMap = {
|
const _$BangFormatEnumMap = {
|
||||||
BangFormat.openBasePath: 'open_base_path',
|
BangFormat.openBasePath: 'open_base_path',
|
||||||
|
|||||||
@@ -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,56 +104,46 @@ 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 == const $CopyWithPlaceholder()
|
||||||
domain:
|
? _value.domain
|
||||||
domain == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.domain
|
: domain as String,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
trigger: trigger == const $CopyWithPlaceholder()
|
||||||
: domain as String,
|
? _value.trigger
|
||||||
trigger:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
trigger == const $CopyWithPlaceholder()
|
: trigger as String,
|
||||||
? _value.trigger
|
urlTemplate: urlTemplate == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.urlTemplate
|
||||||
: trigger as String,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
urlTemplate:
|
: urlTemplate as String,
|
||||||
urlTemplate == const $CopyWithPlaceholder()
|
category: category == const $CopyWithPlaceholder()
|
||||||
? _value.urlTemplate
|
? _value.category
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: urlTemplate as String,
|
: category as String?,
|
||||||
category:
|
subCategory: subCategory == const $CopyWithPlaceholder()
|
||||||
category == const $CopyWithPlaceholder()
|
? _value.subCategory
|
||||||
? _value.category
|
// ignore: cast_nullable_to_non_nullable
|
||||||
// ignore: cast_nullable_to_non_nullable
|
: subCategory as String?,
|
||||||
: category as String?,
|
format: format == const $CopyWithPlaceholder()
|
||||||
subCategory:
|
? _value.format
|
||||||
subCategory == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.subCategory
|
: format as Set<BangFormat>?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
frequency: frequency == const $CopyWithPlaceholder()
|
||||||
: subCategory as String?,
|
? _value.frequency
|
||||||
format:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
format == const $CopyWithPlaceholder()
|
: frequency as int?,
|
||||||
? _value.format
|
lastUsed: lastUsed == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.lastUsed
|
||||||
: format as Set<BangFormat>?,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
frequency:
|
: lastUsed as DateTime?,
|
||||||
frequency == const $CopyWithPlaceholder()
|
icon: icon == const $CopyWithPlaceholder()
|
||||||
? _value.frequency
|
? _value.icon
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: frequency as int?,
|
: icon as BrowserIcon?,
|
||||||
lastUsed:
|
|
||||||
lastUsed == const $CopyWithPlaceholder()
|
|
||||||
? _value.lastUsed
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: lastUsed as DateTime?,
|
|
||||||
icon:
|
|
||||||
icon == const $CopyWithPlaceholder()
|
|
||||||
? _value.icon
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: icon as BrowserIcon?,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$bangSourceServiceHash() => r'2f734d563fa20de306a72013526ef1f72f910fe1';
|
|||||||
@ProviderFor(BangSourceService)
|
@ProviderFor(BangSourceService)
|
||||||
final bangSourceServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$BangSourceService = AutoDisposeNotifier<void>;
|
typedef _$BangSourceService = AutoDisposeNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,19 +74,23 @@ 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(
|
||||||
from: bangDataProvider,
|
(ref) => bangData(
|
||||||
name: r'bangDataProvider',
|
ref as BangDataRef,
|
||||||
debugGetCreateSourceHash:
|
trigger,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: bangDataProvider,
|
||||||
: _$bangDataHash,
|
name: r'bangDataProvider',
|
||||||
dependencies: BangDataFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies: BangDataFamily._allTransitiveDependencies,
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
trigger: trigger,
|
? null
|
||||||
);
|
: _$bangDataHash,
|
||||||
|
dependencies: BangDataFamily._dependencies,
|
||||||
|
allTransitiveDependencies: BangDataFamily._allTransitiveDependencies,
|
||||||
|
trigger: trigger,
|
||||||
|
);
|
||||||
|
|
||||||
BangDataProvider._internal(
|
BangDataProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,10 +164,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -170,20 +180,19 @@ String _$bangCategoriesHash() => r'947fcfd2dffcc7f585c6ed7379d319f4fe72293a';
|
|||||||
@ProviderFor(bangCategories)
|
@ProviderFor(bangCategories)
|
||||||
final bangCategoriesProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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,22 +250,24 @@ 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(
|
||||||
from: bangDataListProvider,
|
ref as BangDataListRef,
|
||||||
name: r'bangDataListProvider',
|
filter: filter,
|
||||||
debugGetCreateSourceHash:
|
),
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
from: bangDataListProvider,
|
||||||
? null
|
name: r'bangDataListProvider',
|
||||||
: _$bangDataListHash,
|
debugGetCreateSourceHash:
|
||||||
dependencies: BangDataListFamily._dependencies,
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
allTransitiveDependencies:
|
? null
|
||||||
BangDataListFamily._allTransitiveDependencies,
|
: _$bangDataListHash,
|
||||||
filter: filter,
|
dependencies: BangDataListFamily._dependencies,
|
||||||
);
|
allTransitiveDependencies:
|
||||||
|
BangDataListFamily._allTransitiveDependencies,
|
||||||
|
filter: filter,
|
||||||
|
);
|
||||||
|
|
||||||
BangDataListProvider._internal(
|
BangDataListProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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() =>
|
||||||
@@ -345,15 +356,14 @@ String _$frequentBangDataListHash() =>
|
|||||||
@ProviderFor(frequentBangDataList)
|
@ProviderFor(frequentBangDataList)
|
||||||
final frequentBangDataListProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -364,20 +374,19 @@ String _$searchHistoryHash() => r'7b97798729643de8e44fd8024cdc02f35124b08b';
|
|||||||
@ProviderFor(searchHistory)
|
@ProviderFor(searchHistory)
|
||||||
final searchHistoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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,20 +434,24 @@ 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(
|
||||||
from: lastSyncOfGroupProvider,
|
(ref) => lastSyncOfGroup(
|
||||||
name: r'lastSyncOfGroupProvider',
|
ref as LastSyncOfGroupRef,
|
||||||
debugGetCreateSourceHash:
|
group,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: lastSyncOfGroupProvider,
|
||||||
: _$lastSyncOfGroupHash,
|
name: r'lastSyncOfGroupProvider',
|
||||||
dependencies: LastSyncOfGroupFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
LastSyncOfGroupFamily._allTransitiveDependencies,
|
? null
|
||||||
group: group,
|
: _$lastSyncOfGroupHash,
|
||||||
);
|
dependencies: LastSyncOfGroupFamily._dependencies,
|
||||||
|
allTransitiveDependencies:
|
||||||
|
LastSyncOfGroupFamily._allTransitiveDependencies,
|
||||||
|
group: group,
|
||||||
|
);
|
||||||
|
|
||||||
LastSyncOfGroupProvider._internal(
|
LastSyncOfGroupProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,20 +565,24 @@ 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(
|
||||||
from: bangCountOfGroupProvider,
|
(ref) => bangCountOfGroup(
|
||||||
name: r'bangCountOfGroupProvider',
|
ref as BangCountOfGroupRef,
|
||||||
debugGetCreateSourceHash:
|
group,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: bangCountOfGroupProvider,
|
||||||
: _$bangCountOfGroupHash,
|
name: r'bangCountOfGroupProvider',
|
||||||
dependencies: BangCountOfGroupFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
BangCountOfGroupFamily._allTransitiveDependencies,
|
? null
|
||||||
group: group,
|
: _$bangCountOfGroupHash,
|
||||||
);
|
dependencies: BangCountOfGroupFamily._dependencies,
|
||||||
|
allTransitiveDependencies:
|
||||||
|
BangCountOfGroupFamily._allTransitiveDependencies,
|
||||||
|
group: group,
|
||||||
|
);
|
||||||
|
|
||||||
BangCountOfGroupProvider._internal(
|
BangCountOfGroupProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,22 +77,27 @@ 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(
|
||||||
from: triggerBangSearchProvider,
|
(ref) => triggerBangSearch(
|
||||||
name: r'triggerBangSearchProvider',
|
ref as TriggerBangSearchRef,
|
||||||
debugGetCreateSourceHash:
|
bang,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
searchQuery,
|
||||||
? null
|
),
|
||||||
: _$triggerBangSearchHash,
|
from: triggerBangSearchProvider,
|
||||||
dependencies: TriggerBangSearchFamily._dependencies,
|
name: r'triggerBangSearchProvider',
|
||||||
allTransitiveDependencies:
|
debugGetCreateSourceHash:
|
||||||
TriggerBangSearchFamily._allTransitiveDependencies,
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
bang: bang,
|
? null
|
||||||
searchQuery: searchQuery,
|
: _$triggerBangSearchHash,
|
||||||
);
|
dependencies: TriggerBangSearchFamily._dependencies,
|
||||||
|
allTransitiveDependencies:
|
||||||
|
TriggerBangSearchFamily._allTransitiveDependencies,
|
||||||
|
bang: bang,
|
||||||
|
searchQuery: searchQuery,
|
||||||
|
);
|
||||||
|
|
||||||
TriggerBangSearchProvider._internal(
|
TriggerBangSearchProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$bangDataRepositoryHash() =>
|
|||||||
@ProviderFor(BangDataRepository)
|
@ProviderFor(BangDataRepository)
|
||||||
final bangDataRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$BangDataRepository = Notifier<void>;
|
typedef _$BangDataRepository = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -12,15 +12,13 @@ String _$bangSearchHash() => r'abf9ff5badf2ecfbcbde148fd2c849beac83bec4';
|
|||||||
@ProviderFor(BangSearch)
|
@ProviderFor(BangSearch)
|
||||||
final bangSearchProvider =
|
final bangSearchProvider =
|
||||||
AutoDisposeStreamNotifierProvider<BangSearch, List<BangData>>.internal(
|
AutoDisposeStreamNotifierProvider<BangSearch, List<BangData>>.internal(
|
||||||
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
|
dependencies: null,
|
||||||
: _$bangSearchHash,
|
allTransitiveDependencies: null,
|
||||||
dependencies: null,
|
);
|
||||||
allTransitiveDependencies: null,
|
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$BangSearch = AutoDisposeStreamNotifier<List<BangData>>;
|
typedef _$BangSearch = AutoDisposeStreamNotifier<List<BangData>>;
|
||||||
String _$seamlessBangProviderHash() =>
|
String _$seamlessBangProviderHash() =>
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$bangSyncRepositoryHash() =>
|
|||||||
@ProviderFor(BangSyncRepository)
|
@ProviderFor(BangSyncRepository)
|
||||||
final bangSyncRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$BangSyncRepository = Notifier<void>;
|
typedef _$BangSyncRepository = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,
|
type: DriftSqlType.string,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$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',
|
type: DriftSqlType.string,
|
||||||
aliasedName,
|
requiredDuringInsert: true,
|
||||||
false,
|
$customConstraints: 'NOT NULL')
|
||||||
type: DriftSqlType.string,
|
.withConverter<ChatMetadata>(ChatData.$convertermetadata);
|
||||||
requiredDuringInsert: true,
|
|
||||||
$customConstraints: 'NOT NULL',
|
|
||||||
).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']),
|
||||||
@@ -142,8 +126,8 @@ class ChatDataCompanion extends UpdateCompanion<ChatDataData> {
|
|||||||
required String chatId,
|
required String chatId,
|
||||||
required ChatMetadata metadata,
|
required ChatMetadata metadata,
|
||||||
this.rowid = const Value.absent(),
|
this.rowid = const Value.absent(),
|
||||||
}) : chatId = Value(chatId),
|
}) : chatId = Value(chatId),
|
||||||
metadata = Value(metadata);
|
metadata = Value(metadata);
|
||||||
static Insertable<ChatDataData> custom({
|
static Insertable<ChatDataData> custom({
|
||||||
Expression<String>? chatId,
|
Expression<String>? chatId,
|
||||||
Expression<String>? metadata,
|
Expression<String>? metadata,
|
||||||
@@ -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,
|
type: DriftSqlType.string,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$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,
|
type: DriftSqlType.string,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: 'NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$customConstraints: 'NOT NULL',
|
|
||||||
);
|
|
||||||
late final GeneratedColumn<String> orderKey = GeneratedColumn<String>(
|
late final GeneratedColumn<String> orderKey = GeneratedColumn<String>(
|
||||||
'order_key',
|
'order_key', aliasedName, false,
|
||||||
aliasedName,
|
type: DriftSqlType.string,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: 'NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$customConstraints: 'NOT NULL',
|
|
||||||
);
|
|
||||||
late final GeneratedColumn<String> messageJson = GeneratedColumn<String>(
|
late final GeneratedColumn<String> messageJson = GeneratedColumn<String>(
|
||||||
'message_json',
|
'message_json', aliasedName, false,
|
||||||
aliasedName,
|
type: DriftSqlType.string,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: 'NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$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,17 +278,17 @@ 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,
|
||||||
messageJson: messageJson ?? this.messageJson,
|
messageJson: messageJson ?? this.messageJson,
|
||||||
);
|
);
|
||||||
ChatMessageData copyWithCompanion(ChatMessageCompanion data) {
|
ChatMessageData copyWithCompanion(ChatMessageCompanion data) {
|
||||||
return ChatMessageData(
|
return ChatMessageData(
|
||||||
messageId: data.messageId.present ? data.messageId.value : this.messageId,
|
messageId: data.messageId.present ? data.messageId.value : this.messageId,
|
||||||
@@ -390,10 +341,10 @@ class ChatMessageCompanion extends UpdateCompanion<ChatMessageData> {
|
|||||||
required String orderKey,
|
required String orderKey,
|
||||||
required String messageJson,
|
required String messageJson,
|
||||||
this.rowid = const Value.absent(),
|
this.rowid = const Value.absent(),
|
||||||
}) : messageId = Value(messageId),
|
}) : messageId = Value(messageId),
|
||||||
chatId = Value(chatId),
|
chatId = Value(chatId),
|
||||||
orderKey = Value(orderKey),
|
orderKey = Value(orderKey),
|
||||||
messageJson = Value(messageJson);
|
messageJson = Value(messageJson);
|
||||||
static Insertable<ChatMessageData> custom({
|
static Insertable<ChatMessageData> custom({
|
||||||
Expression<String>? messageId,
|
Expression<String>? messageId,
|
||||||
Expression<String>? chatId,
|
Expression<String>? chatId,
|
||||||
@@ -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,79 +415,80 @@ 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 = ChatDataCompanion Function({
|
||||||
typedef $ChatDataUpdateCompanionBuilder =
|
Value<String> chatId,
|
||||||
ChatDataCompanion Function({
|
Value<ChatMetadata> metadata,
|
||||||
Value<String> chatId,
|
Value<int> rowid,
|
||||||
Value<ChatMetadata> metadata,
|
});
|
||||||
Value<int> rowid,
|
|
||||||
});
|
|
||||||
|
|
||||||
class $ChatDataFilterComposer extends Composer<_$ChatDatabase, ChatData> {
|
class $ChatDataFilterComposer extends Composer<_$ChatDatabase, ChatData> {
|
||||||
$ChatDataFilterComposer({
|
$ChatDataFilterComposer({
|
||||||
@@ -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,100 +537,81 @@ 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
|
_$ChatDatabase,
|
||||||
RootTableManager<
|
ChatData,
|
||||||
_$ChatDatabase,
|
ChatDataData,
|
||||||
ChatData,
|
$ChatDataFilterComposer,
|
||||||
ChatDataData,
|
$ChatDataOrderingComposer,
|
||||||
$ChatDataFilterComposer,
|
$ChatDataAnnotationComposer,
|
||||||
$ChatDataOrderingComposer,
|
$ChatDataCreateCompanionBuilder,
|
||||||
$ChatDataAnnotationComposer,
|
$ChatDataUpdateCompanionBuilder,
|
||||||
$ChatDataCreateCompanionBuilder,
|
(ChatDataData, BaseReferences<_$ChatDatabase, ChatData, ChatDataData>),
|
||||||
$ChatDataUpdateCompanionBuilder,
|
ChatDataData,
|
||||||
(
|
PrefetchHooks Function()> {
|
||||||
ChatDataData,
|
|
||||||
BaseReferences<_$ChatDatabase, ChatData, ChatDataData>,
|
|
||||||
),
|
|
||||||
ChatDataData,
|
|
||||||
PrefetchHooks Function()
|
|
||||||
> {
|
|
||||||
$ChatDataTableManager(_$ChatDatabase db, ChatData table)
|
$ChatDataTableManager(_$ChatDatabase db, ChatData table)
|
||||||
: super(
|
: super(TableManagerState(
|
||||||
TableManagerState(
|
|
||||||
db: db,
|
db: db,
|
||||||
table: table,
|
table: table,
|
||||||
createFilteringComposer:
|
createFilteringComposer: () =>
|
||||||
() => $ChatDataFilterComposer($db: db, $table: table),
|
$ChatDataFilterComposer($db: db, $table: table),
|
||||||
createOrderingComposer:
|
createOrderingComposer: () =>
|
||||||
() => $ChatDataOrderingComposer($db: db, $table: table),
|
$ChatDataOrderingComposer($db: db, $table: table),
|
||||||
createComputedFieldComposer:
|
createComputedFieldComposer: () =>
|
||||||
() => $ChatDataAnnotationComposer($db: db, $table: table),
|
$ChatDataAnnotationComposer($db: db, $table: table),
|
||||||
updateCompanionCallback:
|
updateCompanionCallback: ({
|
||||||
({
|
Value<String> chatId = const Value.absent(),
|
||||||
Value<String> chatId = const Value.absent(),
|
Value<ChatMetadata> metadata = const Value.absent(),
|
||||||
Value<ChatMetadata> metadata = const Value.absent(),
|
Value<int> rowid = const Value.absent(),
|
||||||
Value<int> rowid = const Value.absent(),
|
}) =>
|
||||||
}) => ChatDataCompanion(
|
ChatDataCompanion(
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
metadata: metadata,
|
metadata: metadata,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
createCompanionCallback:
|
createCompanionCallback: ({
|
||||||
({
|
required String chatId,
|
||||||
required String chatId,
|
required ChatMetadata metadata,
|
||||||
required ChatMetadata metadata,
|
Value<int> rowid = const Value.absent(),
|
||||||
Value<int> rowid = const Value.absent(),
|
}) =>
|
||||||
}) => ChatDataCompanion.insert(
|
ChatDataCompanion.insert(
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
metadata: metadata,
|
metadata: metadata,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
withReferenceMapper:
|
withReferenceMapper: (p0) => p0
|
||||||
(p0) =>
|
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||||
p0
|
.toList(),
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
|
||||||
prefetchHooksCallback: null,
|
prefetchHooksCallback: null,
|
||||||
),
|
));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $ChatDataProcessedTableManager =
|
typedef $ChatDataProcessedTableManager = ProcessedTableManager<
|
||||||
ProcessedTableManager<
|
_$ChatDatabase,
|
||||||
_$ChatDatabase,
|
ChatData,
|
||||||
ChatData,
|
ChatDataData,
|
||||||
ChatDataData,
|
$ChatDataFilterComposer,
|
||||||
$ChatDataFilterComposer,
|
$ChatDataOrderingComposer,
|
||||||
$ChatDataOrderingComposer,
|
$ChatDataAnnotationComposer,
|
||||||
$ChatDataAnnotationComposer,
|
$ChatDataCreateCompanionBuilder,
|
||||||
$ChatDataCreateCompanionBuilder,
|
$ChatDataUpdateCompanionBuilder,
|
||||||
$ChatDataUpdateCompanionBuilder,
|
(ChatDataData, BaseReferences<_$ChatDatabase, ChatData, ChatDataData>),
|
||||||
(ChatDataData, BaseReferences<_$ChatDatabase, ChatData, ChatDataData>),
|
ChatDataData,
|
||||||
ChatDataData,
|
PrefetchHooks Function()>;
|
||||||
PrefetchHooks Function()
|
typedef $ChatMessageCreateCompanionBuilder = ChatMessageCompanion Function({
|
||||||
>;
|
required String messageId,
|
||||||
typedef $ChatMessageCreateCompanionBuilder =
|
required String chatId,
|
||||||
ChatMessageCompanion Function({
|
required String orderKey,
|
||||||
required String messageId,
|
required String messageJson,
|
||||||
required String chatId,
|
Value<int> rowid,
|
||||||
required String orderKey,
|
});
|
||||||
required String messageJson,
|
typedef $ChatMessageUpdateCompanionBuilder = ChatMessageCompanion Function({
|
||||||
Value<int> rowid,
|
Value<String> messageId,
|
||||||
});
|
Value<String> chatId,
|
||||||
typedef $ChatMessageUpdateCompanionBuilder =
|
Value<String> orderKey,
|
||||||
ChatMessageCompanion Function({
|
Value<String> messageJson,
|
||||||
Value<String> messageId,
|
Value<int> rowid,
|
||||||
Value<String> chatId,
|
});
|
||||||
Value<String> orderKey,
|
|
||||||
Value<String> messageJson,
|
|
||||||
Value<int> rowid,
|
|
||||||
});
|
|
||||||
|
|
||||||
class $ChatMessageFilterComposer extends Composer<_$ChatDatabase, ChatMessage> {
|
class $ChatMessageFilterComposer extends Composer<_$ChatDatabase, ChatMessage> {
|
||||||
$ChatMessageFilterComposer({
|
$ChatMessageFilterComposer({
|
||||||
@@ -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,100 +675,84 @@ 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
|
_$ChatDatabase,
|
||||||
RootTableManager<
|
ChatMessage,
|
||||||
_$ChatDatabase,
|
ChatMessageData,
|
||||||
ChatMessage,
|
$ChatMessageFilterComposer,
|
||||||
ChatMessageData,
|
$ChatMessageOrderingComposer,
|
||||||
$ChatMessageFilterComposer,
|
$ChatMessageAnnotationComposer,
|
||||||
$ChatMessageOrderingComposer,
|
$ChatMessageCreateCompanionBuilder,
|
||||||
$ChatMessageAnnotationComposer,
|
$ChatMessageUpdateCompanionBuilder,
|
||||||
$ChatMessageCreateCompanionBuilder,
|
(
|
||||||
$ChatMessageUpdateCompanionBuilder,
|
ChatMessageData,
|
||||||
(
|
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>
|
||||||
ChatMessageData,
|
),
|
||||||
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>,
|
ChatMessageData,
|
||||||
),
|
PrefetchHooks Function()> {
|
||||||
ChatMessageData,
|
|
||||||
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
|
.toList(),
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
|
||||||
prefetchHooksCallback: null,
|
prefetchHooksCallback: null,
|
||||||
),
|
));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $ChatMessageProcessedTableManager =
|
typedef $ChatMessageProcessedTableManager = ProcessedTableManager<
|
||||||
ProcessedTableManager<
|
_$ChatDatabase,
|
||||||
_$ChatDatabase,
|
ChatMessage,
|
||||||
ChatMessage,
|
ChatMessageData,
|
||||||
|
$ChatMessageFilterComposer,
|
||||||
|
$ChatMessageOrderingComposer,
|
||||||
|
$ChatMessageAnnotationComposer,
|
||||||
|
$ChatMessageCreateCompanionBuilder,
|
||||||
|
$ChatMessageUpdateCompanionBuilder,
|
||||||
|
(
|
||||||
ChatMessageData,
|
ChatMessageData,
|
||||||
$ChatMessageFilterComposer,
|
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>
|
||||||
$ChatMessageOrderingComposer,
|
),
|
||||||
$ChatMessageAnnotationComposer,
|
ChatMessageData,
|
||||||
$ChatMessageCreateCompanionBuilder,
|
PrefetchHooks Function()>;
|
||||||
$ChatMessageUpdateCompanionBuilder,
|
|
||||||
(
|
|
||||||
ChatMessageData,
|
|
||||||
BaseReferences<_$ChatDatabase, ChatMessage, ChatMessageData>,
|
|
||||||
),
|
|
||||||
ChatMessageData,
|
|
||||||
PrefetchHooks Function()
|
|
||||||
>;
|
|
||||||
|
|
||||||
class $ChatDatabaseManager {
|
class $ChatDatabaseManager {
|
||||||
final _$ChatDatabase _db;
|
final _$ChatDatabase _db;
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ part of 'chat_metadata.dart';
|
|||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
ChatMetadata _$ChatMetadataFromJson(Map<String, dynamic> json) => ChatMetadata(
|
ChatMetadata _$ChatMetadataFromJson(Map<String, dynamic> json) => ChatMetadata(
|
||||||
mainDocumentId: json['mainDocumentId'] as String?,
|
mainDocumentId: json['mainDocumentId'] as String?,
|
||||||
contextId: json['contextId'] as String?,
|
contextId: json['contextId'] as String?,
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> _$ChatMetadataToJson(ChatMetadata instance) =>
|
Map<String, dynamic> _$ChatMetadataToJson(ChatMetadata instance) =>
|
||||||
<String, dynamic>{
|
<String, dynamic>{
|
||||||
|
|||||||
@@ -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,20 +74,24 @@ 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(
|
||||||
from: chatControllerProvider,
|
(ref) => chatController(
|
||||||
name: r'chatControllerProvider',
|
ref as ChatControllerRef,
|
||||||
debugGetCreateSourceHash:
|
chatId,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: chatControllerProvider,
|
||||||
: _$chatControllerHash,
|
name: r'chatControllerProvider',
|
||||||
dependencies: ChatControllerFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
ChatControllerFamily._allTransitiveDependencies,
|
? null
|
||||||
chatId: chatId,
|
: _$chatControllerHash,
|
||||||
);
|
dependencies: ChatControllerFamily._dependencies,
|
||||||
|
allTransitiveDependencies:
|
||||||
|
ChatControllerFamily._allTransitiveDependencies,
|
||||||
|
chatId: chatId,
|
||||||
|
);
|
||||||
|
|
||||||
ChatControllerProvider._internal(
|
ChatControllerProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,20 +205,24 @@ 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(
|
||||||
from: chatMetadataProvider,
|
(ref) => chatMetadata(
|
||||||
name: r'chatMetadataProvider',
|
ref as ChatMetadataRef,
|
||||||
debugGetCreateSourceHash:
|
chatId,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: chatMetadataProvider,
|
||||||
: _$chatMetadataHash,
|
name: r'chatMetadataProvider',
|
||||||
dependencies: ChatMetadataFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
ChatMetadataFamily._allTransitiveDependencies,
|
? null
|
||||||
chatId: chatId,
|
: _$chatMetadataHash,
|
||||||
);
|
dependencies: ChatMetadataFamily._dependencies,
|
||||||
|
allTransitiveDependencies:
|
||||||
|
ChatMetadataFamily._allTransitiveDependencies,
|
||||||
|
chatId: chatId,
|
||||||
|
);
|
||||||
|
|
||||||
ChatMetadataProvider._internal(
|
ChatMetadataProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,20 +85,21 @@ 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,
|
||||||
() => ChatMessageRepository()..chatId = chatId,
|
) : this._internal(
|
||||||
from: chatMessageRepositoryProvider,
|
() => ChatMessageRepository()..chatId = chatId,
|
||||||
name: r'chatMessageRepositoryProvider',
|
from: chatMessageRepositoryProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'chatMessageRepositoryProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$chatMessageRepositoryHash,
|
? null
|
||||||
dependencies: ChatMessageRepositoryFamily._dependencies,
|
: _$chatMessageRepositoryHash,
|
||||||
allTransitiveDependencies:
|
dependencies: ChatMessageRepositoryFamily._dependencies,
|
||||||
ChatMessageRepositoryFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
chatId: chatId,
|
ChatMessageRepositoryFamily._allTransitiveDependencies,
|
||||||
);
|
chatId: chatId,
|
||||||
|
);
|
||||||
|
|
||||||
ChatMessageRepositoryProvider._internal(
|
ChatMessageRepositoryProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
@@ -127,7 +140,7 @@ class ChatMessageRepositoryProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeNotifierProviderElement<ChatMessageRepository, void>
|
AutoDisposeNotifierProviderElement<ChatMessageRepository, void>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _ChatMessageRepositoryProviderElement(this);
|
return _ChatMessageRepositoryProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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
-22
@@ -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,20 +85,21 @@ 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,
|
||||||
() => ChatMetadataRepository()..chatId = chatId,
|
) : this._internal(
|
||||||
from: chatMetadataRepositoryProvider,
|
() => ChatMetadataRepository()..chatId = chatId,
|
||||||
name: r'chatMetadataRepositoryProvider',
|
from: chatMetadataRepositoryProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'chatMetadataRepositoryProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$chatMetadataRepositoryHash,
|
? null
|
||||||
dependencies: ChatMetadataRepositoryFamily._dependencies,
|
: _$chatMetadataRepositoryHash,
|
||||||
allTransitiveDependencies:
|
dependencies: ChatMetadataRepositoryFamily._dependencies,
|
||||||
ChatMetadataRepositoryFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
chatId: chatId,
|
ChatMetadataRepositoryFamily._allTransitiveDependencies,
|
||||||
);
|
chatId: chatId,
|
||||||
|
);
|
||||||
|
|
||||||
ChatMetadataRepositoryProvider._internal(
|
ChatMetadataRepositoryProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
@@ -127,7 +140,7 @@ class ChatMetadataRepositoryProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeNotifierProviderElement<ChatMetadataRepository, void>
|
AutoDisposeNotifierProviderElement<ChatMetadataRepository, void>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _ChatMetadataRepositoryProviderElement(this);
|
return _ChatMetadataRepositoryProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$bottomSheetControllerHash() =>
|
|||||||
@ProviderFor(BottomSheetController)
|
@ProviderFor(BottomSheetController)
|
||||||
final bottomSheetControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$BottomSheetController = AutoDisposeNotifier<Sheet?>;
|
typedef _$BottomSheetController = AutoDisposeNotifier<Sheet?>;
|
||||||
String _$bottomSheetExtendHash() => r'7e11b9047c15bdeb4dfcb488a8573daadb64e25c';
|
String _$bottomSheetExtendHash() => r'7e11b9047c15bdeb4dfcb488a8573daadb64e25c';
|
||||||
@@ -30,15 +29,14 @@ String _$bottomSheetExtendHash() => r'7e11b9047c15bdeb4dfcb488a8573daadb64e25c';
|
|||||||
@ProviderFor(BottomSheetExtend)
|
@ProviderFor(BottomSheetExtend)
|
||||||
final bottomSheetExtendProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$BottomSheetExtend = StreamNotifier<double>;
|
typedef _$BottomSheetExtend = StreamNotifier<double>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$overlayDialogControllerHash() =>
|
|||||||
@ProviderFor(OverlayDialogController)
|
@ProviderFor(OverlayDialogController)
|
||||||
final overlayDialogControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$OverlayDialogController = AutoDisposeNotifier<Widget?>;
|
typedef _$OverlayDialogController = AutoDisposeNotifier<Widget?>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,71 +130,58 @@ 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 == const $CopyWithPlaceholder()
|
||||||
url:
|
? _value.url
|
||||||
url == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.url
|
: url as Uri,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
title: title == const $CopyWithPlaceholder()
|
||||||
: url as Uri,
|
? _value.title
|
||||||
title:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
title == const $CopyWithPlaceholder()
|
: title as String,
|
||||||
? _value.title
|
icon: icon == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.icon
|
||||||
: title as String,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
icon:
|
: icon as EquatableImage?,
|
||||||
icon == const $CopyWithPlaceholder()
|
thumbnail: thumbnail == const $CopyWithPlaceholder()
|
||||||
? _value.icon
|
? _value.thumbnail
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: icon as EquatableImage?,
|
: thumbnail as EquatableImage?,
|
||||||
thumbnail:
|
progress: progress == const $CopyWithPlaceholder()
|
||||||
thumbnail == const $CopyWithPlaceholder()
|
? _value.progress
|
||||||
? _value.thumbnail
|
// ignore: cast_nullable_to_non_nullable
|
||||||
// ignore: cast_nullable_to_non_nullable
|
: progress as int,
|
||||||
: thumbnail as EquatableImage?,
|
isPrivate: isPrivate == const $CopyWithPlaceholder()
|
||||||
progress:
|
? _value.isPrivate
|
||||||
progress == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.progress
|
: isPrivate as bool,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
isFullScreen: isFullScreen == const $CopyWithPlaceholder()
|
||||||
: progress as int,
|
? _value.isFullScreen
|
||||||
isPrivate:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
isPrivate == const $CopyWithPlaceholder()
|
: isFullScreen as bool,
|
||||||
? _value.isPrivate
|
isLoading: isLoading == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.isLoading
|
||||||
: isPrivate as bool,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
isFullScreen:
|
: isLoading as bool,
|
||||||
isFullScreen == const $CopyWithPlaceholder()
|
securityInfoState: securityInfoState == const $CopyWithPlaceholder()
|
||||||
? _value.isFullScreen
|
? _value.securityInfoState
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: isFullScreen as bool,
|
: securityInfoState as SecurityState,
|
||||||
isLoading:
|
historyState: historyState == const $CopyWithPlaceholder()
|
||||||
isLoading == const $CopyWithPlaceholder()
|
? _value.historyState
|
||||||
? _value.isLoading
|
// ignore: cast_nullable_to_non_nullable
|
||||||
// ignore: cast_nullable_to_non_nullable
|
: historyState as HistoryState,
|
||||||
: isLoading as bool,
|
readerableState: readerableState == const $CopyWithPlaceholder()
|
||||||
securityInfoState:
|
? _value.readerableState
|
||||||
securityInfoState == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.securityInfoState
|
: readerableState as ReaderableState,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
findResultState: findResultState == const $CopyWithPlaceholder()
|
||||||
: securityInfoState as SecurityState,
|
? _value.findResultState
|
||||||
historyState:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
historyState == const $CopyWithPlaceholder()
|
: findResultState as FindResultState,
|
||||||
? _value.historyState
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: historyState as HistoryState,
|
|
||||||
readerableState:
|
|
||||||
readerableState == const $CopyWithPlaceholder()
|
|
||||||
? _value.readerableState
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: readerableState as ReaderableState,
|
|
||||||
findResultState:
|
|
||||||
findResultState == const $CopyWithPlaceholder()
|
|
||||||
? _value.findResultState
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: 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,41 +86,34 @@ 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 == const $CopyWithPlaceholder()
|
||||||
enabled:
|
? _value.enabled
|
||||||
enabled == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.enabled
|
: enabled as bool,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
title: title == const $CopyWithPlaceholder()
|
||||||
: enabled as bool,
|
? _value.title
|
||||||
title:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
title == const $CopyWithPlaceholder()
|
: title as String?,
|
||||||
? _value.title
|
badgeText: badgeText == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.badgeText
|
||||||
: title as String?,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
badgeText:
|
: badgeText as String?,
|
||||||
badgeText == const $CopyWithPlaceholder()
|
badgeTextColor: badgeTextColor == const $CopyWithPlaceholder()
|
||||||
? _value.badgeText
|
? _value.badgeTextColor
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: badgeText as String?,
|
: badgeTextColor as Color?,
|
||||||
badgeTextColor:
|
badgeBackgroundColor: badgeBackgroundColor == const $CopyWithPlaceholder()
|
||||||
badgeTextColor == const $CopyWithPlaceholder()
|
? _value.badgeBackgroundColor
|
||||||
? _value.badgeTextColor
|
// ignore: cast_nullable_to_non_nullable
|
||||||
// ignore: cast_nullable_to_non_nullable
|
: badgeBackgroundColor as Color?,
|
||||||
: badgeTextColor as Color?,
|
icon: icon == const $CopyWithPlaceholder()
|
||||||
badgeBackgroundColor:
|
? _value.icon
|
||||||
badgeBackgroundColor == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.badgeBackgroundColor
|
: icon as EquatableImage?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: badgeBackgroundColor as Color?,
|
|
||||||
icon:
|
|
||||||
icon == const $CopyWithPlaceholder()
|
|
||||||
? _value.icon
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: icon as EquatableImage?,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$selectionActionServiceHash() =>
|
|||||||
@ProviderFor(selectionActionService)
|
@ProviderFor(selectionActionService)
|
||||||
final selectionActionServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -65,10 +64,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -83,15 +81,14 @@ String _$engineSuggestionsServiceHash() =>
|
|||||||
@ProviderFor(engineSuggestionsService)
|
@ProviderFor(engineSuggestionsService)
|
||||||
final engineSuggestionsServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -103,15 +100,14 @@ String _$selectedTabSessionNotifierHash() =>
|
|||||||
@ProviderFor(selectedTabSessionNotifier)
|
@ProviderFor(selectedTabSessionNotifier)
|
||||||
final selectedTabSessionNotifierProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -122,15 +118,14 @@ String _$engineReadyStateHash() => r'c682333e2e07cf0635aa7ae793a2088ca648c950';
|
|||||||
@ProviderFor(EngineReadyState)
|
@ProviderFor(EngineReadyState)
|
||||||
final engineReadyStateProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$EngineReadyState = Notifier<bool>;
|
typedef _$EngineReadyState = Notifier<bool>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,19 +83,21 @@ 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,
|
||||||
() => TabSession()..tabId = tabId,
|
}) : this._internal(
|
||||||
from: tabSessionProvider,
|
() => TabSession()..tabId = tabId,
|
||||||
name: r'tabSessionProvider',
|
from: tabSessionProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'tabSessionProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$tabSessionHash,
|
? null
|
||||||
dependencies: TabSessionFamily._dependencies,
|
: _$tabSessionHash,
|
||||||
allTransitiveDependencies: TabSessionFamily._allTransitiveDependencies,
|
dependencies: TabSessionFamily._dependencies,
|
||||||
tabId: tabId,
|
allTransitiveDependencies:
|
||||||
);
|
TabSessionFamily._allTransitiveDependencies,
|
||||||
|
tabId: tabId,
|
||||||
|
);
|
||||||
|
|
||||||
TabSessionProvider._internal(
|
TabSessionProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,19 +74,23 @@ 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(
|
||||||
from: tabStateProvider,
|
(ref) => tabState(
|
||||||
name: r'tabStateProvider',
|
ref as TabStateRef,
|
||||||
debugGetCreateSourceHash:
|
tabId,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: tabStateProvider,
|
||||||
: _$tabStateHash,
|
name: r'tabStateProvider',
|
||||||
dependencies: TabStateFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies: TabStateFamily._allTransitiveDependencies,
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
tabId: tabId,
|
? null
|
||||||
);
|
: _$tabStateHash,
|
||||||
|
dependencies: TabStateFamily._dependencies,
|
||||||
|
allTransitiveDependencies: TabStateFamily._allTransitiveDependencies,
|
||||||
|
tabId: tabId,
|
||||||
|
);
|
||||||
|
|
||||||
TabStateProvider._internal(
|
TabStateProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,10 +163,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -166,15 +179,13 @@ String _$tabStatesHash() => r'296d85ec016b22236b5830fce6b01cda81fbc02d';
|
|||||||
@ProviderFor(TabStates)
|
@ProviderFor(TabStates)
|
||||||
final tabStatesProvider =
|
final tabStatesProvider =
|
||||||
NotifierProvider<TabStates, Map<String, TabState>>.internal(
|
NotifierProvider<TabStates, Map<String, TabState>>.internal(
|
||||||
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
|
dependencies: null,
|
||||||
: _$tabStatesHash,
|
allTransitiveDependencies: null,
|
||||||
dependencies: null,
|
);
|
||||||
allTransitiveDependencies: null,
|
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$TabStates = Notifier<Map<String, TabState>>;
|
typedef _$TabStates = Notifier<Map<String, TabState>>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,27 +82,24 @@ 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,
|
||||||
() => WebExtensionsState()..actionType = actionType,
|
) : this._internal(
|
||||||
from: webExtensionsStateProvider,
|
() => WebExtensionsState()..actionType = actionType,
|
||||||
name: r'webExtensionsStateProvider',
|
from: webExtensionsStateProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'webExtensionsStateProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$webExtensionsStateHash,
|
? null
|
||||||
dependencies: WebExtensionsStateFamily._dependencies,
|
: _$webExtensionsStateHash,
|
||||||
allTransitiveDependencies:
|
dependencies: WebExtensionsStateFamily._dependencies,
|
||||||
WebExtensionsStateFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
actionType: actionType,
|
WebExtensionsStateFamily._allTransitiveDependencies,
|
||||||
);
|
actionType: actionType,
|
||||||
|
);
|
||||||
|
|
||||||
WebExtensionsStateProvider._internal(
|
WebExtensionsStateProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
@@ -133,7 +140,7 @@ class WebExtensionsStateProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
NotifierProviderElement<WebExtensionsState, Map<String, WebExtensionState>>
|
NotifierProviderElement<WebExtensionsState, Map<String, WebExtensionState>>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _WebExtensionsStateProviderElement(this);
|
return _WebExtensionsStateProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,19 +167,14 @@ mixin WebExtensionsStateRef
|
|||||||
WebExtensionActionType get actionType;
|
WebExtensionActionType get actionType;
|
||||||
}
|
}
|
||||||
|
|
||||||
class _WebExtensionsStateProviderElement
|
class _WebExtensionsStateProviderElement extends NotifierProviderElement<
|
||||||
extends
|
WebExtensionsState,
|
||||||
NotifierProviderElement<
|
Map<String, WebExtensionState>> with WebExtensionsStateRef {
|
||||||
WebExtensionsState,
|
|
||||||
Map<String, WebExtensionState>
|
|
||||||
>
|
|
||||||
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,10 +13,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: 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,20 +75,24 @@ 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(
|
||||||
from: availableTabIdsProvider,
|
(ref) => availableTabIds(
|
||||||
name: r'availableTabIdsProvider',
|
ref as AvailableTabIdsRef,
|
||||||
debugGetCreateSourceHash:
|
containerFilter,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: availableTabIdsProvider,
|
||||||
: _$availableTabIdsHash,
|
name: r'availableTabIdsProvider',
|
||||||
dependencies: AvailableTabIdsFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
AvailableTabIdsFamily._allTransitiveDependencies,
|
? null
|
||||||
containerFilter: containerFilter,
|
: _$availableTabIdsHash,
|
||||||
);
|
dependencies: AvailableTabIdsFamily._dependencies,
|
||||||
|
allTransitiveDependencies:
|
||||||
|
AvailableTabIdsFamily._allTransitiveDependencies,
|
||||||
|
containerFilter: containerFilter,
|
||||||
|
);
|
||||||
|
|
||||||
AvailableTabIdsProvider._internal(
|
AvailableTabIdsProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -99,7 +109,7 @@ class AvailableTabIdsProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
EquatableCollection<List<String>> Function(AvailableTabIdsRef provider)
|
EquatableCollection<List<String>> Function(AvailableTabIdsRef provider)
|
||||||
create,
|
create,
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
origin: this,
|
origin: this,
|
||||||
@@ -117,7 +127,7 @@ class AvailableTabIdsProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeProviderElement<EquatableCollection<List<String>>>
|
AutoDisposeProviderElement<EquatableCollection<List<String>>>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _AvailableTabIdsProviderElement(this);
|
return _AvailableTabIdsProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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,21 +214,24 @@ 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(
|
||||||
from: availableTabStatesProvider,
|
ref as AvailableTabStatesRef,
|
||||||
name: r'availableTabStatesProvider',
|
containerFilter,
|
||||||
debugGetCreateSourceHash:
|
),
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
from: availableTabStatesProvider,
|
||||||
? null
|
name: r'availableTabStatesProvider',
|
||||||
: _$availableTabStatesHash,
|
debugGetCreateSourceHash:
|
||||||
dependencies: AvailableTabStatesFamily._dependencies,
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
allTransitiveDependencies:
|
? null
|
||||||
AvailableTabStatesFamily._allTransitiveDependencies,
|
: _$availableTabStatesHash,
|
||||||
containerFilter: containerFilter,
|
dependencies: AvailableTabStatesFamily._dependencies,
|
||||||
);
|
allTransitiveDependencies:
|
||||||
|
AvailableTabStatesFamily._allTransitiveDependencies,
|
||||||
|
containerFilter: containerFilter,
|
||||||
|
);
|
||||||
|
|
||||||
AvailableTabStatesProvider._internal(
|
AvailableTabStatesProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -229,9 +248,8 @@ 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(
|
||||||
origin: this,
|
origin: this,
|
||||||
@@ -249,7 +267,7 @@ class AvailableTabStatesProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeProviderElement<EquatableCollection<Map<String, TabState>>>
|
AutoDisposeProviderElement<EquatableCollection<Map<String, TabState>>>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _AvailableTabStatesProviderElement(this);
|
return _AvailableTabStatesProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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;
|
||||||
@@ -338,23 +360,23 @@ class SeamlessFilteredTabIdsProvider
|
|||||||
TabSearchPartition searchPartition,
|
TabSearchPartition searchPartition,
|
||||||
ContainerFilter containerFilter,
|
ContainerFilter containerFilter,
|
||||||
) : this._internal(
|
) : this._internal(
|
||||||
(ref) => seamlessFilteredTabIds(
|
(ref) => seamlessFilteredTabIds(
|
||||||
ref as SeamlessFilteredTabIdsRef,
|
ref as SeamlessFilteredTabIdsRef,
|
||||||
searchPartition,
|
searchPartition,
|
||||||
containerFilter,
|
containerFilter,
|
||||||
),
|
),
|
||||||
from: seamlessFilteredTabIdsProvider,
|
from: seamlessFilteredTabIdsProvider,
|
||||||
name: r'seamlessFilteredTabIdsProvider',
|
name: r'seamlessFilteredTabIdsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
? null
|
? null
|
||||||
: _$seamlessFilteredTabIdsHash,
|
: _$seamlessFilteredTabIdsHash,
|
||||||
dependencies: SeamlessFilteredTabIdsFamily._dependencies,
|
dependencies: SeamlessFilteredTabIdsFamily._dependencies,
|
||||||
allTransitiveDependencies:
|
allTransitiveDependencies:
|
||||||
SeamlessFilteredTabIdsFamily._allTransitiveDependencies,
|
SeamlessFilteredTabIdsFamily._allTransitiveDependencies,
|
||||||
searchPartition: searchPartition,
|
searchPartition: searchPartition,
|
||||||
containerFilter: containerFilter,
|
containerFilter: containerFilter,
|
||||||
);
|
);
|
||||||
|
|
||||||
SeamlessFilteredTabIdsProvider._internal(
|
SeamlessFilteredTabIdsProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -373,9 +395,8 @@ 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(
|
||||||
origin: this,
|
origin: this,
|
||||||
@@ -394,7 +415,7 @@ class SeamlessFilteredTabIdsProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeProviderElement<EquatableCollection<List<String>>>
|
AutoDisposeProviderElement<EquatableCollection<List<String>>>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _SeamlessFilteredTabIdsProviderElement(this);
|
return _SeamlessFilteredTabIdsProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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;
|
||||||
@@ -493,23 +517,23 @@ class SeamlessFilteredTabPreviewsProvider
|
|||||||
TabSearchPartition searchPartition,
|
TabSearchPartition searchPartition,
|
||||||
ContainerFilter containerFilter,
|
ContainerFilter containerFilter,
|
||||||
) : this._internal(
|
) : this._internal(
|
||||||
(ref) => seamlessFilteredTabPreviews(
|
(ref) => seamlessFilteredTabPreviews(
|
||||||
ref as SeamlessFilteredTabPreviewsRef,
|
ref as SeamlessFilteredTabPreviewsRef,
|
||||||
searchPartition,
|
searchPartition,
|
||||||
containerFilter,
|
containerFilter,
|
||||||
),
|
),
|
||||||
from: seamlessFilteredTabPreviewsProvider,
|
from: seamlessFilteredTabPreviewsProvider,
|
||||||
name: r'seamlessFilteredTabPreviewsProvider',
|
name: r'seamlessFilteredTabPreviewsProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
? null
|
? null
|
||||||
: _$seamlessFilteredTabPreviewsHash,
|
: _$seamlessFilteredTabPreviewsHash,
|
||||||
dependencies: SeamlessFilteredTabPreviewsFamily._dependencies,
|
dependencies: SeamlessFilteredTabPreviewsFamily._dependencies,
|
||||||
allTransitiveDependencies:
|
allTransitiveDependencies:
|
||||||
SeamlessFilteredTabPreviewsFamily._allTransitiveDependencies,
|
SeamlessFilteredTabPreviewsFamily._allTransitiveDependencies,
|
||||||
searchPartition: searchPartition,
|
searchPartition: searchPartition,
|
||||||
containerFilter: containerFilter,
|
containerFilter: containerFilter,
|
||||||
);
|
);
|
||||||
|
|
||||||
SeamlessFilteredTabPreviewsProvider._internal(
|
SeamlessFilteredTabPreviewsProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -528,9 +552,8 @@ 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(
|
||||||
origin: this,
|
origin: this,
|
||||||
@@ -549,7 +572,7 @@ class SeamlessFilteredTabPreviewsProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeProviderElement<EquatableCollection<List<TabPreview>>>
|
AutoDisposeProviderElement<EquatableCollection<List<TabPreview>>>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _SeamlessFilteredTabPreviewsProviderElement(this);
|
return _SeamlessFilteredTabPreviewsProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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,20 +674,21 @@ 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,
|
||||||
() => SelectedBangTrigger()..domain = domain,
|
}) : this._internal(
|
||||||
from: selectedBangTriggerProvider,
|
() => SelectedBangTrigger()..domain = domain,
|
||||||
name: r'selectedBangTriggerProvider',
|
from: selectedBangTriggerProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'selectedBangTriggerProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$selectedBangTriggerHash,
|
? null
|
||||||
dependencies: SelectedBangTriggerFamily._dependencies,
|
: _$selectedBangTriggerHash,
|
||||||
allTransitiveDependencies:
|
dependencies: SelectedBangTriggerFamily._dependencies,
|
||||||
SelectedBangTriggerFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
domain: domain,
|
SelectedBangTriggerFamily._allTransitiveDependencies,
|
||||||
);
|
domain: domain,
|
||||||
|
);
|
||||||
|
|
||||||
SelectedBangTriggerProvider._internal(
|
SelectedBangTriggerProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,20 +819,21 @@ 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,
|
||||||
() => SelectedBangData()..domain = domain,
|
}) : this._internal(
|
||||||
from: selectedBangDataProvider,
|
() => SelectedBangData()..domain = domain,
|
||||||
name: r'selectedBangDataProvider',
|
from: selectedBangDataProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'selectedBangDataProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$selectedBangDataHash,
|
? null
|
||||||
dependencies: SelectedBangDataFamily._dependencies,
|
: _$selectedBangDataHash,
|
||||||
allTransitiveDependencies:
|
dependencies: SelectedBangDataFamily._dependencies,
|
||||||
SelectedBangDataFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
domain: domain,
|
SelectedBangDataFamily._allTransitiveDependencies,
|
||||||
);
|
domain: domain,
|
||||||
|
);
|
||||||
|
|
||||||
SelectedBangDataProvider._internal(
|
SelectedBangDataProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
@@ -825,7 +874,7 @@ class SelectedBangDataProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeNotifierProviderElement<SelectedBangData, BangData?>
|
AutoDisposeNotifierProviderElement<SelectedBangData, BangData?>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _SelectedBangDataProviderElement(this);
|
return _SelectedBangDataProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -866,15 +915,14 @@ String _$lastUsedAssistantModeHash() =>
|
|||||||
@ProviderFor(LastUsedAssistantMode)
|
@ProviderFor(LastUsedAssistantMode)
|
||||||
final lastUsedAssistantModeProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$LastUsedAssistantMode = Notifier<AssistantMode>;
|
typedef _$LastUsedAssistantMode = Notifier<AssistantMode>;
|
||||||
String _$activeResearchVariantHash() =>
|
String _$activeResearchVariantHash() =>
|
||||||
@@ -884,15 +932,14 @@ String _$activeResearchVariantHash() =>
|
|||||||
@ProviderFor(ActiveResearchVariant)
|
@ProviderFor(ActiveResearchVariant)
|
||||||
final activeResearchVariantProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$ActiveResearchVariant = Notifier<ResearchVariant>;
|
typedef _$ActiveResearchVariant = Notifier<ResearchVariant>;
|
||||||
String _$activeChatModelHash() => r'675f406af8b4aa92699d59e37b5805a81d03a799';
|
String _$activeChatModelHash() => r'675f406af8b4aa92699d59e37b5805a81d03a799';
|
||||||
@@ -901,15 +948,14 @@ String _$activeChatModelHash() => r'675f406af8b4aa92699d59e37b5805a81d03a799';
|
|||||||
@ProviderFor(ActiveChatModel)
|
@ProviderFor(ActiveChatModel)
|
||||||
final activeChatModelProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$ActiveChatModel = Notifier<ChatModel>;
|
typedef _$ActiveChatModel = Notifier<ChatModel>;
|
||||||
String _$showFindInPageHash() => r'7ee5703f7d0c7e8a8dd6b0849d7b1e0a41fe24d9';
|
String _$showFindInPageHash() => r'7ee5703f7d0c7e8a8dd6b0849d7b1e0a41fe24d9';
|
||||||
@@ -919,10 +965,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$createTabStreamHash() => r'2e802a10ecaf1862074f32b76e89c26997bdd7b2';
|
|||||||
@ProviderFor(CreateTabStream)
|
@ProviderFor(CreateTabStream)
|
||||||
final createTabStreamProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$CreateTabStream = AutoDisposeStreamNotifier<CreateTabSheet>;
|
typedef _$CreateTabStream = AutoDisposeStreamNotifier<CreateTabSheet>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
+8
-9
@@ -13,15 +13,14 @@ String _$deleteBrowserDataServiceHash() =>
|
|||||||
@ProviderFor(DeleteBrowserDataService)
|
@ProviderFor(DeleteBrowserDataService)
|
||||||
final deleteBrowserDataServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$DeleteBrowserDataService = AutoDisposeNotifier<void>;
|
typedef _$DeleteBrowserDataService = AutoDisposeNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
+8
-9
@@ -13,15 +13,14 @@ String _$engineSettingsReplicationServiceHash() =>
|
|||||||
@ProviderFor(EngineSettingsReplicationService)
|
@ProviderFor(EngineSettingsReplicationService)
|
||||||
final engineSettingsReplicationServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$EngineSettingsReplicationService = Notifier<void>;
|
typedef _$EngineSettingsReplicationService = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
+8
-9
@@ -13,15 +13,14 @@ String _$proxySettingsReplucationHash() =>
|
|||||||
@ProviderFor(ProxySettingsReplucation)
|
@ProviderFor(ProxySettingsReplucation)
|
||||||
final proxySettingsReplucationProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$ProxySettingsReplucation = Notifier<void>;
|
typedef _$ProxySettingsReplucation = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
+34
-22
@@ -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,20 +85,21 @@ 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,
|
||||||
() => FindInPageRepository()..tabId = tabId,
|
) : this._internal(
|
||||||
from: findInPageRepositoryProvider,
|
() => FindInPageRepository()..tabId = tabId,
|
||||||
name: r'findInPageRepositoryProvider',
|
from: findInPageRepositoryProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'findInPageRepositoryProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$findInPageRepositoryHash,
|
? null
|
||||||
dependencies: FindInPageRepositoryFamily._dependencies,
|
: _$findInPageRepositoryHash,
|
||||||
allTransitiveDependencies:
|
dependencies: FindInPageRepositoryFamily._dependencies,
|
||||||
FindInPageRepositoryFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
tabId: tabId,
|
FindInPageRepositoryFamily._allTransitiveDependencies,
|
||||||
);
|
tabId: tabId,
|
||||||
|
);
|
||||||
|
|
||||||
FindInPageRepositoryProvider._internal(
|
FindInPageRepositoryProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
@@ -127,7 +140,7 @@ class FindInPageRepositoryProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeNotifierProviderElement<FindInPageRepository, void>
|
AutoDisposeNotifierProviderElement<FindInPageRepository, void>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _FindInPageRepositoryProviderElement(this);
|
return _FindInPageRepositoryProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
+8
-9
@@ -13,15 +13,14 @@ String _$findInPageVisibilityControllerHash() =>
|
|||||||
@ProviderFor(FindInPageVisibilityController)
|
@ProviderFor(FindInPageVisibilityController)
|
||||||
final findInPageVisibilityControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$FindInPageVisibilityController = AutoDisposeNotifier<bool>;
|
typedef _$FindInPageVisibilityController = AutoDisposeNotifier<bool>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
+34
-40
@@ -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,16 +51,14 @@ 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 == const $CopyWithPlaceholder()
|
||||||
settings:
|
? _value.settings
|
||||||
settings == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.settings
|
: settings as Map<String, PreferenceSetting>,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: 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,36 +144,30 @@ 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 == const $CopyWithPlaceholder()
|
||||||
title:
|
? _value.title
|
||||||
title == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.title
|
: title as String?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
description: description == const $CopyWithPlaceholder()
|
||||||
: title as String?,
|
? _value.description
|
||||||
description:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
description == const $CopyWithPlaceholder()
|
: description as String?,
|
||||||
? _value.description
|
actualValue: actualValue == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.actualValue
|
||||||
: description as String?,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
actualValue:
|
: actualValue as Object?,
|
||||||
actualValue == const $CopyWithPlaceholder()
|
requireUserOptIn: requireUserOptIn == const $CopyWithPlaceholder()
|
||||||
? _value.actualValue
|
? _value.requireUserOptIn
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: actualValue as Object?,
|
: requireUserOptIn as bool,
|
||||||
requireUserOptIn:
|
shouldBeDefault: shouldBeDefault == const $CopyWithPlaceholder()
|
||||||
requireUserOptIn == const $CopyWithPlaceholder()
|
? _value.shouldBeDefault
|
||||||
? _value.requireUserOptIn
|
// ignore: cast_nullable_to_non_nullable
|
||||||
// ignore: cast_nullable_to_non_nullable
|
: shouldBeDefault as bool,
|
||||||
: requireUserOptIn as bool,
|
|
||||||
shouldBeDefault:
|
|
||||||
shouldBeDefault == const $CopyWithPlaceholder()
|
|
||||||
? _value.shouldBeDefault
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: shouldBeDefault as bool,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+143
-144
@@ -13,15 +13,14 @@ String _$preferenceSettingContentHash() =>
|
|||||||
@ProviderFor(_preferenceSettingContent)
|
@ProviderFor(_preferenceSettingContent)
|
||||||
final _preferenceSettingContentProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -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,23 +96,24 @@ 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,
|
||||||
(ref) => _preferenceSettingGroups(
|
) : this._internal(
|
||||||
ref as _PreferenceSettingGroupsRef,
|
(ref) => _preferenceSettingGroups(
|
||||||
partition,
|
ref as _PreferenceSettingGroupsRef,
|
||||||
),
|
partition,
|
||||||
from: _preferenceSettingGroupsProvider,
|
),
|
||||||
name: r'_preferenceSettingGroupsProvider',
|
from: _preferenceSettingGroupsProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'_preferenceSettingGroupsProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$preferenceSettingGroupsHash,
|
? null
|
||||||
dependencies: _PreferenceSettingGroupsFamily._dependencies,
|
: _$preferenceSettingGroupsHash,
|
||||||
allTransitiveDependencies:
|
dependencies: _PreferenceSettingGroupsFamily._dependencies,
|
||||||
_PreferenceSettingGroupsFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
partition: partition,
|
_PreferenceSettingGroupsFamily._allTransitiveDependencies,
|
||||||
);
|
partition: partition,
|
||||||
|
);
|
||||||
|
|
||||||
_PreferenceSettingGroupsProvider._internal(
|
_PreferenceSettingGroupsProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -124,9 +130,8 @@ 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(
|
||||||
origin: this,
|
origin: this,
|
||||||
@@ -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;
|
||||||
@@ -231,23 +242,23 @@ class _PreferenceSettingGroupProvider
|
|||||||
PreferencePartition partition,
|
PreferencePartition partition,
|
||||||
String groupName,
|
String groupName,
|
||||||
) : this._internal(
|
) : this._internal(
|
||||||
(ref) => _preferenceSettingGroup(
|
(ref) => _preferenceSettingGroup(
|
||||||
ref as _PreferenceSettingGroupRef,
|
ref as _PreferenceSettingGroupRef,
|
||||||
partition,
|
partition,
|
||||||
groupName,
|
groupName,
|
||||||
),
|
),
|
||||||
from: _preferenceSettingGroupProvider,
|
from: _preferenceSettingGroupProvider,
|
||||||
name: r'_preferenceSettingGroupProvider',
|
name: r'_preferenceSettingGroupProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
? null
|
? null
|
||||||
: _$preferenceSettingGroupHash,
|
: _$preferenceSettingGroupHash,
|
||||||
dependencies: _PreferenceSettingGroupFamily._dependencies,
|
dependencies: _PreferenceSettingGroupFamily._dependencies,
|
||||||
allTransitiveDependencies:
|
allTransitiveDependencies:
|
||||||
_PreferenceSettingGroupFamily._allTransitiveDependencies,
|
_PreferenceSettingGroupFamily._allTransitiveDependencies,
|
||||||
partition: partition,
|
partition: partition,
|
||||||
groupName: groupName,
|
groupName: groupName,
|
||||||
);
|
);
|
||||||
|
|
||||||
_PreferenceSettingGroupProvider._internal(
|
_PreferenceSettingGroupProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -266,9 +277,8 @@ class _PreferenceSettingGroupProvider
|
|||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
FutureOr<PreferenceSettingGroup> Function(
|
FutureOr<PreferenceSettingGroup> Function(
|
||||||
_PreferenceSettingGroupRef provider,
|
_PreferenceSettingGroupRef provider)
|
||||||
)
|
create,
|
||||||
create,
|
|
||||||
) {
|
) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
origin: this,
|
origin: this,
|
||||||
@@ -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,27 +416,25 @@ 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,
|
||||||
() => UnifiedPreferenceSettingsRepository()..partition = partition,
|
) : this._internal(
|
||||||
from: unifiedPreferenceSettingsRepositoryProvider,
|
() => UnifiedPreferenceSettingsRepository()..partition = partition,
|
||||||
name: r'unifiedPreferenceSettingsRepositoryProvider',
|
from: unifiedPreferenceSettingsRepositoryProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'unifiedPreferenceSettingsRepositoryProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$unifiedPreferenceSettingsRepositoryHash,
|
? null
|
||||||
dependencies: UnifiedPreferenceSettingsRepositoryFamily._dependencies,
|
: _$unifiedPreferenceSettingsRepositoryHash,
|
||||||
allTransitiveDependencies:
|
dependencies: UnifiedPreferenceSettingsRepositoryFamily._dependencies,
|
||||||
UnifiedPreferenceSettingsRepositoryFamily
|
allTransitiveDependencies: UnifiedPreferenceSettingsRepositoryFamily
|
||||||
._allTransitiveDependencies,
|
._allTransitiveDependencies,
|
||||||
partition: partition,
|
partition: partition,
|
||||||
);
|
);
|
||||||
|
|
||||||
UnifiedPreferenceSettingsRepositoryProvider._internal(
|
UnifiedPreferenceSettingsRepositoryProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,32 +578,28 @@ 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,
|
name: r'preferenceSettingsGroupRepositoryProvider',
|
||||||
name: r'preferenceSettingsGroupRepositoryProvider',
|
debugGetCreateSourceHash:
|
||||||
debugGetCreateSourceHash:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
? null
|
||||||
? null
|
: _$preferenceSettingsGroupRepositoryHash,
|
||||||
: _$preferenceSettingsGroupRepositoryHash,
|
dependencies: PreferenceSettingsGroupRepositoryFamily._dependencies,
|
||||||
dependencies: PreferenceSettingsGroupRepositoryFamily._dependencies,
|
allTransitiveDependencies: PreferenceSettingsGroupRepositoryFamily
|
||||||
allTransitiveDependencies:
|
._allTransitiveDependencies,
|
||||||
PreferenceSettingsGroupRepositoryFamily._allTransitiveDependencies,
|
partition: partition,
|
||||||
partition: partition,
|
groupName: groupName,
|
||||||
groupName: groupName,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
PreferenceSettingsGroupRepositoryProvider._internal(
|
PreferenceSettingsGroupRepositoryProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,10 +630,9 @@ 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,
|
||||||
name: null,
|
name: null,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -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> with PreferenceSettingsGroupRepositoryRef {
|
||||||
PreferenceSettingGroup
|
|
||||||
>
|
|
||||||
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,10 +13,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -31,15 +30,14 @@ String _$appearanceButtonVisibilityHash() =>
|
|||||||
@ProviderFor(appearanceButtonVisibility)
|
@ProviderFor(appearanceButtonVisibility)
|
||||||
final appearanceButtonVisibilityProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
|
|||||||
+8
-9
@@ -13,15 +13,14 @@ String _$readerableScreenControllerHash() =>
|
|||||||
@ProviderFor(ReaderableScreenController)
|
@ProviderFor(ReaderableScreenController)
|
||||||
final readerableScreenControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$ReaderableScreenController = AsyncNotifier<void>;
|
typedef _$ReaderableScreenController = AsyncNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
+14
-18
@@ -13,34 +13,30 @@ String _$engineHistorySuggestionsHash() =>
|
|||||||
@ProviderFor(engineHistorySuggestions)
|
@ProviderFor(engineHistorySuggestions)
|
||||||
final engineHistorySuggestionsProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|||||||
+43
-39
@@ -13,15 +13,14 @@ String _$defaultSearchSuggestionsHash() =>
|
|||||||
@ProviderFor(defaultSearchSuggestions)
|
@ProviderFor(defaultSearchSuggestions)
|
||||||
final defaultSearchSuggestionsProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -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,24 +100,24 @@ 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,
|
||||||
() => SearchSuggestions()..suggestionsProvider = suggestionsProvider,
|
}) : this._internal(
|
||||||
from: searchSuggestionsProvider,
|
() => SearchSuggestions()..suggestionsProvider = suggestionsProvider,
|
||||||
name: r'searchSuggestionsProvider',
|
from: searchSuggestionsProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'searchSuggestionsProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$searchSuggestionsHash,
|
? null
|
||||||
dependencies: SearchSuggestionsFamily._dependencies,
|
: _$searchSuggestionsHash,
|
||||||
allTransitiveDependencies:
|
dependencies: SearchSuggestionsFamily._dependencies,
|
||||||
SearchSuggestionsFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
suggestionsProvider: suggestionsProvider,
|
SearchSuggestionsFamily._allTransitiveDependencies,
|
||||||
);
|
suggestionsProvider: suggestionsProvider,
|
||||||
|
);
|
||||||
|
|
||||||
SearchSuggestionsProvider._internal(
|
SearchSuggestionsProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
@@ -149,7 +158,7 @@ class SearchSuggestionsProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeStreamNotifierProviderElement<SearchSuggestions, List<String>>
|
AutoDisposeStreamNotifierProviderElement<SearchSuggestions, List<String>>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _SearchSuggestionsProviderElement(this);
|
return _SearchSuggestionsProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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,16 +64,14 @@ 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 == const $CopyWithPlaceholder()
|
||||||
lockTimeout:
|
? _value.lockTimeout
|
||||||
lockTimeout == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.lockTimeout
|
: lockTimeout as Duration?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: 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,26 +141,22 @@ 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 == const $CopyWithPlaceholder()
|
||||||
contextualIdentity:
|
? _value.contextualIdentity
|
||||||
contextualIdentity == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.contextualIdentity
|
: contextualIdentity as String?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
authSettings: authSettings == const $CopyWithPlaceholder()
|
||||||
: contextualIdentity as String?,
|
? _value.authSettings
|
||||||
authSettings:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
authSettings == const $CopyWithPlaceholder()
|
: authSettings as ContainerAuthSettings,
|
||||||
? _value.authSettings
|
useProxy: useProxy == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.useProxy
|
||||||
: authSettings as ContainerAuthSettings,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
useProxy:
|
: useProxy as bool,
|
||||||
useProxy == const $CopyWithPlaceholder()
|
|
||||||
? _value.useProxy
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: 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,26 +225,22 @@ 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 == const $CopyWithPlaceholder()
|
||||||
name:
|
? _value.name
|
||||||
name == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.name
|
: name as String?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
color: color == const $CopyWithPlaceholder()
|
||||||
: name as String?,
|
? _value.color
|
||||||
color:
|
// ignore: cast_nullable_to_non_nullable
|
||||||
color == const $CopyWithPlaceholder()
|
: color as Color,
|
||||||
? _value.color
|
metadata: metadata == const $CopyWithPlaceholder()
|
||||||
// ignore: cast_nullable_to_non_nullable
|
? _value.metadata
|
||||||
: color as Color,
|
// ignore: cast_nullable_to_non_nullable
|
||||||
metadata:
|
: metadata as ContainerMetadata?,
|
||||||
metadata == const $CopyWithPlaceholder()
|
|
||||||
? _value.metadata
|
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: metadata as ContainerMetadata?,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -263,46 +256,39 @@ 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,
|
||||||
};
|
};
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$unusedRandomContainerColorHash() =>
|
|||||||
@ProviderFor(unusedRandomContainerColor)
|
@ProviderFor(unusedRandomContainerColor)
|
||||||
final unusedRandomContainerColorProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -33,20 +32,19 @@ String _$containersWithCountHash() =>
|
|||||||
@ProviderFor(containersWithCount)
|
@ProviderFor(containersWithCount)
|
||||||
final containersWithCountProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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,23 +117,24 @@ 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,
|
||||||
(ref) => matchSortedContainersWithCount(
|
) : this._internal(
|
||||||
ref as MatchSortedContainersWithCountRef,
|
(ref) => matchSortedContainersWithCount(
|
||||||
searchText,
|
ref as MatchSortedContainersWithCountRef,
|
||||||
),
|
searchText,
|
||||||
from: matchSortedContainersWithCountProvider,
|
),
|
||||||
name: r'matchSortedContainersWithCountProvider',
|
from: matchSortedContainersWithCountProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'matchSortedContainersWithCountProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$matchSortedContainersWithCountHash,
|
? null
|
||||||
dependencies: MatchSortedContainersWithCountFamily._dependencies,
|
: _$matchSortedContainersWithCountHash,
|
||||||
allTransitiveDependencies:
|
dependencies: MatchSortedContainersWithCountFamily._dependencies,
|
||||||
MatchSortedContainersWithCountFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
searchText: searchText,
|
MatchSortedContainersWithCountFamily._allTransitiveDependencies,
|
||||||
);
|
searchText: searchText,
|
||||||
|
);
|
||||||
|
|
||||||
MatchSortedContainersWithCountProvider._internal(
|
MatchSortedContainersWithCountProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -146,9 +151,8 @@ 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(
|
||||||
origin: this,
|
origin: this,
|
||||||
@@ -166,7 +170,7 @@ class MatchSortedContainersWithCountProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeProviderElement<AsyncValue<List<ContainerDataWithCount>>>
|
AutoDisposeProviderElement<AsyncValue<List<ContainerDataWithCount>>>
|
||||||
createElement() {
|
createElement() {
|
||||||
return _MatchSortedContainersWithCountProviderElement(this);
|
return _MatchSortedContainersWithCountProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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,20 +254,24 @@ 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(
|
||||||
from: containerTabIdsProvider,
|
(ref) => containerTabIds(
|
||||||
name: r'containerTabIdsProvider',
|
ref as ContainerTabIdsRef,
|
||||||
debugGetCreateSourceHash:
|
containerFilter,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: containerTabIdsProvider,
|
||||||
: _$containerTabIdsHash,
|
name: r'containerTabIdsProvider',
|
||||||
dependencies: ContainerTabIdsFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
ContainerTabIdsFamily._allTransitiveDependencies,
|
? null
|
||||||
containerFilter: containerFilter,
|
: _$containerTabIdsHash,
|
||||||
);
|
dependencies: ContainerTabIdsFamily._dependencies,
|
||||||
|
allTransitiveDependencies:
|
||||||
|
ContainerTabIdsFamily._allTransitiveDependencies,
|
||||||
|
containerFilter: containerFilter,
|
||||||
|
);
|
||||||
|
|
||||||
ContainerTabIdsProvider._internal(
|
ContainerTabIdsProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
|
|||||||
+16
-18
@@ -13,15 +13,14 @@ String _$selectedContainerDataHash() =>
|
|||||||
@ProviderFor(selectedContainerData)
|
@ProviderFor(selectedContainerData)
|
||||||
final selectedContainerDataProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -32,15 +31,14 @@ String _$selectedContainerHash() => r'f3dab491337396b8d56daed37a0d85c85aa8d64a';
|
|||||||
@ProviderFor(SelectedContainer)
|
@ProviderFor(SelectedContainer)
|
||||||
final selectedContainerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$SelectedContainer = Notifier<String?>;
|
typedef _$SelectedContainer = Notifier<String?>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$containerRepositoryHash() =>
|
|||||||
@ProviderFor(ContainerRepository)
|
@ProviderFor(ContainerRepository)
|
||||||
final containerRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$ContainerRepository = Notifier<void>;
|
typedef _$ContainerRepository = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$tabDataRepositoryHash() => r'30ae87fbcb37facd565cb28de605814cd7db4ce8';
|
|||||||
@ProviderFor(TabDataRepository)
|
@ProviderFor(TabDataRepository)
|
||||||
final tabDataRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$TabDataRepository = Notifier<void>;
|
typedef _$TabDataRepository = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,27 +83,24 @@ 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,
|
||||||
() => TabSearchRepository()..partition = partition,
|
) : this._internal(
|
||||||
from: tabSearchRepositoryProvider,
|
() => TabSearchRepository()..partition = partition,
|
||||||
name: r'tabSearchRepositoryProvider',
|
from: tabSearchRepositoryProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'tabSearchRepositoryProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$tabSearchRepositoryHash,
|
? null
|
||||||
dependencies: TabSearchRepositoryFamily._dependencies,
|
: _$tabSearchRepositoryHash,
|
||||||
allTransitiveDependencies:
|
dependencies: TabSearchRepositoryFamily._dependencies,
|
||||||
TabSearchRepositoryFamily._allTransitiveDependencies,
|
allTransitiveDependencies:
|
||||||
partition: partition,
|
TabSearchRepositoryFamily._allTransitiveDependencies,
|
||||||
);
|
partition: partition,
|
||||||
|
);
|
||||||
|
|
||||||
TabSearchRepositoryProvider._internal(
|
TabSearchRepositoryProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,19 +83,21 @@ 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,
|
||||||
() => ChatBackend()..chatId = chatId,
|
) : this._internal(
|
||||||
from: chatBackendProvider,
|
() => ChatBackend()..chatId = chatId,
|
||||||
name: r'chatBackendProvider',
|
from: chatBackendProvider,
|
||||||
debugGetCreateSourceHash:
|
name: r'chatBackendProvider',
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash:
|
||||||
? null
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
: _$chatBackendHash,
|
? null
|
||||||
dependencies: ChatBackendFamily._dependencies,
|
: _$chatBackendHash,
|
||||||
allTransitiveDependencies: ChatBackendFamily._allTransitiveDependencies,
|
dependencies: ChatBackendFamily._dependencies,
|
||||||
chatId: chatId,
|
allTransitiveDependencies:
|
||||||
);
|
ChatBackendFamily._allTransitiveDependencies,
|
||||||
|
chatId: chatId,
|
||||||
|
);
|
||||||
|
|
||||||
ChatBackendProvider._internal(
|
ChatBackendProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
|
|||||||
+24
-25
@@ -98,24 +98,23 @@ 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,
|
from: qAMemoryChainProvider,
|
||||||
from: qAMemoryChainProvider,
|
name: r'qAMemoryChainProvider',
|
||||||
name: r'qAMemoryChainProvider',
|
debugGetCreateSourceHash:
|
||||||
debugGetCreateSourceHash:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
? null
|
||||||
? null
|
: _$qAMemoryChainHash,
|
||||||
: _$qAMemoryChainHash,
|
dependencies: QAMemoryChainFamily._dependencies,
|
||||||
dependencies: QAMemoryChainFamily._dependencies,
|
allTransitiveDependencies:
|
||||||
allTransitiveDependencies:
|
QAMemoryChainFamily._allTransitiveDependencies,
|
||||||
QAMemoryChainFamily._allTransitiveDependencies,
|
chatId: chatId,
|
||||||
chatId: chatId,
|
mainDocumentId: mainDocumentId,
|
||||||
mainDocumentId: mainDocumentId,
|
contextId: contextId,
|
||||||
contextId: contextId,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
QAMemoryChainProvider._internal(
|
QAMemoryChainProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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,11 +148,10 @@ 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,
|
|
||||||
from: from,
|
from: from,
|
||||||
name: null,
|
name: null,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
@@ -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
|
||||||
|
|||||||
+8
-9
@@ -13,15 +13,14 @@ String _$documentRepositoryHash() =>
|
|||||||
@ProviderFor(DocumentRepository)
|
@ProviderFor(DocumentRepository)
|
||||||
final documentRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$DocumentRepository = AutoDisposeNotifier<void>;
|
typedef _$DocumentRepository = AutoDisposeNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$kagiAutosuggestServiceHash() =>
|
|||||||
@ProviderFor(KagiAutosuggestService)
|
@ProviderFor(KagiAutosuggestService)
|
||||||
final kagiAutosuggestServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$KagiAutosuggestService = Notifier<void>;
|
typedef _$KagiAutosuggestService = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$kagiChatServiceHash() => r'a112b70b42fe9d650c9d4dc643bf965ddce7bfa6';
|
|||||||
@ProviderFor(KagiChatService)
|
@ProviderFor(KagiChatService)
|
||||||
final kagiChatServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$KagiChatService = Notifier<void>;
|
typedef _$KagiChatService = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$kagiSessionServiceHash() =>
|
|||||||
@ProviderFor(KagiSessionService)
|
@ProviderFor(KagiSessionService)
|
||||||
final kagiSessionServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$KagiSessionService = AutoDisposeNotifier<void>;
|
typedef _$KagiSessionService = AutoDisposeNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,30 +83,25 @@ 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',
|
debugGetCreateSourceHash:
|
||||||
debugGetCreateSourceHash:
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
? null
|
||||||
? null
|
: _$searchSuggestionsRepositoryHash,
|
||||||
: _$searchSuggestionsRepositoryHash,
|
dependencies: SearchSuggestionsRepositoryFamily._dependencies,
|
||||||
dependencies: SearchSuggestionsRepositoryFamily._dependencies,
|
allTransitiveDependencies:
|
||||||
allTransitiveDependencies:
|
SearchSuggestionsRepositoryFamily._allTransitiveDependencies,
|
||||||
SearchSuggestionsRepositoryFamily._allTransitiveDependencies,
|
suggestionsProvider: suggestionsProvider,
|
||||||
suggestionsProvider: suggestionsProvider,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
SearchSuggestionsRepositoryProvider._internal(
|
SearchSuggestionsRepositoryProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$saveGeneralSettingsControllerHash() =>
|
|||||||
@ProviderFor(SaveGeneralSettingsController)
|
@ProviderFor(SaveGeneralSettingsController)
|
||||||
final saveGeneralSettingsControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$SaveGeneralSettingsController = AsyncNotifier<void>;
|
typedef _$SaveGeneralSettingsController = AsyncNotifier<void>;
|
||||||
String _$saveEngineSettingsControllerHash() =>
|
String _$saveEngineSettingsControllerHash() =>
|
||||||
@@ -31,15 +30,14 @@ String _$saveEngineSettingsControllerHash() =>
|
|||||||
@ProviderFor(SaveEngineSettingsController)
|
@ProviderFor(SaveEngineSettingsController)
|
||||||
final saveEngineSettingsControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$SaveEngineSettingsController = AsyncNotifier<void>;
|
typedef _$SaveEngineSettingsController = AsyncNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,19 +13,18 @@ String _$sharingIntentStreamHash() =>
|
|||||||
@ProviderFor(sharingIntentStream)
|
@ProviderFor(sharingIntentStream)
|
||||||
final sharingIntentStreamProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$torProxyServiceHash() => r'85ed8e3b49007aa56e6b82ff802a3e0ce567a0c8';
|
|||||||
@ProviderFor(TorProxyService)
|
@ProviderFor(TorProxyService)
|
||||||
final torProxyServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$TorProxyService = AsyncNotifier<int?>;
|
typedef _$TorProxyService = AsyncNotifier<int?>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$startProxyControllerHash() =>
|
|||||||
@ProviderFor(StartProxyController)
|
@ProviderFor(StartProxyController)
|
||||||
final startProxyControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$StartProxyController = AutoDisposeNotifier<void>;
|
typedef _$StartProxyController = AutoDisposeNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,
|
type: DriftSqlType.string,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$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,
|
type: DriftSqlType.string,
|
||||||
true,
|
requiredDuringInsert: false,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: '');
|
||||||
requiredDuringInsert: false,
|
|
||||||
$customConstraints: '',
|
|
||||||
);
|
|
||||||
late final GeneratedColumn<DriftAny> value = GeneratedColumn<DriftAny>(
|
late final GeneratedColumn<DriftAny> value = GeneratedColumn<DriftAny>(
|
||||||
'value',
|
'value', aliasedName, true,
|
||||||
aliasedName,
|
type: DriftSqlType.any,
|
||||||
true,
|
requiredDuringInsert: false,
|
||||||
type: DriftSqlType.any,
|
$customConstraints: '');
|
||||||
requiredDuringInsert: false,
|
|
||||||
$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,22 +93,22 @@ 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:
|
||||||
value: value.present ? value.value : this.value,
|
partitionKey.present ? partitionKey.value : this.partitionKey,
|
||||||
);
|
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,
|
type: DriftSqlType.string,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.string,
|
$customConstraints: 'PRIMARY KEY NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$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,
|
type: DriftSqlType.blob,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.blob,
|
$customConstraints: 'NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$customConstraints: 'NOT NULL',
|
|
||||||
);
|
|
||||||
late final GeneratedColumn<DateTime> fetchDate = GeneratedColumn<DateTime>(
|
late final GeneratedColumn<DateTime> fetchDate = GeneratedColumn<DateTime>(
|
||||||
'fetch_date',
|
'fetch_date', aliasedName, false,
|
||||||
aliasedName,
|
type: DriftSqlType.dateTime,
|
||||||
false,
|
requiredDuringInsert: true,
|
||||||
type: DriftSqlType.dateTime,
|
$customConstraints: 'NOT NULL');
|
||||||
requiredDuringInsert: true,
|
|
||||||
$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,15 +293,13 @@ class IconCacheData extends DataClass implements Insertable<IconCacheData> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
IconCacheData copyWith({
|
IconCacheData copyWith(
|
||||||
String? origin,
|
{String? origin, Uint8List? iconData, DateTime? fetchDate}) =>
|
||||||
Uint8List? iconData,
|
IconCacheData(
|
||||||
DateTime? fetchDate,
|
origin: origin ?? this.origin,
|
||||||
}) => IconCacheData(
|
iconData: iconData ?? this.iconData,
|
||||||
origin: origin ?? this.origin,
|
fetchDate: fetchDate ?? this.fetchDate,
|
||||||
iconData: iconData ?? this.iconData,
|
);
|
||||||
fetchDate: fetchDate ?? this.fetchDate,
|
|
||||||
);
|
|
||||||
IconCacheData copyWithCompanion(IconCacheCompanion data) {
|
IconCacheData copyWithCompanion(IconCacheCompanion data) {
|
||||||
return IconCacheData(
|
return IconCacheData(
|
||||||
origin: data.origin.present ? data.origin.value : this.origin,
|
origin: data.origin.present ? data.origin.value : this.origin,
|
||||||
@@ -390,9 +346,9 @@ class IconCacheCompanion extends UpdateCompanion<IconCacheData> {
|
|||||||
required Uint8List iconData,
|
required Uint8List iconData,
|
||||||
required DateTime fetchDate,
|
required DateTime fetchDate,
|
||||||
this.rowid = const Value.absent(),
|
this.rowid = const Value.absent(),
|
||||||
}) : origin = Value(origin),
|
}) : origin = Value(origin),
|
||||||
iconData = Value(iconData),
|
iconData = Value(iconData),
|
||||||
fetchDate = Value(fetchDate);
|
fetchDate = Value(fetchDate);
|
||||||
static Insertable<IconCacheData> custom({
|
static Insertable<IconCacheData> custom({
|
||||||
Expression<String>? origin,
|
Expression<String>? origin,
|
||||||
Expression<Uint8List>? iconData,
|
Expression<Uint8List>? iconData,
|
||||||
@@ -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,20 +429,18 @@ 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 = SettingCompanion Function({
|
||||||
typedef $SettingUpdateCompanionBuilder =
|
Value<String> key,
|
||||||
SettingCompanion Function({
|
Value<String?> partitionKey,
|
||||||
Value<String> key,
|
Value<DriftAny?> value,
|
||||||
Value<String?> partitionKey,
|
Value<int> rowid,
|
||||||
Value<DriftAny?> value,
|
});
|
||||||
Value<int> rowid,
|
|
||||||
});
|
|
||||||
|
|
||||||
class $SettingFilterComposer extends Composer<_$UserDatabase, Setting> {
|
class $SettingFilterComposer extends Composer<_$UserDatabase, Setting> {
|
||||||
$SettingFilterComposer({
|
$SettingFilterComposer({
|
||||||
@@ -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,107 +491,89 @@ 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
|
_$UserDatabase,
|
||||||
RootTableManager<
|
Setting,
|
||||||
_$UserDatabase,
|
SettingData,
|
||||||
Setting,
|
$SettingFilterComposer,
|
||||||
SettingData,
|
$SettingOrderingComposer,
|
||||||
$SettingFilterComposer,
|
$SettingAnnotationComposer,
|
||||||
$SettingOrderingComposer,
|
$SettingCreateCompanionBuilder,
|
||||||
$SettingAnnotationComposer,
|
$SettingUpdateCompanionBuilder,
|
||||||
$SettingCreateCompanionBuilder,
|
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||||
$SettingUpdateCompanionBuilder,
|
SettingData,
|
||||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
PrefetchHooks Function()> {
|
||||||
SettingData,
|
|
||||||
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
|
.toList(),
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
|
||||||
prefetchHooksCallback: null,
|
prefetchHooksCallback: null,
|
||||||
),
|
));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $SettingProcessedTableManager =
|
typedef $SettingProcessedTableManager = ProcessedTableManager<
|
||||||
ProcessedTableManager<
|
_$UserDatabase,
|
||||||
_$UserDatabase,
|
Setting,
|
||||||
Setting,
|
SettingData,
|
||||||
SettingData,
|
$SettingFilterComposer,
|
||||||
$SettingFilterComposer,
|
$SettingOrderingComposer,
|
||||||
$SettingOrderingComposer,
|
$SettingAnnotationComposer,
|
||||||
$SettingAnnotationComposer,
|
$SettingCreateCompanionBuilder,
|
||||||
$SettingCreateCompanionBuilder,
|
$SettingUpdateCompanionBuilder,
|
||||||
$SettingUpdateCompanionBuilder,
|
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
||||||
(SettingData, BaseReferences<_$UserDatabase, Setting, SettingData>),
|
SettingData,
|
||||||
SettingData,
|
PrefetchHooks Function()>;
|
||||||
PrefetchHooks Function()
|
typedef $IconCacheCreateCompanionBuilder = IconCacheCompanion Function({
|
||||||
>;
|
required String origin,
|
||||||
typedef $IconCacheCreateCompanionBuilder =
|
required Uint8List iconData,
|
||||||
IconCacheCompanion Function({
|
required DateTime fetchDate,
|
||||||
required String origin,
|
Value<int> rowid,
|
||||||
required Uint8List iconData,
|
});
|
||||||
required DateTime fetchDate,
|
typedef $IconCacheUpdateCompanionBuilder = IconCacheCompanion Function({
|
||||||
Value<int> rowid,
|
Value<String> origin,
|
||||||
});
|
Value<Uint8List> iconData,
|
||||||
typedef $IconCacheUpdateCompanionBuilder =
|
Value<DateTime> fetchDate,
|
||||||
IconCacheCompanion Function({
|
Value<int> rowid,
|
||||||
Value<String> origin,
|
});
|
||||||
Value<Uint8List> iconData,
|
|
||||||
Value<DateTime> fetchDate,
|
|
||||||
Value<int> rowid,
|
|
||||||
});
|
|
||||||
|
|
||||||
class $IconCacheFilterComposer extends Composer<_$UserDatabase, IconCache> {
|
class $IconCacheFilterComposer extends Composer<_$UserDatabase, IconCache> {
|
||||||
$IconCacheFilterComposer({
|
$IconCacheFilterComposer({
|
||||||
@@ -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,88 +629,71 @@ 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
|
_$UserDatabase,
|
||||||
RootTableManager<
|
IconCache,
|
||||||
_$UserDatabase,
|
IconCacheData,
|
||||||
IconCache,
|
$IconCacheFilterComposer,
|
||||||
IconCacheData,
|
$IconCacheOrderingComposer,
|
||||||
$IconCacheFilterComposer,
|
$IconCacheAnnotationComposer,
|
||||||
$IconCacheOrderingComposer,
|
$IconCacheCreateCompanionBuilder,
|
||||||
$IconCacheAnnotationComposer,
|
$IconCacheUpdateCompanionBuilder,
|
||||||
$IconCacheCreateCompanionBuilder,
|
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
||||||
$IconCacheUpdateCompanionBuilder,
|
IconCacheData,
|
||||||
(
|
PrefetchHooks Function()> {
|
||||||
IconCacheData,
|
|
||||||
BaseReferences<_$UserDatabase, IconCache, IconCacheData>,
|
|
||||||
),
|
|
||||||
IconCacheData,
|
|
||||||
PrefetchHooks Function()
|
|
||||||
> {
|
|
||||||
$IconCacheTableManager(_$UserDatabase db, IconCache table)
|
$IconCacheTableManager(_$UserDatabase db, IconCache table)
|
||||||
: super(
|
: super(TableManagerState(
|
||||||
TableManagerState(
|
|
||||||
db: db,
|
db: db,
|
||||||
table: table,
|
table: table,
|
||||||
createFilteringComposer:
|
createFilteringComposer: () =>
|
||||||
() => $IconCacheFilterComposer($db: db, $table: table),
|
$IconCacheFilterComposer($db: db, $table: table),
|
||||||
createOrderingComposer:
|
createOrderingComposer: () =>
|
||||||
() => $IconCacheOrderingComposer($db: db, $table: table),
|
$IconCacheOrderingComposer($db: db, $table: table),
|
||||||
createComputedFieldComposer:
|
createComputedFieldComposer: () =>
|
||||||
() => $IconCacheAnnotationComposer($db: db, $table: table),
|
$IconCacheAnnotationComposer($db: db, $table: table),
|
||||||
updateCompanionCallback:
|
updateCompanionCallback: ({
|
||||||
({
|
Value<String> origin = const Value.absent(),
|
||||||
Value<String> origin = const Value.absent(),
|
Value<Uint8List> iconData = const Value.absent(),
|
||||||
Value<Uint8List> iconData = const Value.absent(),
|
Value<DateTime> fetchDate = const Value.absent(),
|
||||||
Value<DateTime> fetchDate = const Value.absent(),
|
Value<int> rowid = const Value.absent(),
|
||||||
Value<int> rowid = const Value.absent(),
|
}) =>
|
||||||
}) => IconCacheCompanion(
|
IconCacheCompanion(
|
||||||
origin: origin,
|
origin: origin,
|
||||||
iconData: iconData,
|
iconData: iconData,
|
||||||
fetchDate: fetchDate,
|
fetchDate: fetchDate,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
createCompanionCallback:
|
createCompanionCallback: ({
|
||||||
({
|
required String origin,
|
||||||
required String origin,
|
required Uint8List iconData,
|
||||||
required Uint8List iconData,
|
required DateTime fetchDate,
|
||||||
required DateTime fetchDate,
|
Value<int> rowid = const Value.absent(),
|
||||||
Value<int> rowid = const Value.absent(),
|
}) =>
|
||||||
}) => IconCacheCompanion.insert(
|
IconCacheCompanion.insert(
|
||||||
origin: origin,
|
origin: origin,
|
||||||
iconData: iconData,
|
iconData: iconData,
|
||||||
fetchDate: fetchDate,
|
fetchDate: fetchDate,
|
||||||
rowid: rowid,
|
rowid: rowid,
|
||||||
),
|
),
|
||||||
withReferenceMapper:
|
withReferenceMapper: (p0) => p0
|
||||||
(p0) =>
|
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||||
p0
|
.toList(),
|
||||||
.map(
|
|
||||||
(e) => (
|
|
||||||
e.readTable(table),
|
|
||||||
BaseReferences(db, table, e),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList(),
|
|
||||||
prefetchHooksCallback: null,
|
prefetchHooksCallback: null,
|
||||||
),
|
));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef $IconCacheProcessedTableManager =
|
typedef $IconCacheProcessedTableManager = ProcessedTableManager<
|
||||||
ProcessedTableManager<
|
_$UserDatabase,
|
||||||
_$UserDatabase,
|
IconCache,
|
||||||
IconCache,
|
IconCacheData,
|
||||||
IconCacheData,
|
$IconCacheFilterComposer,
|
||||||
$IconCacheFilterComposer,
|
$IconCacheOrderingComposer,
|
||||||
$IconCacheOrderingComposer,
|
$IconCacheAnnotationComposer,
|
||||||
$IconCacheAnnotationComposer,
|
$IconCacheCreateCompanionBuilder,
|
||||||
$IconCacheCreateCompanionBuilder,
|
$IconCacheUpdateCompanionBuilder,
|
||||||
$IconCacheUpdateCompanionBuilder,
|
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
||||||
(IconCacheData, BaseReferences<_$UserDatabase, IconCache, IconCacheData>),
|
IconCacheData,
|
||||||
IconCacheData,
|
PrefetchHooks Function()>;
|
||||||
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,31 +133,28 @@ 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?,
|
|
||||||
trackingProtectionPolicy:
|
trackingProtectionPolicy:
|
||||||
trackingProtectionPolicy == const $CopyWithPlaceholder()
|
trackingProtectionPolicy == const $CopyWithPlaceholder()
|
||||||
? _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?,
|
|
||||||
globalPrivacyControlEnabled:
|
globalPrivacyControlEnabled:
|
||||||
globalPrivacyControlEnabled == const $CopyWithPlaceholder()
|
globalPrivacyControlEnabled == const $CopyWithPlaceholder()
|
||||||
? _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?,
|
|
||||||
cookieBannerHandlingMode:
|
cookieBannerHandlingMode:
|
||||||
cookieBannerHandlingMode == const $CopyWithPlaceholder()
|
cookieBannerHandlingMode == const $CopyWithPlaceholder()
|
||||||
? _value.cookieBannerHandlingMode
|
? _value.cookieBannerHandlingMode
|
||||||
@@ -211,57 +201,47 @@ 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':
|
||||||
'preferredColorScheme': _$ColorSchemeEnumMap[instance.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':
|
||||||
'cookieBannerHandlingGlobalRulesSubFrames':
|
instance.cookieBannerHandlingGlobalRules,
|
||||||
instance.cookieBannerHandlingGlobalRulesSubFrames,
|
'cookieBannerHandlingGlobalRulesSubFrames':
|
||||||
'webContentIsolationStrategy':
|
instance.cookieBannerHandlingGlobalRulesSubFrames,
|
||||||
_$WebContentIsolationStrategyEnumMap[instance
|
'webContentIsolationStrategy': _$WebContentIsolationStrategyEnumMap[
|
||||||
.webContentIsolationStrategy]!,
|
instance.webContentIsolationStrategy]!,
|
||||||
};
|
};
|
||||||
|
|
||||||
const _$TrackingProtectionPolicyEnumMap = {
|
const _$TrackingProtectionPolicyEnumMap = {
|
||||||
TrackingProtectionPolicy.none: 'none',
|
TrackingProtectionPolicy.none: 'none',
|
||||||
|
|||||||
@@ -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,16 +59,14 @@ 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 == const $CopyWithPlaceholder()
|
||||||
enableReadability:
|
? _value.enableReadability
|
||||||
enableReadability == const $CopyWithPlaceholder()
|
// ignore: cast_nullable_to_non_nullable
|
||||||
? _value.enableReadability
|
: enableReadability as bool,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
: enableReadability as bool,
|
|
||||||
deleteBrowsingDataOnQuit:
|
deleteBrowsingDataOnQuit:
|
||||||
deleteBrowsingDataOnQuit == const $CopyWithPlaceholder()
|
deleteBrowsingDataOnQuit == const $CopyWithPlaceholder()
|
||||||
? _value.deleteBrowsingDataOnQuit
|
? _value.deleteBrowsingDataOnQuit
|
||||||
@@ -102,10 +100,9 @@ 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(),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const _$ThemeModeEnumMap = {
|
const _$ThemeModeEnumMap = {
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$iconCacheSizeMegabytesHash() =>
|
|||||||
@ProviderFor(iconCacheSizeMegabytes)
|
@ProviderFor(iconCacheSizeMegabytes)
|
||||||
final iconCacheSizeMegabytesProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
@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
|
||||||
@@ -33,10 +32,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
@@ -100,10 +98,9 @@ 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,
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$authRepositoryHash() => r'90ea6f082ef968831763c7f7ee31863f1fe329fe';
|
|||||||
@ProviderFor(AuthRepository)
|
@ProviderFor(AuthRepository)
|
||||||
final authRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$AuthRepository = AutoDisposeNotifier<void>;
|
typedef _$AuthRepository = AutoDisposeNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$cacheRepositoryHash() => r'548b7cba9a23c21bba39f0918d7d90acaaf8d8e9';
|
|||||||
@ProviderFor(CacheRepository)
|
@ProviderFor(CacheRepository)
|
||||||
final cacheRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$CacheRepository = Notifier<void>;
|
typedef _$CacheRepository = Notifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$engineSettingsRepositoryHash() =>
|
|||||||
@ProviderFor(EngineSettingsRepository)
|
@ProviderFor(EngineSettingsRepository)
|
||||||
final engineSettingsRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$EngineSettingsRepository = Notifier<EngineSettings>;
|
typedef _$EngineSettingsRepository = Notifier<EngineSettings>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$generalSettingsRepositoryHash() =>
|
|||||||
@ProviderFor(GeneralSettingsRepository)
|
@ProviderFor(GeneralSettingsRepository)
|
||||||
final generalSettingsRepositoryProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$GeneralSettingsRepository = Notifier<GeneralSettings>;
|
typedef _$GeneralSettingsRepository = Notifier<GeneralSettings>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -13,15 +13,14 @@ String _$localAuthenticationServiceHash() =>
|
|||||||
@ProviderFor(LocalAuthenticationService)
|
@ProviderFor(LocalAuthenticationService)
|
||||||
final localAuthenticationServiceProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$LocalAuthenticationService = AsyncNotifier<bool>;
|
typedef _$LocalAuthenticationService = AsyncNotifier<bool>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -12,15 +12,14 @@ String _$authControllerHash() => r'5b56651948683d669f29946fe02bdb004f436afb';
|
|||||||
@ProviderFor(AuthController)
|
@ProviderFor(AuthController)
|
||||||
final authControllerProvider =
|
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,
|
allTransitiveDependencies: null,
|
||||||
allTransitiveDependencies: null,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$AuthController = AutoDisposeAsyncNotifier<void>;
|
typedef _$AuthController = AutoDisposeAsyncNotifier<void>;
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
|
|||||||
@@ -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,19 +74,23 @@ 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(
|
||||||
from: pageInfoProvider,
|
(ref) => pageInfo(
|
||||||
name: r'pageInfoProvider',
|
ref as PageInfoRef,
|
||||||
debugGetCreateSourceHash:
|
url,
|
||||||
const bool.fromEnvironment('dart.vm.product')
|
),
|
||||||
? null
|
from: pageInfoProvider,
|
||||||
: _$pageInfoHash,
|
name: r'pageInfoProvider',
|
||||||
dependencies: PageInfoFamily._dependencies,
|
debugGetCreateSourceHash:
|
||||||
allTransitiveDependencies: PageInfoFamily._allTransitiveDependencies,
|
const bool.fromEnvironment('dart.vm.product')
|
||||||
url: url,
|
? null
|
||||||
);
|
: _$pageInfoHash,
|
||||||
|
dependencies: PageInfoFamily._dependencies,
|
||||||
|
allTransitiveDependencies: PageInfoFamily._allTransitiveDependencies,
|
||||||
|
url: url,
|
||||||
|
);
|
||||||
|
|
||||||
PageInfoProvider._internal(
|
PageInfoProvider._internal(
|
||||||
super._createNotifier, {
|
super._createNotifier, {
|
||||||
@@ -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