SmtpResponseLine constructor Null safety

SmtpResponseLine(
  1. String responseText
)

Implementation

SmtpResponseLine(String responseText) {
  code = int.tryParse(responseText.substring(0, 3));
  if (code == null) {
    message = responseText;
  } else {
    message = responseText.substring(4);
  }
}