Style constructor

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

Implementation

Style({
  this.backgroundColor = Colors.transparent,
  this.color,
  this.direction,
  this.display,
  this.fontFamily,
  this.fontFamilyFallback,
  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 (alignment == null &&
      (display == Display.BLOCK || display == Display.LIST_ITEM)) {
    alignment = Alignment.centerLeft;
  }
}