splitter method

List<String> splitter({
  1. required String? pattern,
})

Implementation

List<String> splitter({required String? pattern}) {
  if (this?.contains(pattern.toNotNull) ?? false) {
    return toNotNull.split(pattern.toNotNull);
  } else {
    return [toNotNull];
  }
}