cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
1.88k stars 65 forks source link

Update message.dart #305

Closed romanseo1 closed 6 months ago

romanseo1 commented 6 months ago

Added 'const' keyword to the consturctor invocation to fix 'prefer_const_constructors` lint rule violation

Changes

Fixes #304

Before Committing

dart analyze --fatal-infos
Analyzing flutter_analyze...

   info • lib\messages\generated.dart:15:24 • Use 'const' with the constructor to improve performance. Try adding the 'const' keyword to the constructor invocation. • prefer_const_constructors

1 issue found.

Please make sure that you've analyzed and formatted the files.

dart analyze flutter_ffi_plugin --fatal-infos
dart format .
cargo fmt
cargo clippy --fix --allow-dirty
temeddix commented 6 months ago

Thank you very much for the PR :) I will publish a new version shortly, after all the checks pass!