If.bool constructor

If.bool(
  1. String boolValue,
  2. Widget t,
  3. Widget? f
)

Implementation

factory If.bool(String boolValue, Widget t, Widget? f) {
  return If(
    actual: boolValue,
    expect: 'true',
    matched: t,
    failed: f ?? const SizedBox.shrink(),
  );
}