FLabel constructor
const
FLabel({
- required Axis axis,
- required Widget child,
- FLabelStyle style(
- FLabelStyle style
- Widget? label,
- Widget? description,
- Widget? error,
- bool expands = false,
- Set<
WidgetState> states = const {}, - 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');