Check out example codes for "variables in dart". It will help you in understanding the concepts better.

Code Example 1

var nameOfVariable,
//this can be an int, string, or dynamic as well
//example

Learn ReactJs, React Native from akashmittal.com