dart-lang / linter

Linter for Dart.
https://dart.dev/tools/linter-rules
BSD 3-Clause "New" or "Revised" License
628 stars 170 forks source link

[analyzer] Potential bug in `use_build_context_synchronously` #4979

Closed incendial closed 4 months ago

incendial commented 4 months ago

Hi!

Given the comment, it looks like this https://github.com/dart-lang/sdk/blob/main/pkg/linter/lib/src/rules/use_build_context_synchronously.dart#L1064 should be a 'StreamSubscription', not 'Stream'.

Same for other entries below.

srawlins commented 4 months ago

Great catch!

srawlins commented 4 months ago

Fixed with https://github.com/dart-lang/sdk/commit/51f8b43696e330c05323f251baf1bd013cdd43e3