FLabel constructor

const FLabel({
  1. required Axis axis,
  2. required Widget child,
  3. FLabelStyle style(
    1. FLabelStyle style
    )?,
  4. Widget? label,
  5. Widget? description,
  6. Widget? error,
  7. bool expands = false,
  8. Set<WidgetState> states = const {},
  9. Key? key,
})

Creates a FLabel.

Implementation

const FLabel({
  required this.axis,
  required this.child,
  this.style,
  this.label,
  this.description,
  this.error,
  this.expands = false,
  this.states = const {},
  super.key,
}) : assert(axis == Axis.vertical || !expands, 'expands can only be true when axis is vertical');