find static method

List<_UtcDef> find({
  1. String? value,
  2. String? abbr,
  3. String? text,
  4. String? hasUtc,
  5. double? offset,
  6. bool? istDst,
})

Implementation

static List<_UtcDef> find({String? value, String? abbr, String? text, String? hasUtc, double? offset, bool? istDst}) {
  List<_UtcDef> out = [];
  for (_UtcDef def in timezones) {

    if (
      (value == null || def.value == value) &&
      (abbr == null || def.abbr == abbr) &&
      (text == null || def.text == text) &&
      (hasUtc == null || def.utc.contains(hasUtc)) &&
      (offset == null || def.offset == offset) &&
      (istDst == null || def.isDst == istDst)
    ) {
      out.add(def);
    }
  }

  return out;
}