needCloseOtherRowOfTag method

dynamic needCloseOtherRowOfTag(
  1. LeftScrollCloseTag? tag,
  2. Key? key
)

Implementation

needCloseOtherRowOfTag(LeftScrollCloseTag? tag, Key? key) {
  if (tag == null) return;
  if (map[tag] == null) return;
  for (var otherKey in map[tag]!.keys) {
    if (otherKey == key) continue;
    if (map[tag]![otherKey]!.value == LeftScrollStatus.open) {
      map[tag]![otherKey]!.value = LeftScrollStatus.close;
    }
  }
}