-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] clean up dynamic calls, remove always_specify_types #53228
Conversation
efe1215 to
400d786
Compare
ditman
left a comment
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.
Thanks for the cleanup!
| assert( | ||
| decoded.arguments is int, | ||
| 'Argument to Skia.setResourceCacheMaxBytes must be an int, but was ${decoded.arguments.runtimeType}', | ||
| 'Argument to Skia.setResourceCacheMaxBytes must be an int, but was ${(decoded.arguments as Object?).runtimeType}', |
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.
I wonder why casting decoded.arguments as Object? doesn't make you access runtimeType trough ?.... I guess null also has runtimeType so it doesn't matter?
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.
Yeah, null has all the Object methods, like runtimeType, toString, operator==, hashCode, etc. It's also surprising why dynamic.runtimeType is considered to be a dynamic invocation. Everything has a runtimeType in Dart. But I guess maybe dynamic.anything is considered "bad" by the lint.
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 is a bug in the lint
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.
…149786) flutter/engine@0edca2e...32c3b9b 2024-06-06 [email protected] [web] clean up dynamic calls, remove always_specify_types (flutter/engine#53228) 2024-06-06 [email protected] [Impeller] Reland Use Skia software renderer to draw stroked text. (flutter/engine#53238) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Remove the
avoid_dynamic_callsexception inweb_ui, and clean up all dynamic calls.