toBool method

bool toBool()

to convert a string to boolean; Returns true if the Lower Case of this variable == 'true';

Implementation

bool toBool() {
  return this.toLowerCase() == 'true';
}