SingleChildBuilder constructor

const SingleChildBuilder({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. Widget? child
    ),
  3. Widget? child,
})

Creates a widget that delegates its build to a callback.

The builder argument must not be null.

Implementation

const SingleChildBuilder({Key? key, required this.builder, Widget? child})
    : super(key: key, child: child);