isTrue function

bool isTrue (dynamic value)

Implementation

bool isTrue(value) {
  return value is bool && value;
}