createForwardSubject method Null safety

String createForwardSubject(
  1. String originalSubject,
  2. {String defaultForwardAbbreviation = MailConventions.defaultForwardAbbreviation}
)

Creates a subject based on the originalSubject taking mail conventions into account.

Optionally specify the forward-indicator abbreviation by specifying defaultForwardAbbreviation, which defaults to 'Fwd'.

Implementation

static String createForwardSubject(String originalSubject,
    {String defaultForwardAbbreviation =
        MailConventions.defaultForwardAbbreviation}) {
  return _createSubject(originalSubject, defaultForwardAbbreviation,
      MailConventions.subjectForwardAbbreviations);
}