FontPreView constructor

FontPreView({
  1. Key? key,
  2. required Widget bgChild,
  3. required double stvWidth,
  4. required double stvHeight,
  5. required dynamic onInited(
    1. LindiController stickerController
    ),
  6. required dynamic onClose(),
  7. required String content,
  8. String? font = '',
  9. double? opacity = 1.0,
  10. String? color,
  11. TextAlign? textAlign = TextAlign.left,
  12. bool? bold = false,
  13. bool? italic = false,
  14. bool? underline = false,
  15. double? worldSpace = 1.0,
  16. double? lineSpace = 1.0,
  17. dynamic onInputContent()?,
})

Implementation

FontPreView(
    {super.key,
    required this.bgChild,
    required this.stvWidth,
    required this.stvHeight,
    required this.onInited,
    required this.onClose,
    required this.content,
    this.font = '',
    this.opacity = 1.0,
    this.color,
    this.textAlign = TextAlign.left,
    this.bold = false,
    this.italic = false,
    this.underline = false,
    this.worldSpace = 1.0,
    this.lineSpace = 1.0,
    this.onInputContent});