TF-3515 Add save email as template feature

This commit is contained in:
DatDang
2025-02-25 16:10:20 +07:00
committed by Dat H. Pham
parent ef1f979c4b
commit 7f09f9ceb4
40 changed files with 1079 additions and 54 deletions
@@ -0,0 +1,11 @@
import 'package:collection/collection.dart';
import 'package:jmap_dart_client/jmap/core/error/error_type.dart';
import 'package:tmail_ui_user/features/composer/domain/exceptions/set_method_exception.dart';
extension SetMethodExceptionDescriptionExtension on SetMethodException {
String? getDescriptionFromErrorType(ErrorType errorType) {
return mapErrors.values
.firstWhereOrNull((setError) => setError.type == errorType)
?.description;
}
}