Skip to content

Conversation

@polina-c
Copy link
Contributor

RELEASE_NOTE_EXCEPTION=[changes under the flag]

@polina-c polina-c requested review from a team and bkonyi as code owners January 18, 2023 02:06
return instances.instances!.first as InstanceRef;
final result = instances.instances!.first;

if (result is InstanceRef) return result;
Copy link
Contributor

Choose a reason for hiding this comment

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

In what scenario would this not be an InstanceRef? If it's only an error case, consider throwing an exception rather than having a nullable return type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sometimes it is ClassRef

@polina-c polina-c merged commit 887f065 into flutter:master Jan 18, 2023
@polina-c polina-c deleted the browse2 branch January 18, 2023 14:05
@CoderDake CoderDake mentioned this pull request Jan 24, 2023
7 tasks
@DartDevtoolWorkflowBot DartDevtoolWorkflowBot mentioned this pull request Jan 24, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants