SingleChildStatefulComponent constructor

const SingleChildStatefulComponent({
  1. Key? key,
  2. Component? child,
})

Creates a component that has exactly one child component.

Implementation

const SingleChildStatefulComponent({Key? key, Component? child})
    : _child = child,
      super(key: key);