Open
Description
When using if-null operator ?? in property initialization of a class properties it disables the type checking as I will be able to assign bool to int as follows
class CustomerDetails {
int numOfDays;
CustomerDetails.fromJson(Map<String, dynamic> json)
: numOfDays = false ?? json['numOfDays'] ?? false;
}