Label constructor

const Label({
  1. Key? key,
  2. Widget? icon,
  3. required Widget text,
  4. Widget? child,
  5. CrossAxisAlignment yAlignment = CrossAxisAlignment.start,
})

Creates a label.

Implementation

const Label({
  Key? key,
  this.icon,
  required this.text,
  this.child,
  this.yAlignment = CrossAxisAlignment.start,
}) : super(key: key);