onConnectionEstablished method Null safety

  1. @override
void onConnectionEstablished(
  1. ConnectionInfo connectionInfo,
  2. String serverGreeting
)

Implementation

@override
void onConnectionEstablished(
    ConnectionInfo connectionInfo, String serverGreeting) {
  serverInfo = SmtpServerInfo(
      connectionInfo.host, connectionInfo.port, connectionInfo.isSecure);
  log('SMTP: got server greeting $serverGreeting', initial: 'A');
}