splitAfter method

String splitAfter(
  1. String separator,
  2. String key
)

Implementation

String splitAfter(String separator, String key) {
  List<String> s = split(separator);
  int index = s.indexOf(key);
  if (index == -1 || index >= s.lastIndex) {
    return "";
  }
  return s[index + 1];
}