Characters constructor

Characters(
  1. 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);