Skip to content

Instantly share code, notes, and snippets.

@LokieVikky
Created January 27, 2023 12:36
Show Gist options
  • Save LokieVikky/4d140b6d03359edf31de6a15a0766d80 to your computer and use it in GitHub Desktop.
Save LokieVikky/4d140b6d03359edf31de6a15a0766d80 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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment