RichTextWidget constructor

const RichTextWidget({
  1. Key? key,
  2. required String caption,
  3. required String description,
  4. bool showColon = true,
  5. bool isDescNewLine = false,
  6. TextAlign textAlign = TextAlign.start,
  7. TextStyle captionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
  8. TextStyle descriptionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
})

Implementation

const RichTextWidget({
  Key? key,
  required this.caption,
  required this.description,
  this.showColon = true,
  this.isDescNewLine = false,
  this.textAlign = TextAlign.start,
  this.captionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
  this.descriptionStyle = const TextStyle(fontSize: 14, color: Colors.black, fontWeight: FontWeight.normal),
}) : super(key: key);