removeRowWithAnimation method

dynamic removeRowWithAnimation(
  1. LeftScrollCloseTag? tag,
  2. Key? key, {
  3. Function? onRemove,
})

删除目标行

Implementation

removeRowWithAnimation(
  LeftScrollCloseTag? tag,
  Key? key, {
  Function? onRemove,
}) async {
  if (tag == null) return;
  if (map[tag] == null) return;
  // targetStatus(tag, key)?.value = LeftScrollStatus.close;
  targetStatus(tag, key)?.value = LeftScrollStatus.remove;
  await Future.delayed(Duration(milliseconds: 300));
  onRemove?.call();
  targetStatus(tag, key)?.value = LeftScrollStatus.close;
}