Constrained constructor
const
Constrained({
- Key? key,
- required Widget child,
- required Constraint constraint,
Implementation
const Constrained({
Key? key,
required Widget child,
required this.constraint,
}) : assert(child is! Constrained,
'Constrained can not be wrapped with Constrained.'),
assert(child is! UnConstrained,
'UnConstrained can not be wrapped with Constrained.'),
assert(child is! Guideline,
'Guideline can not be wrapped with Constrained.'),
assert(
child is! Barrier, 'Barrier can not be wrapped with Constrained.'),
super(
key: key,
child: child,
);