widget static method

Widget widget({
  1. Widget? child,
})

Implementation

static Widget widget({Widget? child}) =>
    child ??
    LimitedBox(
      maxWidth: 0.0,
      maxHeight: 0.0,
      child: ConstrainedBox(
        constraints: const BoxConstraints.expand(),
      ),
    );