Label constructor

Label(
  1. String? text, [
  2. LabelStyle? style
])

Creates a label.

Implementation

Label(
  this.text, [
  LabelStyle? style,
]) : style = style ?? LabelStyle(textStyle: Defaults.textStyle);