data_table_2 icon indicating copy to clipboard operation
data_table_2 copied to clipboard

PaginatedDataTable2State.dispose() needs to detach from its PaginatorController.

Open devrelm opened this issue 6 months ago • 0 comments

PaginatedDataTable2State.dispose() does not call controller.detach() in its dispose() method:

https://github.com/maxim-saplin/data_table_2/blob/879f9baa25751dd928d2cc8511d95d519cd551bb/lib/src/paginated_data_table_2.dart#L580-L583

Right now, a consumer that passes a PaginatedController into a PaginatedDataTable2 is unable to use PaginatorController.isAttached to tell whether they can safely call any of the methods on the controller.

devrelm avatar Aug 07 '25 16:08 devrelm