preferenumsbyname Rules of the Week
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=ewpZQ78ocfY
prefer-enums-by-name suggests using values.byName instead of values.firstWhere . • Since Dart 2.15 it's possible to use the byName method on a enum values prop instead of searching the value with firstWhere . Using byName makes your code a little simpler. • Note: same as for the firstWhere , byName will throw an exception if the enum does not contain a value for the given name. • Learn more: https://dcm.dev/docs/rules/common/pre... • #Flutter #RulesOfTheWeek
#############################
