getProductName function

RichText getProductName(
  1. dynamic name
)

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),
            ),
          ]));
}