NyFieldStatefulWidget constructor

NyFieldStatefulWidget({
  1. Key? key,
  2. dynamic child,
  3. String? stateName,
})

Creates a NyFieldStatefulWidget with optional state name and child widget.

stateName can be provided to override the default state identifier. child can be a State instance or a function that returns a State.

Implementation

NyFieldStatefulWidget({super.key, this.child, String? stateName})
  : state = stateName ?? child.toString() {}