buildCheckIcon method Null safety

Center buildCheckIcon(
  1. {bool isChecked = false}
)

Implementation

Center buildCheckIcon({bool isChecked = false}) {
  return Center(
    child: Icon(
      Icons.check,
      size: 24,
      color: isChecked ? StyleMyFile.checkBoxIconColorActive : StyleMyFile.checkBoxIconColorNotActive,
    ),
  );
}