Style constructor

Style({
  1. Color? backgroundColor = Colors.transparent,
  2. Color? color,
  3. TextDirection? direction,
  4. Display? display,
  5. String? fontFamily,
  6. List<FontFeature>? fontFeatureSettings,
  7. FontSize? fontSize,
  8. FontStyle? fontStyle,
  9. FontWeight? fontWeight,
  10. double? height,
  11. LineHeight? lineHeight,
  12. double? letterSpacing,
  13. ListStyleType? listStyleType,
  14. ListStylePosition? listStylePosition,
  15. EdgeInsets? padding,
  16. EdgeInsets? margin,
  17. TextAlign? textAlign,
  18. TextDecoration? textDecoration,
  19. Color? textDecorationColor,
  20. TextDecorationStyle? textDecorationStyle,
  21. double? textDecorationThickness,
  22. List<Shadow>? textShadow,
  23. VerticalAlign? verticalAlign,
  24. WhiteSpace? whiteSpace,
  25. double? width,
  26. double? wordSpacing,
  27. String? before,
  28. String? after,
  29. Border? border,
  30. Alignment? alignment,
  31. Widget? markerContent,
  32. int? maxLines,
  33. TextOverflow? textOverflow,
  34. TextTransform? textTransform = TextTransform.none,
})

Implementation

Style({
  this.backgroundColor = Colors.transparent,
  this.color,
  this.direction,
  this.display,
  this.fontFamily,
  this.fontFeatureSettings,
  this.fontSize,
  this.fontStyle,
  this.fontWeight,
  this.height,
  this.lineHeight,
  this.letterSpacing,
  this.listStyleType,
  this.listStylePosition,
  this.padding,
  this.margin,
  this.textAlign,
  this.textDecoration,
  this.textDecorationColor,
  this.textDecorationStyle,
  this.textDecorationThickness,
  this.textShadow,
  this.verticalAlign,
  this.whiteSpace,
  this.width,
  this.wordSpacing,
  this.before,
  this.after,
  this.border,
  this.alignment,
  this.markerContent,
  this.maxLines,
  this.textOverflow,
  this.textTransform = TextTransform.none,
}) {
  if (this.alignment == null &&
      (display == Display.BLOCK || display == Display.LIST_ITEM)) {
    this.alignment = Alignment.centerLeft;
  }
}