Skip to content

Fix Dart primary constructor compatibility#249

Merged
fotiDim merged 1 commit into
Navideck:mainfrom
xianjianlf2:fix-dart-primary-constructor-compat
Jun 3, 2026
Merged

Fix Dart primary constructor compatibility#249
fotiDim merged 1 commit into
Navideck:mainfrom
xianjianlf2:fix-dart-primary-constructor-compat

Conversation

@xianjianlf2

Copy link
Copy Markdown
Contributor

Summary

  • Remove final keyword from Duration? timeout named parameters across all platform implementations
  • Affected files: universal_ble_platform_interface.dart, universal_ble.dart, universal_ble_linux.dart, universal_ble_pigeon_channel.dart, universal_ble_web.dart, and the mock example
  • Using final on named parameters is incompatible with Dart primary constructors in certain class hierarchies, causing compilation errors

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the redundant "final" keyword from the optional "timeout" parameter in the "readValue" method signatures across various platform implementations and interfaces, including mock, Linux, Pigeon, and Web platforms. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@fotiDim fotiDim merged commit 21a855c into Navideck:main Jun 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants