toList method

List<String> toList()

Transforms the string into a list of single characters

Example:

'hello'.toList(); // ['h', 'e', 'l', 'l', 'o']
''.toList();      // [ ]

Implementation

List<String> toList() {
  return split('');
}