USubtitleStyleConfig constructor

const USubtitleStyleConfig({
  1. double fontSize = 18,
  2. Color color = const Color(0xFFFFFFFF),
  3. Color outlineColor = const Color(0xFF000000),
  4. double outlineWidth = 2.5,
  5. Color backgroundColor = const Color(0x00000000),
  6. FontWeight fontWeight = FontWeight.w600,
  7. String? fontFamily,
  8. String? rtlFontFamily = "Vazir",
  9. double bottomPadding = 24,
  10. double horizontalPadding = 24,
  11. double lineHeight = 1.3,
  12. bool shadow = true,
  13. bool honorAssStyling = true,
  14. int maxLines = 4,
})

Implementation

const USubtitleStyleConfig({
  this.fontSize = 18,
  this.color = const Color(0xFFFFFFFF),
  this.outlineColor = const Color(0xFF000000),
  this.outlineWidth = 2.5,
  this.backgroundColor = const Color(0x00000000),
  this.fontWeight = FontWeight.w600,
  this.fontFamily,
  this.rtlFontFamily = "Vazir",
  this.bottomPadding = 24,
  this.horizontalPadding = 24,
  this.lineHeight = 1.3,
  this.shadow = true,
  this.honorAssStyling = true,
  this.maxLines = 4,
});