splitString method

  1. @protected
List<String> splitString(
  1. String? input
)

Implementation

@protected
List<String> splitString(String? input) {
  if (input == null) {
    return <String>[];
  }
  input = input.trim();
  if (input.isEmpty) {
    return <String>[];
  }
  return input
      .split(separator.trim())
      .map((String e) => e.trim())
      .toList(growable: false);
}