Files
umbrix/lib/features/logs/notifier/logs_state.dart

18 lines
481 B
Dart
Raw Normal View History

2023-07-06 17:18:41 +03:30
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hiddify/domain/singbox/singbox.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
2023-07-06 17:18:41 +03:30
part 'logs_state.freezed.dart';
@freezed
class LogsState with _$LogsState {
const LogsState._();
const factory LogsState({
@Default(AsyncLoading()) AsyncValue<List<BoxLog>> logs,
@Default(false) bool paused,
2023-07-06 17:18:41 +03:30
@Default("") String filter,
LogLevel? levelFilter,
}) = _LogsState;
}