Merge pull request #549 from Roshan-pcy/main

added multiline string in dart.md
This commit is contained in:
Fechin authored and GitHub committed 2024-06-01 08:03:45 +08:00
commit 52d1ad634a
1 file changed
+11 -1
+11 -1
View File
@@ -89,6 +89,16 @@ print(upperCase); //Print: NICOLA
/* Comments like these are also supported. */
```
### multiline String
```dart
For multiline String we have to use ''' your text'''
for example
print('''My long string''');
//this will show long string
//this will help for only long strings
```
### Imports
@@ -276,7 +286,7 @@ Set<String> names = {}; // This works, too.
// a map is an object that associates keys and values
var person = Map<String, String>();
// To initialize the map, do this:
person['firstName'] = 'Nicola';
person['lastName'] = 'Tesla';
print(person); //Print: {firstName: Nicola, lastName: Tesla}