booleanValue method Null safety

bool booleanValue()

Returns this value as a bool if the type matches, otherwise returns false.

Implementation

bool booleanValue() => false;