JsonCheckbox constructor

JsonCheckbox({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. Color? activeColor,
  4. bool autofocus = false,
  5. AutovalidateMode? autovalidateMode,
  6. Color? checkColor,
  7. bool enabled = true,
  8. WidgetStateProperty<Color?>? fillColor,
  9. Color? focusColor,
  10. FocusNode? focusNode,
  11. Color? hoverColor,
  12. bool isError = false,
  13. String? label,
  14. MaterialTapTargetSize? materialTapTargetSize,
  15. MouseCursor? mouseCursor,
  16. void onChanged(
    1. bool?
    )?,
  17. void onSaved(
    1. bool?
    )?,
  18. WidgetStateProperty<Color?>? overlayColor,
  19. OutlinedBorder? shape,
  20. BorderSide? side,
  21. double? splashRadius,
  22. bool tristate = false,
  23. required dynamic validator,
  24. bool? value,
  25. 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,
      );