Skip to content

Better assertion for createState errors #6209

@Hixie

Description

@Hixie

If you have createState() return a State subclass that extends State with the wrong widget type, you trip:

assert(_state._debugTypesAreRight(widget));

...in StatefulElement's constructor. We should make that prettier.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions