dotTail property

String dotTail

Return the string remaining in a string after the last "." in a String, if there is no "." the string itself is returned.

This function can be used to e.g. return the enum tail value from an enum's standard toString method.

Implementation

String get dotTail {
  return split('.').last;
}