Conditionally wraps the widget with another widget
Widget conditionalWrap(bool condition, Widget Function(Widget child) wrapper) { return condition ? wrapper(this) : this; }