toBoolValue method Null safety

bool? toBoolValue()

Return a boolean corresponding to the value of the object being represented, or null if

  • this object is not of type 'bool',
  • the value of the object being represented is not known, or
  • the value of the object being represented is null.

Implementation

bool? toBoolValue();