Skip to content

Adding eliminating-null-parameters migration guide#4921

Merged
gspencergoog merged 4 commits intoflutter:masterfrom
gspencergoog:eliminating-nullok-parameters
Jan 28, 2021
Merged

Adding eliminating-null-parameters migration guide#4921
gspencergoog merged 4 commits intoflutter:masterfrom
gspencergoog:eliminating-nullok-parameters

Conversation

@gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented Oct 27, 2020

Adding a migration guide for eliminating null parameters.

@gspencergoog gspencergoog force-pushed the eliminating-nullok-parameters branch from 8451ca4 to 017557a Compare January 26, 2021 01:30
@gspencergoog gspencergoog marked this pull request as ready for review January 26, 2021 01:30
@gspencergoog gspencergoog changed the title [WIP] Adding eliminating-null-parameters migration guide Adding eliminating-null-parameters migration guide Jan 26, 2021
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

To sum up, these methods appear to be missing:

  • CupertinoThemeData.maybeResolveFrom
  • NoDefaultCupertinoThemeData.maybeResolveFrom
  • CupertinoTextThemeData.maybeResolveFrom
  • MaterialBasedCupertinoThemeData.maybeResolveFrom

Updated after audit:

  • CupertinoDynamicColor.maybeResolveFrom

@Piinks
Copy link
Contributor

Piinks commented Jan 28, 2021

Sorry for flooding your inbox, I think I understand that the 'missing' methods may not be missing, but instead are listed here by mistake. The PR description in flutter/flutter#68905 mentions not needing the maybeOf for all of them

Copy link
Contributor Author

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

OMG. Thanks: I wrote this when we started, and a bunch of things changed along the way, I guess. I think we decided that all the resolveFrom routines should never return null anyhow, and just eliminated the maybeResolveFrom versions. Anyhow, thanks for going through those.

@gspencergoog gspencergoog merged commit 0522d7b into flutter:master Jan 28, 2021
@gspencergoog gspencergoog deleted the eliminating-nullok-parameters branch January 28, 2021 22:56
filiph pushed a commit to filiph/website that referenced this pull request Feb 22, 2021
Adding a migration guide for eliminating null parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Contributor has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants