0 purchases
wrap if
WrapIf lets you decide to wrap a child with a widget or not with a condition.
Features #
bool condition
Widget Function(Widget) parentBuilder
Widget child
Getting started #
import 'package:wrap_if/wrap_if.dart';
copied to clipboard
Usage #
WrapIf(
condition: true,
parentBuilder: (child) {
return Center(
child: child,
);
},
child: const Text("Hello WrapIf"),
);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.