Links
- dart:core – String
- Strings and Regular Expressions
- String
- isEmpty, isNotEmpty
- String slice([int startIndex, int endIndex])
- Both indices are optional defaulting to the start and end of the string respectively.
- If either is negative, it's taken to be length + that negative value.
- bool startsWith(Pattern, int index = 0])
runes
property- String substring (int startIndex, [int endIndex])
- String
Snippets
main() { var text = "012345"; var substring = text.slice(0, 3); // prints 012. print(substring); }