NyFieldStatefulWidget constructor
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() {}