Update dependency

This commit is contained in:
Ming Ming 2023-01-14 01:53:38 +08:00
parent bbdfe10a8d
commit 427b43fcb8
6 changed files with 57 additions and 34 deletions

View file

@ -10,7 +10,7 @@ import 'package:to_string/to_string.dart';
part 'expert.g.dart'; part 'expert.g.dart';
@autoCopyWith @genCopyWith
@toString @toString
class ExpertSettingsState { class ExpertSettingsState {
const ExpertSettingsState({ const ExpertSettingsState({
@ -67,7 +67,7 @@ class ExpertSettingsBloc
await db.insertAccountOf(a); await db.insertAccountOf(a);
} }
}); });
emit(state.copyWith(lastSuccessful: Nullable(ev))); emit(state.copyWith(lastSuccessful: ev));
} catch (e, stackTrace) { } catch (e, stackTrace) {
_log.shout("[_onClearCacheDatabase] Uncaught exception", e, stackTrace); _log.shout("[_onClearCacheDatabase] Uncaught exception", e, stackTrace);
_errorStream.add(ExpertSettingsError(ev, e, stackTrace)); _errorStream.add(ExpertSettingsError(ev, e, stackTrace));

View file

@ -6,17 +6,29 @@ part of 'expert.dart';
// CopyWithGenerator // CopyWithGenerator
// ************************************************************************** // **************************************************************************
extension $ExpertSettingsStateCopyWith on ExpertSettingsState { abstract class $ExpertSettingsStateCopyWithWorker {
ExpertSettingsState copyWith( ExpertSettingsState call({ExpertSettingsEvent? lastSuccessful});
{Nullable<ExpertSettingsEvent>? lastSuccessful}) => }
_$copyWith(lastSuccessful: lastSuccessful);
ExpertSettingsState _$copyWith( class _$ExpertSettingsStateCopyWithWorkerImpl
{Nullable<ExpertSettingsEvent>? lastSuccessful}) { implements $ExpertSettingsStateCopyWithWorker {
_$ExpertSettingsStateCopyWithWorkerImpl(this.that);
@override
ExpertSettingsState call({dynamic lastSuccessful = copyWithNull}) {
return ExpertSettingsState( return ExpertSettingsState(
lastSuccessful: lastSuccessful: lastSuccessful == copyWithNull
lastSuccessful != null ? lastSuccessful.obj : this.lastSuccessful); ? that.lastSuccessful
: lastSuccessful as ExpertSettingsEvent?);
} }
final ExpertSettingsState that;
}
extension $ExpertSettingsStateCopyWith on ExpertSettingsState {
$ExpertSettingsStateCopyWithWorker get copyWith => _$copyWith;
$ExpertSettingsStateCopyWithWorker get _$copyWith =>
_$ExpertSettingsStateCopyWithWorkerImpl(this);
} }
// ************************************************************************** // **************************************************************************

View file

@ -14,7 +14,7 @@ import 'package:to_string/to_string.dart';
part 'theme.g.dart'; part 'theme.g.dart';
@autoCopyWith @genCopyWith
@toString @toString
class ThemeSettingsState { class ThemeSettingsState {
const ThemeSettingsState({ const ThemeSettingsState({

View file

@ -6,26 +6,37 @@ part of 'theme.dart';
// CopyWithGenerator // CopyWithGenerator
// ************************************************************************** // **************************************************************************
extension $ThemeSettingsStateCopyWith on ThemeSettingsState { abstract class $ThemeSettingsStateCopyWithWorker {
ThemeSettingsState copyWith( ThemeSettingsState call(
{bool? isFollowSystemTheme,
bool? isUseBlackInDarkTheme,
Color? seedColor}) =>
_$copyWith(
isFollowSystemTheme: isFollowSystemTheme,
isUseBlackInDarkTheme: isUseBlackInDarkTheme,
seedColor: seedColor);
ThemeSettingsState _$copyWith(
{bool? isFollowSystemTheme, {bool? isFollowSystemTheme,
bool? isUseBlackInDarkTheme, bool? isUseBlackInDarkTheme,
Color? seedColor}) { Color? seedColor});
}
class _$ThemeSettingsStateCopyWithWorkerImpl
implements $ThemeSettingsStateCopyWithWorker {
_$ThemeSettingsStateCopyWithWorkerImpl(this.that);
@override
ThemeSettingsState call(
{dynamic isFollowSystemTheme,
dynamic isUseBlackInDarkTheme,
dynamic seedColor}) {
return ThemeSettingsState( return ThemeSettingsState(
isFollowSystemTheme: isFollowSystemTheme ?? this.isFollowSystemTheme, isFollowSystemTheme:
isFollowSystemTheme as bool? ?? that.isFollowSystemTheme,
isUseBlackInDarkTheme: isUseBlackInDarkTheme:
isUseBlackInDarkTheme ?? this.isUseBlackInDarkTheme, isUseBlackInDarkTheme as bool? ?? that.isUseBlackInDarkTheme,
seedColor: seedColor ?? this.seedColor); seedColor: seedColor as Color? ?? that.seedColor);
} }
final ThemeSettingsState that;
}
extension $ThemeSettingsStateCopyWith on ThemeSettingsState {
$ThemeSettingsStateCopyWithWorker get copyWith => _$copyWith;
$ThemeSettingsStateCopyWithWorker get _$copyWith =>
_$ThemeSettingsStateCopyWithWorkerImpl(this);
} }
// ************************************************************************** // **************************************************************************

View file

@ -301,20 +301,20 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: copy_with path: copy_with
ref: "copy_with-1.0.0" ref: "copy_with-1.2.0"
resolved-ref: c3ef6b3b5337f99ee7c0e1fb655bacf635d8b072 resolved-ref: c7522d73c206268302dca99b092e59e49b4fc085
url: "https://gitlab.com/nkming2/dart-copy-with" url: "https://gitlab.com/nkming2/dart-copy-with"
source: git source: git
version: "1.0.0" version: "1.2.0"
copy_with_build: copy_with_build:
dependency: "direct dev" dependency: "direct dev"
description: description:
path: copy_with_build path: copy_with_build
ref: "copy_with_build-1.0.0" ref: "copy_with_build-1.2.0"
resolved-ref: "8303676d56dc16bc2fb1e38ad95c5d97b493e613" resolved-ref: c7522d73c206268302dca99b092e59e49b4fc085
url: "https://gitlab.com/nkming2/dart-copy-with" url: "https://gitlab.com/nkming2/dart-copy-with"
source: git source: git
version: "1.0.0" version: "1.2.0"
coverage: coverage:
dependency: transitive dependency: transitive
description: description:

View file

@ -44,7 +44,7 @@ dependencies:
git: git:
url: https://gitlab.com/nkming2/dart-copy-with url: https://gitlab.com/nkming2/dart-copy-with
path: copy_with path: copy_with
ref: copy_with-1.0.0 ref: copy_with-1.2.0
devicelocale: ^0.5.0 devicelocale: ^0.5.0
device_info_plus: ^4.0.0 device_info_plus: ^4.0.0
draggable_scrollbar: draggable_scrollbar:
@ -133,7 +133,7 @@ dev_dependencies:
git: git:
url: https://gitlab.com/nkming2/dart-copy-with url: https://gitlab.com/nkming2/dart-copy-with
path: copy_with_build path: copy_with_build
ref: copy_with_build-1.0.0 ref: copy_with_build-1.2.0
drift_dev: ^1.7.0 drift_dev: ^1.7.0
flutter_lints: ^2.0.1 flutter_lints: ^2.0.1
flutter_test: flutter_test: