getProductName function
Implementation
RichText getProductName(name) {
return RichText(
textAlign: TextAlign.justify,
text: TextSpan(
style: const TextStyle(
fontSize: 12, fontWeight: FontWeight.w400, color: DARK),
children: [
const TextSpan(text: 'Underwritten by: '),
TextSpan(
text: name,
style: const TextStyle(fontWeight: FontWeight.w600),
),
]));
}