FieldLabel constructor

const FieldLabel({
  1. Key? key,
  2. required String label,
  3. TextStyle? style,
  4. bool isRequired = false,
})

Constructs an instance of FieldLabel.

Parameters:

  • label: The text label to display.
  • style: The style to apply to the text label (optional).
  • isRequired: Indicates whether the field is required (default is false).

Implementation

const FieldLabel({
  super.key,
  required this.label,
  this.style,
  this.isRequired = false,
});