Thanks for your video. I have a quick question. Const is compile time, does that mean better performance? (even if minimal). Or do you recommend using final for constants.
I think that yes, it means better performance in the end. You should always use const when possible, also, take a look at the following lint rules: - dart-lang.github.io/linter/lints/prefer_const_declarations.html - dart-lang.github.io/linter/lints/prefer_const_constructors.html
Thanks for your video. I have a quick question. Const is compile time, does that mean better performance? (even if minimal). Or do you recommend using final for constants.
I think that yes, it means better performance in the end. You should always use const when possible, also, take a look at the following lint rules:
- dart-lang.github.io/linter/lints/prefer_const_declarations.html
- dart-lang.github.io/linter/lints/prefer_const_constructors.html