Files
workavia-mail-front/lib/features/composer/domain/state/upload_attachment_state.dart
T
dab246 e63a8f7d7f TF-2116 Insert image at mouse cursor position
(cherry picked from commit cb347e5077eddb1366daf706aa87eb2291f71aab)
2023-10-09 12:12:24 +07:00

46 lines
956 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;
final bool fromFileShared;
UploadAttachmentSuccess(
this.uploadAttachment,
{
this.isInline = false,
this.fromFileShared = false,
}
);
@override
List<Object?> get props => [
uploadAttachment,
isInline,
fromFileShared,
];
}
class UploadAttachmentFailure extends FeatureFailure {
final bool isInline;
final bool fromFileShared;
UploadAttachmentFailure(
dynamic exception,
{
this.isInline = false,
this.fromFileShared = false,
}
) : super(exception: exception);
@override
List<Object?> get props => [
isInline,
fromFileShared,
...super.props
];
}