lastIndex property

String get lastIndex

Returns the last character of the string.

Implementation

String get lastIndex {
  if (isEmptyOrNull) return '';
  return this![this!.length - 1];
}