[Kindly help me with this The argument type 'MaterialStateProperty?' can't be assigned to the parameter type 'Color'.
answerColor: answerSelected
? answer['score']
? MaterialStateProperty.resolveWith<Color>(
Colors.green;
)`enter code here`
: MaterialStateProperty.resolveWith<Color>(
Colors.red;
)
: null,