isTrue static method

bool isTrue(
  1. dynamic value
)

Implementation

static bool isTrue(dynamic value) {
  if (value == "1" || value == 1 || value == "true" || value == true) {
    return true;
  }
  return false;
}