initState method

  1. @override
void initState()
override

The framework will call this method exactly once. Only when the StateX object is first created.

Implementation

@override
void initState() {
  super.initState();
  final widget = state?.widget;
  if (widget != null && widget is RadioButtons<T>) {
    statefulWidget = widget;
  }
}