initState method

  1. @override
void initState()
override

Initialise state.

Implementation

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