SingleChildStatelessModifier constructor

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

Creates a widget that has exactly one child widget.

Implementation

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