FLabelStyle constructor

const FLabelStyle({
  1. required FVariants<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta> labelTextStyle,
  2. required FVariants<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta> descriptionTextStyle,
  3. required FVariants<FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta> errorTextStyle,
  4. EdgeInsetsGeometry labelPadding = .zero,
  5. EdgeInsetsGeometry descriptionPadding = .zero,
  6. EdgeInsetsGeometry errorPadding = .zero,
  7. EdgeInsetsGeometry childPadding = .zero,
  8. FLabelMotion labelMotion = const FLabelMotion(),
})

Creates a FLabelStyle.

Implementation

const FLabelStyle({
  required super.labelTextStyle,
  required super.descriptionTextStyle,
  required super.errorTextStyle,
  this.labelPadding = .zero,
  this.descriptionPadding = .zero,
  this.errorPadding = .zero,
  this.childPadding = .zero,
  this.labelMotion = const FLabelMotion(),
});