boolTryParse method

bool boolTryParse(
  1. dynamic valor
)

Implementation

bool boolTryParse(dynamic valor) {
  return valor == 'true' || valor == true;
}