INNER CODE UNIT · Dart
Constrained
hackware1993/Flutter_ConstraintLayout · lib/src/core.dart:1816
class Constrained extends ParentDataWidget<ConstraintBoxData> {
final Constraint constraint;
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,