refactor: Added and applied require_trailing_commas linter rule

This commit is contained in:
Malin Errenst 2023-03-02 10:57:52 +01:00
commit ec7acc5385
112 changed files with 3466 additions and 2855 deletions

View file

@ -34,10 +34,12 @@ class LogViewerState extends State<LogViewer> {
),
PopupMenuButton<Level>(
itemBuilder: (context) => Level.values
.map((level) => PopupMenuItem(
value: level,
child: Text(level.toString()),
))
.map(
(level) => PopupMenuItem(
value: level,
child: Text(level.toString()),
),
)
.toList(),
onSelected: (Level level) => setState(() => logLevel = level),
),