build method
Implementation
@override
InlineSpan build() {
bool checked = false;
if (attr['checked'] != null) {
checked = attr['checked']!.toLowerCase() == 'true';
}
final parentStyleHeight =
(parentStyle?.fontSize ?? config.p.textStyle.fontSize ?? 16.0) *
(parentStyle?.height ?? config.p.textStyle.height ?? 1.5);
return WidgetSpan(
child: config.input.builder?.call(checked) ??
Padding(
padding: EdgeInsets.fromLTRB(2, (parentStyleHeight / 2) - 12, 2, 0),
child: MCheckBox(checked: checked),
),
);
}