RichTextEditor constructor

const RichTextEditor({
  1. Key? key,
  2. Color? backgroundColor,
  3. EdgeInsetsGeometry? padding,
  4. String? hint,
  5. Color? cursorColor,
  6. Color? toolBarColor,
  7. required dynamic buildCall(
    1. RichTextModel? richTextModel
    ),
  8. dynamic imageCall()?,
  9. String? initialize,
  10. bool readOnly = false,
  11. dynamic removeImageCall(
    1. String imageUrl
    )?,
  12. Widget customHeaderView()?,
  13. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  14. BorderRadiusGeometry? borderRadius,
  15. BoxBorder? border,
  16. Color? textColor,
  17. double textSize = 14,
  18. Color? placeHolderColor = const Color(0x333B372C),
  19. double placeHolderTextSize = 14,
})

Implementation

const RichTextEditor({
  Key? key,
  this.backgroundColor,
  this.padding,
  this.hint,
  this.cursorColor,
  this.toolBarColor,
  required this.buildCall,
  this.imageCall,
  this.initialize,
  this.readOnly = false,
  this.removeImageCall,
  this.customHeaderView,
  this.crossAxisAlignment = CrossAxisAlignment.start,
  this.borderRadius,
  this.border,
  this.textColor,
  this.textSize = 14,
  this.placeHolderColor = const Color(0x333B372C),
  this.placeHolderTextSize = 14,
}) : super(key: key);