Characters constructor Null safety
- String string
Creates a Characters allowing iteration of
the characters of string
.
Returns empty if string
is empty.
Implementation
factory Characters(String string) =>
string.isEmpty ? empty : StringCharacters(string);