getEverythingAfter method

  1. @useResult
String getEverythingAfter(
  1. String find
)

Returns the substringSafe after the first occurrence of find. Returns the original string if find is not found. Audited: 2026-06-12 11:26 EDT

Implementation

@useResult
String getEverythingAfter(String find) {
  final int atIndex = indexOf(find);

  return atIndex == -1 ? this : substringSafe(atIndex + find.length);
}