insertItem method

  1. @override
void insertItem(
  1. int index, {
  2. Duration duration = animationDuration,
})
override

Implementation

@override
void insertItem(int index, {Duration duration = animationDuration}) {
  if (_listKey.currentState == null) throw Exception(_errorMsg);
  _listKey.currentState!.insertItem(index, duration: duration);
}