164 lines
4.0 KiB
Dart
164 lines
4.0 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|||
|
|
|
||
|
|
part of 'auth_store.dart';
|
||
|
|
|
||
|
|
// **************************************************************************
|
||
|
|
// StoreGenerator
|
||
|
|
// **************************************************************************
|
||
|
|
|
||
|
|
// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers
|
||
|
|
|
||
|
|
mixin _$AuthStore on _AuthStoreBase, Store {
|
||
|
|
Computed<bool>? _$isAuthenticatedComputed;
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool get isAuthenticated => (_$isAuthenticatedComputed ??= Computed<bool>(
|
||
|
|
() => super.isAuthenticated,
|
||
|
|
name: '_AuthStoreBase.isAuthenticated',
|
||
|
|
)).value;
|
||
|
|
|
||
|
|
late final _$isLoadingAtom = Atom(
|
||
|
|
name: '_AuthStoreBase.isLoading',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool get isLoading {
|
||
|
|
_$isLoadingAtom.reportRead();
|
||
|
|
return super.isLoading;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set isLoading(bool value) {
|
||
|
|
_$isLoadingAtom.reportWrite(value, super.isLoading, () {
|
||
|
|
super.isLoading = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$isPasswordVisibleAtom = Atom(
|
||
|
|
name: '_AuthStoreBase.isPasswordVisible',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool get isPasswordVisible {
|
||
|
|
_$isPasswordVisibleAtom.reportRead();
|
||
|
|
return super.isPasswordVisible;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set isPasswordVisible(bool value) {
|
||
|
|
_$isPasswordVisibleAtom.reportWrite(value, super.isPasswordVisible, () {
|
||
|
|
super.isPasswordVisible = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$currentSessionAtom = Atom(
|
||
|
|
name: '_AuthStoreBase.currentSession',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
AuthSessionModel? get currentSession {
|
||
|
|
_$currentSessionAtom.reportRead();
|
||
|
|
return super.currentSession;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set currentSession(AuthSessionModel? value) {
|
||
|
|
_$currentSessionAtom.reportWrite(value, super.currentSession, () {
|
||
|
|
super.currentSession = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$errorMessageAtom = Atom(
|
||
|
|
name: '_AuthStoreBase.errorMessage',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
String? get errorMessage {
|
||
|
|
_$errorMessageAtom.reportRead();
|
||
|
|
return super.errorMessage;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set errorMessage(String? value) {
|
||
|
|
_$errorMessageAtom.reportWrite(value, super.errorMessage, () {
|
||
|
|
super.errorMessage = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$loginAsyncAction = AsyncAction(
|
||
|
|
'_AuthStoreBase.login',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Future<bool> login({required String email, required String password}) {
|
||
|
|
return _$loginAsyncAction.run(
|
||
|
|
() => super.login(email: email, password: password),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$checkInitialSessionAsyncAction = AsyncAction(
|
||
|
|
'_AuthStoreBase.checkInitialSession',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Future<void> checkInitialSession() {
|
||
|
|
return _$checkInitialSessionAsyncAction.run(
|
||
|
|
() => super.checkInitialSession(),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$refreshTokenAsyncAction = AsyncAction(
|
||
|
|
'_AuthStoreBase.refreshToken',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Future<bool> refreshToken() {
|
||
|
|
return _$refreshTokenAsyncAction.run(() => super.refreshToken());
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$logoutAsyncAction = AsyncAction(
|
||
|
|
'_AuthStoreBase.logout',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Future<void> logout() {
|
||
|
|
return _$logoutAsyncAction.run(() => super.logout());
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$_AuthStoreBaseActionController = ActionController(
|
||
|
|
name: '_AuthStoreBase',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
void togglePasswordVisibility() {
|
||
|
|
final _$actionInfo = _$_AuthStoreBaseActionController.startAction(
|
||
|
|
name: '_AuthStoreBase.togglePasswordVisibility',
|
||
|
|
);
|
||
|
|
try {
|
||
|
|
return super.togglePasswordVisibility();
|
||
|
|
} finally {
|
||
|
|
_$_AuthStoreBaseActionController.endAction(_$actionInfo);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return '''
|
||
|
|
isLoading: ${isLoading},
|
||
|
|
isPasswordVisible: ${isPasswordVisible},
|
||
|
|
currentSession: ${currentSession},
|
||
|
|
errorMessage: ${errorMessage},
|
||
|
|
isAuthenticated: ${isAuthenticated}
|
||
|
|
''';
|
||
|
|
}
|
||
|
|
}
|