Skip to content

Commit

Permalink
improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Jun 10, 2021
1 parent 5ccb731 commit 6d79fee
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/imap/imap_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ class ImapClient extends ClientBase {
}

/// Closes the connection. Deprecated: use `disconnect()` instead.
@deprecated
@Deprecated('Use disconnect() instead.')
Future<dynamic> closeConnection() {
log('Closing socket for host ${serverInfo.host}',
initial: ClientBase.initialApp);
Expand Down
2 changes: 1 addition & 1 deletion lib/mail/mail_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ class MailClient {
bool? isAnswered,
bool? isForwarded,
bool? isDeleted,
@deprecated bool? isMdnSent,
@Deprecated('use isReadRecieptSent instead') bool? isMdnSent,
bool? isReadReceiptSent,
}) {
if (isSeen != null) {
Expand Down
8 changes: 2 additions & 6 deletions lib/mime_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -479,15 +479,11 @@ class MimeMessage extends MimePart {
set isDeleted(bool value) => setFlag(MessageFlags.deleted, value);

/// Checks if a read receipt has been sent for this message
///
/// Compare [isReadReceiptSent]
@deprecated
@Deprecated('Use isReadReceiptSent instead')
bool get isMdnSent => hasFlag(MessageFlags.keywordMdnSent);

/// Sets the `$MDNSent` keyword flag for this message
///
/// Use [isReadReceiptSent] instead
@deprecated
@Deprecated('Use isReadReceiptSent instead')
set isMdnSent(bool value) => setFlag(MessageFlags.keywordMdnSent, value);

/// Checks if a read receipt has been sent for this message
Expand Down
2 changes: 1 addition & 1 deletion lib/pop/pop_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class PopClient extends ClientBase {
}

/// Closes the connection. Deprecated: use `disconnect()` instead.
@deprecated
@Deprecated('Use disconnect() instead')
Future<dynamic> closeConnection() {
return disconnect();
}
Expand Down
8 changes: 4 additions & 4 deletions lib/smtp/smtp_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ class SmtpClient extends ClientBase {
text, use8BitEncoding, from, recipients.map((r) => r.email).toList()));
}

/// Signs in the user with the given [name] and [password]. Deprecated: Please use authenticate() instead.
@deprecated
/// Signs in the user with the given [name] and [password].
@Deprecated('Please use authenticate() instead.')
Future<SmtpResponse> login(String name, String password,
{AuthMechanism authMechanism = AuthMechanism.plain}) {
return authenticate(name, password, authMechanism);
Expand Down Expand Up @@ -360,8 +360,8 @@ class SmtpClient extends ClientBase {
}
}

/// Closes the connection to the remote SMTP server. Deprectated: Please use `disconnect()` instead.
@deprecated
/// Closes the connection to the remote SMTP server.
@Deprecated('Please use `disconnect()` instead.')
Future<dynamic> closeConnection() {
return disconnect();
}
Expand Down

0 comments on commit 6d79fee

Please sign in to comment.