Label constructor

const Label({
  1. Key? key,
  2. Widget? leading,
  3. required Widget child,
  4. Widget? trailing,
})

Creates a Label.

Parameters:

  • child (Widget, required): Main label content.
  • leading (Widget?, optional): Leading widget.
  • trailing (Widget?, optional): Trailing widget.

Implementation

const Label({
  super.key,
  this.leading,
  required this.child,
  this.trailing,
});