I get this error every time I try to run my code:
""New.dart:5:5: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
Y:null,""
Here's my code
void main()
{
print (addition(
X:1,
Y:2,
Z:3,));
}
int addition({int X, int Y, int Z}) {
return X * Y * Z;
}
As you can see I've already given them a value and they're not null, so what's the problem?