Checkbox constructor Null safety

const Checkbox(
  1. {Key? key,
  2. required bool? value,
  3. 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. bool autofocus,
  16. ShapeBorder? shape,
  17. BorderSide? side,
  18. bool isError}
)

Implementation

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