TF-46 Compose email for Reply, Forward from EmailView

This commit is contained in:
dab246
2021-08-26 17:12:49 +07:00
committed by Dat H. Pham
parent 5d5c2a3549
commit ee0dc37b7a
10 changed files with 101 additions and 44 deletions
@@ -1,9 +1,8 @@
import 'package:intl/intl.dart';
import 'package:model/model.dart';
extension PresentationEmailExtension on PresentationEmail {
int numberOfAllEmailAddress() => to.numberEmailAddress() + cc.numberEmailAddress() + bcc.numberEmailAddress();
String getSentTime() => sentAt != null ? DateFormat('dd/MM/yyyy h:mm a', 'en_US').format(sentAt!.value) : '';
String getSentTime(String locale) => sentAt.formatDate(pattern: 'dd/MM/yyyy h:mm a', locale: locale);
}