Nested constructor

Nested({
  1. Key? key,
  2. required List<SingleChildComponent> children,
  3. Component? child,
})

Allows configuring key, children and child

Implementation

Nested({
  Key? key,
  required List<SingleChildComponent> children,
  Component? child,
})  : assert(children.isNotEmpty),
      _children = children,
      _child = child,
      super(key: key);