truthy static method

bool truthy(
  1. String v
)

Whether a string cell value reads as boolean-true.

Implementation

static bool truthy(String v) {
  final s = v.trim().toLowerCase();
  return s == '1' || s == 'true' || s == 'yes' || s == 'y';
}