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() { | |
Calculator calc = Calculator(); | |
int result = calc.add(6, 7); | |
print(result); | |
result = calc.sub(3, 5, 8); | |
print(result); |
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
import 'package:flutter/material.dart'; | |
void main(){ | |
runApp(const SlideTransitionExample()); | |
} | |
class SlideTransitionExample extends StatefulWidget { | |
const SlideTransitionExample({Key? key}) : super(key: key); | |
@override |
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() { | |
// First class | |
// Why Dart | |
// What is a framework | |
// Diffrence between other hybrid mobile frameworks and flutter | |
// Variable | |
// Datatypes in dart | |
// int - whole numbers |
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() { | |
// First class | |
// Why Dart | |
// What is a framework | |
// Diffrence between other hybrid mobile frameworks and flutter | |
// Variable | |
// Datatypes in dart | |
// int - whole numbers |
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() { | |
// Imutability - final and const | |
// const variables should be initialized while declaring in complie time. | |
// final variables can be initialized during runtime. | |
// Both final and const variables can only be set once, (i.e cannot be reassigned) | |
// Operators | |
// Arithmetic - + , - , * , / , %, ++, -- | |
// Logical - && || ! | |
// comparison - < , >, ==, !=, <=, >= |
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() { | |
Remote r = Remote(); | |
r.numberOfButton = 20; | |
print(r.numberOfButton); | |
Remote r2 = Remote(); | |
print(r2.numberOfButton); | |
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() { | |
Bird b = Bird(); | |
b.fly(); | |
Parrot p = Parrot(); | |
p.fly(); | |
p.speak(); | |
// Escaping String |
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() { | |
// String topics | |
// length | |
// substring | |
// split | |
// replace | |
// isEmpty | |
// isNotEmpty | |
// contains |
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() { | |
// My First gist | |
Calculator calc = Calculator(); | |
int result = calc.addTwoNumbers(1, 2); | |
int result2 = calc.addTwoNumbers(result, 5); | |
print(result2); |
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() { | |
// // if(condition){ | |
// // code block | |
// // } | |
// int a = 30; | |
// int b = 20; | |
// if (a == 10) { | |
// print('a==10'); |
OlderNewer