CharacterRange.at constructor Null safety
Creates a new character iterator on
The iterator starts with a current range containing the
startIndex is not a character boundary,
the range starts at the beginning of the character
startIndex is pointing into.
endIndex is not a character boundary,
the range end at then end of the character
endIndex is pointing into.
endIndex is not provided,
it defaults to the same index as
So, if no
endIndex is provided,
startIndex is at a character boundary,
the resulting iterator's current range is empty.
Otherwise, the range will contain the characters
of the substring from
extended so that it contains entire characters of the original
factory CharacterRange.at(String string, int startIndex, [int? endIndex]) = StringCharacterRange.at;