isBool method

bool isBool(
  1. dynamic value
)

Checks if the given value is a boolean.

Implementation

bool isBool(value) {
  return value is bool;
}