PinyinMarkText constructor

PinyinMarkText({
  1. required String text,
  2. String? pinyin,
  3. TextStyle? textStyle = const TextStyle(color: Color(0xff333333), fontSize: 14),
  4. Color? markTextColor = const Color(0xe6333333),
  5. double? markTextSize = 12,
  6. double? lineSpacing = 2,
  7. Iterable<int>? customWordIndex,
  8. OnCustomWordCall? customWordCall,
  9. int? index,
})

Implementation

PinyinMarkText({
  required this.text,
  this.pinyin,
  this.textStyle = const TextStyle(color: Color(0xff333333), fontSize: 14),
  this.markTextColor = const Color(0xe6333333),
  this.markTextSize = 12,
  this.lineSpacing = 2,
  this.customWordIndex,
  this.customWordCall,
  this.index,
});