removeItem static method

void removeItem(
  1. int index
)

오버레이 항목 제거

Implementation

static void removeItem(int index) {
  Widget removeItem = _overlayList.removeAt(index);

  /// animatedKey 할당한 AnimatedList 에서
  /// 첫번째 파라미터인 index 순서에 두번째 파라미터 builder 에 해당하는 아이템을 지운다.
  _animatedKey.currentState!.removeItem(index, (context, animation) {
    return _AnimatedListItem(item: removeItem, animation: animation, index: index);
  });
}