build method
Implementation
@override
pw.Widget build(pw.Context context) => pw.Container(
margin: margin,
padding: padding,
child: pw.Row(
crossAxisAlignment: pw.CrossAxisAlignment.start,
children: <pw.Widget>[
pw.Container(
width: bulletSize,
height: bulletSize,
margin: bulletMargin,
decoration: pw.BoxDecoration(
color: bulletColor,
shape: bulletShape,
),
),
pw.Expanded(
child: text == null
? pw.SizedBox()
: BanglaAwareText(
text!,
textAlign: textAlign,
style: pw.Theme.of(context).bulletStyle.merge(style),
),
),
],
),
);