1

What is more efficient way to use normal const in file and static const in a class file in dart? const MARGIN_SMALL = 4.0; and

class AppDimen {
  const MARGIN_SMALL = 4.0;
}
Wai Han Ko
  • 760
  • 5
  • 16
  • 1
    there is no hard and fast rule please check out the [answer](https://stackoverflow.com/questions/54069239/whats-the-best-practice-to-keep-all-the-constants-in-flutter) and [effective dart](https://dart.dev/guides/language/effective-dart/design) – Jahidul Islam Jan 07 '22 at 06:56
  • 2
    There would be no difference in performance. – jamesdlin Jan 07 '22 at 07:59

0 Answers0