TF-32 Add presentation layer of export attachment for ios platform
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user