wrapContent function

Widget wrapContent(
  1. BuildContext context,
  2. Widget child,
  3. Widget wrapper(
    1. BuildContext context,
    2. Widget child
    )?
)

Implementation

Widget wrapContent(
  BuildContext context,
  Widget child,
  Widget Function(BuildContext context, Widget child)? wrapper,
) {
  if (wrapper == null) return child;
  return wrapper(context, child);
}