lastWord property
String?
lastWord
input = aditya pratama | output = pratama
Implementation
String? get lastWord {
if (this == null) return null;
if (this!.isEmpty) return this;
return this?.split(' ').last;
}