LColumn.child constructor

LColumn.child(
  1. {Key key,
  2. LBoxVisibility visibility = const LBoxVisibility(),
  3. int xs,
  4. int sm,
  5. int md,
  6. int lg,
  7. int xl,
  8. @required Widget child,
  9. bool flexible = true,
  10. bool expanded = false,
  11. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  12. MainAxisSize mainAxisSize = MainAxisSize.min,
  13. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  14. TextDirection textDirection,
  15. TextBaseline textBaseline}
)

LColumn for single child

Implementation

LColumn.child({
  Key key,
  this.visibility = const LBoxVisibility(),
  this.xs,
  this.sm,
  this.md,
  this.lg,
  this.xl,
  @required Widget child,
  bool flexible = true,
  bool expanded = false,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.mainAxisSize = MainAxisSize.min,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.textDirection,
  this.textBaseline,
})  : assert(child != null),
      assert(xs == null || (xs <= 12 && xs >= 1)),
      assert(sm == null || sm <= 12 && sm >= 1),
      assert(md == null || md <= 12 && md >= 1),
      assert(lg == null || lg <= 12 && lg >= 1),
      assert(xl == null || xl <= 12 && xl >= 1),
      assert(expanded != null && flexible != null),
      children = [child],
      _flexible = flexible,
      _expanded = expanded,
      super(key: key);