assertStartsWithAtIfNotEmpty static method

void assertStartsWithAtIfNotEmpty(
  1. String? atSign
)

Implementation

static void assertStartsWithAtIfNotEmpty(String? atSign) {
  if (atSign != null && atSign.isNotEmpty && !atSign.startsWith('@')) {
    throw InvalidSyntaxException('atSign $atSign does not start with an "@"');
  }
}