SubtitleStyleConfig constructor

const SubtitleStyleConfig({
  1. TextStyle textStyle = const TextStyle(fontSize: 16, color: Colors.white, backgroundColor: Colors.transparent, fontWeight: FontWeight.normal),
  2. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 1),
  3. EdgeInsets margin = const EdgeInsets.all(1.0),
  4. BoxDecoration? decoration = const BoxDecoration(color: Colors.transparent, borderRadius: BorderRadius.all(Radius.circular(6))),
  5. double? maxWidth,
  6. int? maxLines,
  7. TextOverflow overflow = TextOverflow.clip,
})

Implementation

const SubtitleStyleConfig({
  this.textStyle = const TextStyle(
    fontSize: 16,
    color: Colors.white,
    backgroundColor: Colors.transparent,
    fontWeight: FontWeight.normal,
  ),
  this.padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 1),
  this.margin = const EdgeInsets.all(1.0),
  this.decoration = const BoxDecoration(
    color: Colors.transparent,
    borderRadius: BorderRadius.all(Radius.circular(6)),
  ),
  this.maxWidth,
  this.maxLines,
  this.overflow = TextOverflow.clip,
});