split method Null safety

List<String> split(
  1. Pattern pattern
)

Splits the string at matches of pattern and returns a list of substrings.

Implementation

List<String> split(Pattern pattern) {
  return value.split(pattern);
}