-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate linked_scroll_controller to null safety. #3623
Conversation
packages/devtools_app/lib/src/primitives/flutter_widgets/linked_scroll_controller.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/primitives/flutter_widgets/linked_scroll_controller.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/primitives/flutter_widgets/linked_scroll_controller.dart
Outdated
Show resolved
Hide resolved
@@ -372,14 +370,14 @@ class _LinkedScrollActivity extends ScrollActivity { | |||
|
|||
void _updateUserScrollDirection() { | |||
assert(drivers.isNotEmpty); | |||
ScrollDirection commonDirection; | |||
ScrollDirection? commonDirection; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like it can be late instead of nullable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It cannot because the line "commonDirection ??= driver.userScrollDirection" first read and then initializes.
tested functionality |
No description provided.