mirrored_repositories/FlutterCryptoFreebie/lib/models/settings

import 'package:freezed_annotation/freezed_annotation.dart';

import '../settings_details/settings_details.dart';

part 'settings_state.freezed.dart';

@freezed
abstract class SettingsState with _$SettingsState {
  const factory SettingsState.initial() = _SettingsStateInitial;
  const factory SettingsState.loading() = _SettingsStateLoading;
  const factory SettingsState.data({required SettingsDetails details}) = _$_SettingsStateData;
  const factory SettingsState.error({String? error}) = _SettingsStateError;
}
