maybeWrap method

Widget maybeWrap(
  1. bool wrapIf,
  2. Widget wrap(
    1. Widget child
    )
)

Implementation

Widget maybeWrap(bool wrapIf, Widget wrap(Widget child)) {
  return wrapIf ? wrap(this) : this;
}