messageName property Null safety

String messageName

The message name. Also see qualifiedMessageName.

Implementation

String get messageName {
  final lastDot = qualifiedMessageName.lastIndexOf('.');
  return lastDot == -1
      ? qualifiedMessageName
      : qualifiedMessageName.substring(lastDot + 1);
}