TF-32 Add presentation layer of export attachment for ios platform

This commit is contained in:
dab246
2021-09-16 09:46:49 +07:00
committed by Dat H. Pham
parent afae25a97a
commit d168900975
19 changed files with 517 additions and 119 deletions
@@ -0,0 +1,14 @@
import 'package:model/model.dart';
extension ListAttachmentExtension on List<Attachment> {
num totalSize() {
num totalSize = 0;
forEach((attachment) {
if (attachment.size != null) {
totalSize += attachment.size!.value;
}
});
return totalSize;
}
}