TF-1487 Apply linter rule
This commit is contained in:
@@ -4,7 +4,4 @@ import 'package:model/contact/contact.dart';
|
||||
|
||||
class DeviceContact extends Contact implements EquatableMixin {
|
||||
DeviceContact(String displayName, String email) : super(displayName, email);
|
||||
|
||||
@override
|
||||
List<Object> get props => super.props;
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
@@ -21,9 +21,9 @@ extension SessionExtension on Session {
|
||||
|
||||
Uri getUploadUri(AccountId accountId) {
|
||||
final baseUrl = '${uploadUrl.origin}${uploadUrl.path}';
|
||||
final uploadUriTemplate = UriTemplate('${Uri.decodeFull(baseUrl)}');
|
||||
final uploadUriTemplate = UriTemplate(Uri.decodeFull(baseUrl));
|
||||
final uploadUri = uploadUriTemplate.expand({
|
||||
'accountId' : '${accountId.id.value}'
|
||||
'accountId' : accountId.id.value
|
||||
});
|
||||
log('SessionExtension::getUploadUri(): uploadUri: $uploadUri');
|
||||
return Uri.parse(uploadUri);
|
||||
|
||||
@@ -21,7 +21,7 @@ class OIDCConfiguration with EquatableMixin {
|
||||
if (authority.endsWith('/')) {
|
||||
return authority + wellKnownOpenId;
|
||||
} else {
|
||||
return authority + '/' + wellKnownOpenId;
|
||||
return '$authority/$wellKnownOpenId';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:mime/mime.dart';
|
||||
|
||||
Reference in New Issue
Block a user