mirror of
https://github.com/Livinglist/Hacki.git
synced 2025-08-26 03:02:13 +08:00
44 lines
799 B
Dart
44 lines
799 B
Dart
part of 'submit_cubit.dart';
|
|
|
|
class SubmitState extends Equatable {
|
|
const SubmitState({
|
|
required this.title,
|
|
required this.url,
|
|
required this.text,
|
|
required this.status,
|
|
});
|
|
|
|
const SubmitState.init()
|
|
: title = null,
|
|
url = null,
|
|
text = null,
|
|
status = Status.idle;
|
|
|
|
final String? title;
|
|
final String? url;
|
|
final String? text;
|
|
final Status status;
|
|
|
|
SubmitState copyWith({
|
|
String? title,
|
|
String? url,
|
|
String? text,
|
|
Status? status,
|
|
}) {
|
|
return SubmitState(
|
|
title: title ?? this.title,
|
|
url: url ?? this.url,
|
|
text: text ?? this.text,
|
|
status: status ?? this.status,
|
|
);
|
|
}
|
|
|
|
@override
|
|
List<Object?> get props => <Object?>[
|
|
title,
|
|
url,
|
|
text,
|
|
status,
|
|
];
|
|
}
|