JsonCheckbox constructor
JsonCheckbox({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- Color? activeColor,
- bool autofocus = false,
- AutovalidateMode? autovalidateMode,
- Color? checkColor,
- bool enabled = true,
- WidgetStateProperty<
Color?> ? fillColor, - Color? focusColor,
- FocusNode? focusNode,
- Color? hoverColor,
- bool isError = false,
- String? label,
- MaterialTapTargetSize? materialTapTargetSize,
- MouseCursor? mouseCursor,
- void onChanged(
- bool?
- void onSaved(
- bool?
- WidgetStateProperty<
Color?> ? overlayColor, - OutlinedBorder? shape,
- BorderSide? side,
- double? splashRadius,
- bool tristate = false,
- required dynamic validator,
- bool? value,
- VisualDensity? visualDensity,
Implementation
JsonCheckbox({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.activeColor,
this.autofocus = false,
this.autovalidateMode,
this.checkColor,
this.enabled = true,
this.fillColor,
this.focusColor,
this.focusNode,
this.hoverColor,
this.isError = false,
this.label,
this.materialTapTargetSize,
this.mouseCursor,
this.onChanged,
this.onSaved,
this.overlayColor,
this.shape,
this.side,
this.splashRadius,
this.tristate = false,
required this.validator,
this.value,
this.visualDensity,
}) : super(
jsonWidgetArgs: JsonCheckboxBuilderModel.fromDynamic(
{
'activeColor': activeColor,
'autofocus': autofocus,
'autovalidateMode': autovalidateMode,
'checkColor': checkColor,
'enabled': enabled,
'fillColor': fillColor,
'focusColor': focusColor,
'focusNode': focusNode,
'hoverColor': hoverColor,
'isError': isError,
'label': label,
'materialTapTargetSize': materialTapTargetSize,
'mouseCursor': mouseCursor,
'onChanged': onChanged,
'onSaved': onSaved,
'overlayColor': overlayColor,
'shape': shape,
'side': side,
'splashRadius': splashRadius,
'tristate': tristate,
'validator': validator,
'value': value,
'visualDensity': visualDensity,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonCheckboxBuilder(
args: JsonCheckboxBuilderModel.fromDynamic(
{
'activeColor': activeColor,
'autofocus': autofocus,
'autovalidateMode': autovalidateMode,
'checkColor': checkColor,
'enabled': enabled,
'fillColor': fillColor,
'focusColor': focusColor,
'focusNode': focusNode,
'hoverColor': hoverColor,
'isError': isError,
'label': label,
'materialTapTargetSize': materialTapTargetSize,
'mouseCursor': mouseCursor,
'onChanged': onChanged,
'onSaved': onSaved,
'overlayColor': overlayColor,
'shape': shape,
'side': side,
'splashRadius': splashRadius,
'tristate': tristate,
'validator': validator,
'value': value,
'visualDensity': visualDensity,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonCheckboxBuilder.kType,
);