The `string` property in Dart returns a string representation of the sequence of Unicode code points.
The syntax of Runes.string property is:
String string
This string property of Runes
Runes.string returns value of type String
.
In this example,
runes
from the string 'Hello'.string
property to get the string representation.void main() {
Runes runes = Runes('Hello');
String str = runes.string;
print('String representation: $str');
}
String representation: Hello
In this example,
emojis
from the string '👋🏽🚀🌟'.string
property to get the string representation.void main() {
Runes emojis = Runes('👋🏽🚀🌟');
String emojiString = emojis.string;
print('Emoji string: $emojiString');
}
Emoji string: 👋🏽🚀🌟
In this Dart tutorial, we learned about string property of Runes: the syntax and few working examples with output and detailed explanation for each example.