Widget.checkbox constructor Null safety

const Widget.checkbox(
  1. {Key? key,
  2. required bool? value,
  3. @Default(false) bool tristate,
  4. FormBoolField? field,
  5. MouseCursor? mouseCursor,
  6. Color? activeColor,
  7. MaterialStateProperty? fillColor,
  8. Color? checkColor,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. MaterialStateProperty? overlayColor,
  12. double? splashRadius,
  13. MaterialTapTargetSize? materialTapTargetSize,
  14. VisualDensity? visualDensity,
  15. @Default(false) bool autofocus,
  16. ShapeBorder? shape,
  17. BorderSide? side,
  18. @Default(false) bool isError}
)

Implementation

const factory Widget.checkbox({
  Key? key,
  required bool? value,
  @Default(false) bool tristate,
  FormBoolField? field,
  MouseCursor? mouseCursor,
  Color? activeColor,
  MaterialStateProperty? fillColor,
  Color? checkColor,
  Color? focusColor,
  Color? hoverColor,
  MaterialStateProperty? overlayColor,
  double? splashRadius,
  MaterialTapTargetSize? materialTapTargetSize,
  VisualDensity? visualDensity,
  @Default(false) bool autofocus,
  ShapeBorder? shape,
  BorderSide? side,
  @Default(false) bool isError,
}) = Checkbox;