This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool test1(){ | |
print("Test1 function"); | |
return true; | |
} | |
bool test2(){ | |
print("Test2 function"); | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
bool myFlag = true; | |
if (myFlag){ | |
print("True"); | |
} else if (!myFlag) { | |
print("False"); | |
} else { | |
print("Null"); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
//Sztring deklarálás | |
var testSimpleString = "Hello World!"; | |
var testNewLineString = "Hello\r\nWorld!"; | |
var testNewLineRawString = r"Hello\r\nWorld!"; | |
var testMultiLineStringFirst = "Hello " + | |
"World" + | |
"!"; | |
var testMultiLineStringSecond = ''' | |
Hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
//Különbség int és double között | |
int firstInt = 5; | |
double firstDouble = 5; | |
num firstNum = 5; | |
print("Testing 5"); | |
print(firstInt.runtimeType); | |
print(firstDouble.runtimeType); | |
print(firstNum.runtimeType); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Global variable | |
bool globalFlag = false; | |
void main(List<String> args) { | |
//Declaration with initialization | |
String myString = "My string"; | |
print("String interpolation: $myString"); | |
//Declaration without initialization | |
String tempString; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
print("Hello World!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ | |
THE BOY WHO LIVED | |
Mr. and Mrs. Dursley, of number four, Privet Drive, | |
were proud to say that they were perfectly normal, | |
thank you very much. They were the last people you’d |