SingleChildStatefulModifier constructor

const SingleChildStatefulModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
})

Creates a widget that has exactly one child widget.

Implementation

const SingleChildStatefulModifier({super.key, Widget? child, this.modifierKey}) : _child = child;