From 43b78739f8c077b8706e31d6154273eaa937b2a9 Mon Sep 17 00:00:00 2001 From: sajjad rahman <67529599+sajjad-njr@users.noreply.github.com> Date: Mon, 12 Sep 2022 10:34:48 +0600 Subject: [PATCH] How toString use if you do not want to use String interpolation use [name.length.toString() ] --- 03_string_and_string_interpolation.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/03_string_and_string_interpolation.dart b/03_string_and_string_interpolation.dart index 3132427..904d1d6 100644 --- a/03_string_and_string_interpolation.dart +++ b/03_string_and_string_interpolation.dart @@ -22,6 +22,9 @@ void main() { print("My name is $name"); print("The number of characters in String Kevin is ${name.length}"); + + /// if you do not want to use String interpolation use [ name.length.toString() + print("The number of characters in String Kevin is "+name.length.toString()); int l = 20;