CheckboxLabel
A checkbox is a component that allows users to select one or multiple options from a set.
This version of the Checkbox has a label, and optional images on the left and right side of the label.

States
The checkbox with label can be in different states that can be toggled with the isEnabled and labelState parameters.
Disabled

Error

Parameters
The ToggleableState of the checkbox.
The Lambda to be invoked when the checkbox is clicked.
An optional Painter to be displayed on the left of the checkbox. Defaults to null.
The text to be displayed as the label of the checkbox. Defaults to an empty string.
An optional Painter to be displayed on the right of the checkbox. Defaults to null.
Whether the checkbox is enabled or not. Defaults to true.
The LabelState of the label. Defaults to LabelState.Default.
An optional hoisted MutableInteractionSource for observing and emitting Interactions for the checkbox. You can use this to change the checkbox's appearance or preview the checkbox in different states. Defaults to a remembered MutableInteractionSource.