TF-2644 Handle total size exceeded maximum size when drag & drop multiple file to composer
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
|
||||
enum ImageSource {
|
||||
local,
|
||||
network
|
||||
}
|
||||
@@ -1,25 +1,19 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:tmail_ui_user/features/composer/presentation/model/image_source.dart';
|
||||
import 'package:model/upload/file_info.dart';
|
||||
|
||||
class InlineImage with EquatableMixin {
|
||||
final ImageSource source;
|
||||
final String? link;
|
||||
final FileInfo? fileInfo;
|
||||
final String? cid;
|
||||
final FileInfo fileInfo;
|
||||
final String? base64Uri;
|
||||
|
||||
InlineImage(
|
||||
this.source,
|
||||
{
|
||||
this.link,
|
||||
this.fileInfo,
|
||||
this.cid,
|
||||
this.base64Uri,
|
||||
}
|
||||
);
|
||||
InlineImage({
|
||||
required this.fileInfo,
|
||||
this.base64Uri,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [source, link, fileInfo, cid, base64Uri];
|
||||
List<Object?> get props => [
|
||||
fileInfo,
|
||||
base64Uri
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user