29 lines
489 B
Dart
29 lines
489 B
Dart
part of 'dl_form_cubit.dart';
|
|
|
|
class DlFormState extends Equatable {
|
|
const DlFormState({
|
|
this.url = '',
|
|
this.format = 'MP3',
|
|
});
|
|
|
|
final String url;
|
|
final String format;
|
|
|
|
DlFormState copyWith({
|
|
String? url,
|
|
String? format,
|
|
}) {
|
|
return DlFormState(
|
|
url: url ?? this.url,
|
|
format: format ?? this.format,
|
|
);
|
|
}
|
|
|
|
@override
|
|
List<Object> get props => [url, format];
|
|
}
|
|
|
|
final class DlFormInitial extends DlFormState {
|
|
const DlFormInitial();
|
|
}
|