ConditionalWrapper constructor

const ConditionalWrapper(
  1. {Key? key,
  2. required bool condition,
  3. required Widget child,
  4. required WrapperBuilder wrapper,
  5. WrapperBuilder? falseWrapper}
)

Allows you to conditionally wrap a child widget with one of two different wrappers based on a specified condition.

You can provide a wrapper to use when the condition is true and an optional falseWrapper to use whenthe condition is false. This is useful for applying conditional styling or functionality to other widgets.

Implementation

const ConditionalWrapper