Skip to content

Instantly share code, notes, and snippets.

@LokieVikky
Created January 27, 2023 12:47
Show Gist options
  • Save LokieVikky/399f8b7b9a69dafe1ec923ba1d197633 to your computer and use it in GitHub Desktop.
Save LokieVikky/399f8b7b9a69dafe1ec923ba1d197633 to your computer and use it in GitHub Desktop.
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
// double - decimal numbers
// String - String of characters
// boolean - true or false
// var - anytype mentioned above
// dynamic - anytype mentioned above
// Syntax for variable declaration
// dataType variableName;
// Example for declaration
int a;
// Syntax for variable initialization
// variableName = value;
// Example for intialization
a = 10;
// Inline Initialization
int b = 20;
// Diffrence between var and dynamic
var name;
dynamic age = 26;
print(age.runtimeType);
age = "26";
print(age.runtimeType);
name = "Sanjay";
name = 45;
// final and const - Immutability
final String mobileNumer;
mobileNumer = "sfgsfgsfgsfg";
// Operators
// Types of operator
// Arithmetic - ( + - * / % )
// Equality operator - ( = )
// Comparison operator ( == != )
// Logical operator ( && || )
// Task
// Write notes of todays class
// Example for datatypes including var and dynamic
// Diffrence between const and final
// Diffrence between % and /
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment