Skip to content

Instantly share code, notes, and snippets.

@sdkdeepa
Last active March 20, 2023 07:08
Show Gist options
  • Save sdkdeepa/f4eab7c3b94ccfee7dac3c94d8ebabce to your computer and use it in GitHub Desktop.
Save sdkdeepa/f4eab7c3b94ccfee7dac3c94d8ebabce to your computer and use it in GitHub Desktop.
Basics of Dart
//void returns nothing
//main() is the first method that dart will look for 

void main() {
  
  String greet = "Welcome";
  print(greet);

  String name = "Flutter Basics";
  print (greet + ' to ' + name); // bad way 
  
  int age =26;
  print (age) ;
  
  bool isFun =true;
  print(isFun);
  
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment