Label constructor

Label(
  1. String _text, {
  2. TextStyle? textStyle,
  3. TextAlign? textAlign,
})

Creates a new Label with the provided text and textStyle.

Implementation

Label(this._text, {TextStyle? textStyle, TextAlign? textAlign})
    : _textStyle = textStyle ?? const TextStyle(),
      textAlign = textAlign ?? TextAlign.left;