Run dart analyze --fatal-infos OR flutter analyze --fatal-infos
You will see:
Analyzing flutter...
info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:52:23 • prefer_const_constructors
info • Use 'const' literals as arguments to constructors of '@immutable' classes • packages/flutter/example/lib/live_list/main.dart:54:35 • prefer_const_literals_to_create_immutables
info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:55:27 • prefer_const_constructors
info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:56:27 • prefer_const_constructors
Steps to reproduce
Run dart analyze --fatal-infos OR flutter analyze --fatal-infos
Actual Outcome
Analyzing flutter...
info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:52:23 • prefer_const_constructors
info • Use 'const' literals as arguments to constructors of '@immutable' classes • packages/flutter/example/lib/live_list/main.dart:54:35 • prefer_const_literals_to_create_immutables
info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:55:27 • prefer_const_constructors
info • Use 'const' with the constructor to improve performance • packages/flutter/example/lib/live_list/main.dart:56:27 • prefer_const_constructors
Expected Outcome
Analyzing flutter...
No issues found! (ran in 5.2s)
Environment
Parse Flutter SDK
SDK version: 5.1.1
Flutter version: 3.10
Dart version: 3
Operating system version: Ubuntu 22.04.2 LTS x86_64
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
Run
dart analyze --fatal-infos
ORflutter analyze --fatal-infos
You will see:
Steps to reproduce
Run
dart analyze --fatal-infos
ORflutter analyze --fatal-infos
Actual Outcome
Expected Outcome
Environment
Parse Flutter SDK
5.1.1
3.10
3
Ubuntu 22.04.2 LTS x86_64
Server
N/A
Logs