You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2023. It is now read-only.
More correct checking of invalid override method parameter default values recently landed in the SDK [1]. The changes fit a few shapes, given a method `m1`, which overrides a method `m2`:
* If `m2` has a parameter `p` with a default value, but the parameter `p` on
`m1` does _not_ have a default value, I have added a default value.
* If `m2` has a parameter `p` with a default value, and the parameter `p` on
`m1` has a _different_ default value, I have either:
* changed the default value on `m1` to equal that on `m2`, or
* removed the default value on `m2`, instead assigning it with `??=` as the
first statement in the method body.
[1] dart-lang/sdk#34437
PiperOrigin-RevId: 233486440
0 commit comments