Skip to content

Migration tool: sync* method should return non nullable Iterable #42299

@a14n

Description

@a14n

On the following method:

Iterable<String> debugWordWrap(String message, int width, { String wrapIndent = '' }) sync* {

migration tool suggests:

Iterable<String >? debugWordWrap(String  message, int  width, { String  wrapIndent = '' }) sync* {

I don't think the return type should be nullable.

/cc @stereotype441

Metadata

Metadata

Assignees

Labels

area-migration (deprecated)Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions