mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2026-02-05 03:32:18 +00:00
refactor(app): Форматирование
This commit is contained in:
@@ -4,9 +4,7 @@ abstract interface class ISecureStorage {
|
|||||||
///
|
///
|
||||||
/// Требует:
|
/// Требует:
|
||||||
/// - [secretKey] - секретный ключ для шифрования данных
|
/// - [secretKey] - секретный ключ для шифрования данных
|
||||||
const ISecureStorage._({
|
const ISecureStorage._({required this.secretKey});
|
||||||
required this.secretKey,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// Секретный ключ для шифрования данных
|
/// Секретный ключ для шифрования данных
|
||||||
/// Нужен, если надо передать ключ в реализацию
|
/// Нужен, если надо передать ключ в реализацию
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import 'package:friflex_starter/features/auth/domain/repository/i_auth_repositor
|
|||||||
/// Реализация репозитория авторизации
|
/// Реализация репозитория авторизации
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
final class AuthRepository implements IAuthRepository {
|
final class AuthRepository implements IAuthRepository {
|
||||||
|
|
||||||
AuthRepository({required this.httpClient});
|
AuthRepository({required this.httpClient});
|
||||||
final IHttpClient httpClient;
|
final IHttpClient httpClient;
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import 'package:friflex_starter/features/main/domain/repository/i_main_repositor
|
|||||||
///
|
///
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
final class MainRepository implements IMainRepository {
|
final class MainRepository implements IMainRepository {
|
||||||
|
|
||||||
MainRepository({required this.httpClient});
|
MainRepository({required this.httpClient});
|
||||||
final IHttpClient httpClient;
|
final IHttpClient httpClient;
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import 'package:friflex_starter/features/profile/domain/repository/i_profile_rep
|
|||||||
///
|
///
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
final class ProfileRepository implements IProfileRepository {
|
final class ProfileRepository implements IProfileRepository {
|
||||||
|
|
||||||
ProfileRepository({required this.httpClient});
|
ProfileRepository({required this.httpClient});
|
||||||
final IHttpClient httpClient;
|
final IHttpClient httpClient;
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ sealed class ProfileEvent extends Equatable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final class ProfileFetchProfileEvent extends ProfileEvent {
|
final class ProfileFetchProfileEvent extends ProfileEvent {
|
||||||
|
|
||||||
const ProfileFetchProfileEvent({required this.id});
|
const ProfileFetchProfileEvent({required this.id});
|
||||||
final String id;
|
final String id;
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ final class ProfileInitialState extends ProfileState {}
|
|||||||
final class ProfileWaitingState extends ProfileState {}
|
final class ProfileWaitingState extends ProfileState {}
|
||||||
|
|
||||||
final class ProfileErrorState extends ProfileState {
|
final class ProfileErrorState extends ProfileState {
|
||||||
|
|
||||||
const ProfileErrorState({
|
const ProfileErrorState({
|
||||||
required this.message,
|
required this.message,
|
||||||
required this.error,
|
required this.error,
|
||||||
@@ -27,7 +26,6 @@ final class ProfileErrorState extends ProfileState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final class ProfileSuccessState extends ProfileState {
|
final class ProfileSuccessState extends ProfileState {
|
||||||
|
|
||||||
const ProfileSuccessState({required this.data});
|
const ProfileSuccessState({required this.data});
|
||||||
final Object data;
|
final Object data;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user