CupertinoCheckBox constructor Null safety

CupertinoCheckBox(
  1. {GlobalKey<State<StatefulWidget>>? key,
  2. required ValueChanged<bool> onChecked,
  3. Color? iconColor,
  4. bool checked = false}
)

Implementation

CupertinoCheckBox({
  GlobalKey? key,
  required this.onChecked,
  this.iconColor,
  this.checked = false,
}) : super(key: key);