Skip to content

Prefer late final over initState #148

Description

@danylo-safonov-solid
classSomeStateextendsState<Some> {
finalX? x;
voidinitState() {
x = widget.x;
}
}

Can be

classSomeStateextendsState<Some> {
latefinal x = widget.x;
}

Metadata

Metadata

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