Dart Data Types for Flutter

Dart uses int for integers, double for floating points, and bool for booleans. ints and doubles are both derived from a type named num. Dart also has a keyword dynamic which lets you mimic dynamic typing in the statically typed Dart. For Example,

  • int – 32
  • double – 3.14
  • bool – true or false
  • var – 3.14/32/”hello”
  • String – “Hello”
Share

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *