- Changed window size to mobile phone format (400x800) - Removed width condition for ActiveProxyFooter - now always visible - Added run-umbrix.sh launch script with icon copying - Stats cards now display on all screen sizes
18 lines
594 B
Dart
18 lines
594 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:umbrix/core/model/failures.dart';
|
|
|
|
part 'mutation_state.freezed.dart';
|
|
|
|
// TODO: remove
|
|
@freezed
|
|
class MutationState<F extends Failure> with _$MutationState<F> {
|
|
const MutationState._();
|
|
|
|
const factory MutationState.initial() = MutationInitial<F>;
|
|
const factory MutationState.inProgress() = MutationInProgress<F>;
|
|
const factory MutationState.failure(Failure failure) = MutationFailure<F>;
|
|
const factory MutationState.success() = MutationSuccess<F>;
|
|
|
|
bool get isInProgress => this is MutationInProgress;
|
|
}
|