Widget removal always removes last widget

Author: Srinath007sagCreated Jan 9, 2019Updated May 24, 2021

Hi, I have a state object which contains an array which is used to show tab view. The array generates an array of widget in the UI. If i close the second element or the first element always the last element is destroyed.