LabelStyle constructor

LabelStyle({
  1. TextStyle? textStyle,
  2. InlineSpan span(
    1. String
    )?,
  3. TextAlign? textAlign,
  4. TextDirection? textDirection,
  5. double? textScaleFactor,
  6. int? maxLines,
  7. String? ellipsis,
  8. Locale? locale,
  9. StrutStyle? strutStyle,
  10. TextWidthBasis? textWidthBasis,
  11. TextHeightBehavior? textHeightBehavior,
  12. double? minWidth,
  13. double? maxWidth,
  14. Offset? offset,
  15. double? rotation,
  16. Alignment? align,
})

Creates a label style.

Implementation

LabelStyle({
  this.textStyle,
  this.span,
  this.textAlign,
  this.textDirection,
  this.textScaleFactor,
  this.maxLines,
  this.ellipsis,
  this.locale,
  this.strutStyle,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.minWidth,
  this.maxWidth,
  Offset? offset,
  double? rotation,
  Alignment? align,
})  : assert(isSingle([textStyle, span])),
      super(
        offset: offset,
        rotation: rotation,
        align: align,
      );