I try to assign null to click function but it does not work disabled color. I tried this code section.
IconButton(
disabledColor: Colors.redAccent,
icon: Icon(
Icons.hdr_enhanced_select,
color: Colors.white,
),
iconSize: 30,
onPressed: selectionIsActive
? null
: () {
setState(() {
selectionIsActive = true;
});
}),
