initState method
Initialise state.
Implementation
@override
void initState() {
super.initState();
_index = 0;
if (widget.builders.isEmpty) {
throw StateError('The `builders` list cannot be empty.');
}
}
Initialise state.
@override
void initState() {
super.initState();
_index = 0;
if (widget.builders.isEmpty) {
throw StateError('The `builders` list cannot be empty.');
}
}