toBool method
to convert a string to boolean;
Returns true
if the Lower Case of this variable == 'true';
Implementation
bool toBool() {
return this.toLowerCase() == 'true';
}
to convert a string to boolean;
Returns true
if the Lower Case of this variable == 'true';
bool toBool() {
return this.toLowerCase() == 'true';
}