// ** Declaration ** //
MaterialStateProperty<Color?>? redColor = MaterialStateProperty.all(Colors.red);
// backgroundColor property
backgroundColor: MaterialStateProperty.all(Colors.green),
//OR
backgroundColor: MaterialStateProperty.all(Color(0xFFEDEDED)),