Nested constructor

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

Allows configuring key, children and child

Implementation

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