FLabel constructor

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

Creates a FLabel.

Implementation

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