forked from eatvio/eatvio_app
20 lines
757 B
Dart
20 lines
757 B
Dart
import 'package:eatvio_app/core/enums/complained_content.dart';
|
|
import 'package:eatvio_app/features/complaining/models/complain_model.dart';
|
|
import 'package:eatvio_app/features/complaining/presentation/complaining_bottom_sheet.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'complaining_state.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class ComplainingState with _$ComplainingState {
|
|
|
|
factory ComplainingState({
|
|
@Default(false) bool isLoading,
|
|
@Default(null) bool? wasSentSuccessfully,
|
|
@Default(null) ComplainType? category,
|
|
@Default(null) ComplainedContent? contentType,
|
|
@Default(null) int? contentId,
|
|
@Default(null) String? contentSlug,
|
|
@Default(ComplainModel()) ComplainModel complainInfo,
|
|
}) = _ComplainingState;
|
|
} |