CheckboxBuilder typedef

CheckboxBuilder = Widget Function(BuildContext context, bool checked, Widget content, CheckboxStyle style)

Builds the widget for a task-list checkbox and its label.

checked is the state parsed from the source, content is the rendered label, and style is the resolved CheckboxStyle. Wire taps through GptMarkdown.onCheckboxChanged — the source text is the model, so nothing changes state on its own.

Implementation

typedef CheckboxBuilder =
    Widget Function(
      BuildContext context,
      bool checked,
      Widget content,
      CheckboxStyle style,
    );