-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstring.dart
32 lines (31 loc) · 867 Bytes
/
string.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
main() {
// DATA TYPE - STRING
// SINGLE QOUTATION - 'YOUR TEXT HERE'
// DOUBLE QOUTATION - "YOUR TEXT HERE"
// MUTIPLE QOUTATION = '''YOUR TEXT HERE'''
// To break line in a text use \n
String num1 = 'that\'s testing \n\ntesting';
String num2 = "testing1 that\"s testing1";
String num3 = '''The boys
bjgjfj kjds , fhdkk
sfjhfsk, that's, thas"s, sdsh
are good at washing plate''';
print('Num1: $num1');
dynamic blow = 512162;
String value1 = " O'Bounce Technologies -";
dynamic value2 = "is a software development ";
dynamic value3 = "company.";
print(blow.runtimeType);
dynamic nope = value1.toLowerCase();
// print(int.parse(value1));
print(nope);
print(value1 + value2 + value3);
String empty = '';
print(empty);
int no = 12345;
double two = 12345.44;
print(no);
print(two);
print(num2);
print(num3);
}