TF-1487 Apply linter rule
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
Reference in New Issue
Block a user