Skip to content

Conversation

@srawlins
Copy link
Contributor

@srawlins srawlins commented Mar 6, 2025

  • Convert the FlutterDaemonConstants from an enum into a namespaced set of constant strings. In all cases, each enum value was only used to access the 'key' string, so this simplifies to that reality. Also they weren't used as an enumeration.
  • Reduce the number of JSON map lookups. This makes the code more concise.
  • Use the .option, .multiOption, and .flag APIs from package:args, avoiding dynamic casting.
  • Initialize two fields in TestRunnerArgs in the constructor initializers, allowing them to be non-late.

* Convert the FlutterDaemonConstants from an enum into a namespaced set of
  constant strings. In all cases, each enum value was only used to access the
  'key' string, so this simplifies to that reality. Also they weren't used as
  an enumeration.
* Reduce the number of JSON map lookups. This makes the code more concise.
* Use the `.option`, `.multiOption`, and `.flag` APIs from package:args,
  avoiding dynamic casting.
@srawlins srawlins merged commit 453332a into flutter:master Mar 6, 2025
41 of 42 checks passed
@srawlins srawlins deleted the tidy-integration-stuff branch March 6, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants