TF-1487 Apply linter rule

This commit is contained in:
dab246
2023-02-24 12:12:54 +07:00
committed by Dat Vu
parent 117a8a8fc6
commit 2b71aba278
155 changed files with 798 additions and 1039 deletions
+3 -3
View File
@@ -32,9 +32,9 @@ class Attachment with EquatableMixin {
bool hasCid() => cid != null && cid?.isNotEmpty == true;
String getDownloadUrl(String baseDownloadUrl, AccountId accountId) {
final downloadUriTemplate = UriTemplate('$baseDownloadUrl');
final downloadUriTemplate = UriTemplate(baseDownloadUrl);
final downloadUri = downloadUriTemplate.expand({
'accountId' : '${accountId.id.value}',
'accountId' : accountId.id.value,
'blobId' : '${blobId?.value}',
'name' : '$name',
'type' : '${type?.mimeType}',
@@ -68,7 +68,7 @@ extension ContentDispositionExtension on ContentDisposition {
case ContentDisposition.attachment:
return 'attachment';
case ContentDisposition.other:
return this.toString();
return toString();
}
}
}
+3 -3
View File
@@ -36,10 +36,10 @@ extension EmailContentExtension on EmailContent {
return '';
}
final firstTags = '<html><head></head><body>';
final latestTags = '</body></html>';
const firstTags = '<html><head></head><body>';
const latestTags = '</body></html>';
if (content.startsWith(firstTags) && content.endsWith(latestTags)) {
final firstIndex = firstTags.length;
const firstIndex = firstTags.length;
final latestIndex = content.length - latestTags.length;
log('EmailContentExtension::_getContentOriginal(): firstIndex: $firstIndex');
log('EmailContentExtension::_getContentOriginal(): latestIndex: $latestIndex');
+1 -1
View File
@@ -18,5 +18,5 @@ class EmailProperty {
static const String htmlBody = 'htmlBody';
static const String attachments = 'attachments';
static const String headers = 'headers';
static final String headerMdnKey = 'Disposition-Notification-To';
static const String headerMdnKey = 'Disposition-Notification-To';
}