[Solved] A value of type ‘Null’ can’t be assigned to a parameter of type ‘Key’ in a const constructor. Try using a subtype, or removing the keyword ‘const’

[ad_1]

A value of type ‘Null’ can’t be assigned to a parameter of type ‘Key’ in a const constructor. Try using a subtype, or removing the keyword ‘const’

[ad_2]

solved A value of type ‘Null’ can’t be assigned to a parameter of type ‘Key’ in a const constructor. Try using a subtype, or removing the keyword ‘const’