Skip to content
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

Preliminary review only, do not merge - first stab at required prop utiltities #859

Closed
wants to merge 28 commits into from

Conversation

greglittlefield-wf
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf commented Nov 21, 2023

We need some utilities to be able to safely access required props.

See example/builder/src/partial.dart for an example.

To help keep these APIs ergonomic, a new extension method UiProps.getPropKey was added, which required some generation changes. Without that API, consumers would have to also pass in the factory associated with the props.

@aviary3-wk
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

Copy link
Contributor

@aaronlademann-wf aaronlademann-wf left a comment

Choose a reason for hiding this comment

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

Cool!

Only thing I noticed is getRequiredPropOrNull doesn't have a doc comment. Otherwise LGTM

@greglittlefield-wf greglittlefield-wf changed the title First stab at required prop utiltities Preliminary review only, do not merge - first stab at required prop utiltities Nov 21, 2023
@greglittlefield-wf greglittlefield-wf force-pushed the null-safety-required-props branch 2 times, most recently from 8c62d49 to 134f4d5 Compare November 29, 2023 19:02
@greglittlefield-wf greglittlefield-wf changed the base branch from null-safety-update-lints to v5_wip December 1, 2023 17:51
@greglittlefield-wf greglittlefield-wf force-pushed the null-safety-required-props branch from 37d21a8 to 5476c20 Compare December 1, 2023 18:29
@greglittlefield-wf greglittlefield-wf force-pushed the null-safety-required-props branch from 5476c20 to 42266a6 Compare December 1, 2023 18:30
@greglittlefield-wf greglittlefield-wf force-pushed the null-safety-required-props branch from 2b9004e to 481269f Compare December 5, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants