0583406e3b
(cherry picked from commit 2a5441c2ef4facf28e7e6e1678e89601d72259be)
24 lines
713 B
Dart
24 lines
713 B
Dart
|
|
import 'package:core/presentation/state/failure.dart';
|
|
import 'package:core/presentation/state/success.dart';
|
|
import 'package:tmail_ui_user/features/upload/domain/model/upload_attachment.dart';
|
|
|
|
class UploadAttachmentSuccess extends UIState {
|
|
|
|
final UploadAttachment uploadAttachment;
|
|
final bool isInline;
|
|
|
|
UploadAttachmentSuccess(this.uploadAttachment, {this.isInline = false});
|
|
|
|
@override
|
|
List<Object?> get props => [uploadAttachment, isInline];
|
|
}
|
|
|
|
class UploadAttachmentFailure extends FeatureFailure {
|
|
final bool isInline;
|
|
|
|
UploadAttachmentFailure(dynamic exception, {this.isInline = false}) : super(exception: exception);
|
|
|
|
@override
|
|
List<Object?> get props => [isInline, ...super.props];
|
|
} |