
上QQ阅读APP看书,第一时间看更新
Strings
In Dart, strings are a sequence of characters (UTF-16 code) that are mainly used to represent text. Dart strings can be single or multiple lines. You can match single or double quotes (typically for single lines), and multiline strings by matching triple quotes.
We can use the + operator to concatenate strings. The string type implements useful operators other than the plus (+) one. It implements the multiplier (*) operator where the string gets repeated a specified number of times, and the [index] operator retrieves the character at the specified index position.