isBool function

bool isBool(
  1. String value
)

Checks if string is boolean.

Implementation

bool isBool(String value) {
  return (value == 'true' || value == 'false');
}