Constrained constructor

const Constrained({
  1. Key? key,
  2. required Widget child,
  3. 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,
      );