toBool method

bool toBool([
  1. bool def = false
])

Implementation

bool toBool([bool def = false]) => toNullableBool() ?? def;