buildWanted static method

List<bool>? buildWanted(
  1. List? rawData
)

Implementation

static List<bool>? buildWanted(List? rawData) {
  return rawData?.map((e) {
    if (e is bool) return e;
    if (e is int || e is num || e is double) return e == 1 ? true : false;
    if (e == null) return false;
    return e.toString().isNotEmpty;
  }).toList();
}