getEverythingAfterLast method
Returns the substringSafe after the last occurrence of find.
Returns the original string if find is not found.
Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
String getEverythingAfterLast(String find) {
if (find.isEmpty) {
return this;
}
final int atIndex = lastIndexOf(find);
return atIndex == -1 ? this : substringSafe(atIndex + find.length);
}