setupParentData method
- @override
override
Alerts the developer that the child's parentData needs to be of type KeepAliveParentDataMixin.
Implementation
@override
void setupParentData(RenderObject child) {
if (child.parentData is! SliverGridParentData)
child.parentData = SliverGridParentData();
}