isTrue function

bool isTrue(
  1. dynamic value
)

Implementation

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