const v/s final… Let’s check what they do! — Flutter 💙

We have two keywords const and final which usually make developers confused! Let’s see in deep how it works.

Constant variables can't be assigned a value.
The final variable 'data' can only be set once.
Const variables must be initialized with a constant value.

Don’t forget to connect with me on:

Don’t stop, until you are breathing!💙
- Abhishek Doshi

Google Developer Expert — Dart & Flutter 💙