splitByLength method

List<String> splitByLength(
  1. int length
)

Split string by char lenght

Implementation

List<String> splitByLength(int length) {
  return [substring(0, length), substring(length)];
}