What is the main cause of the above error in Flutter? I am simply using the following code, where both the pickers use same code to fetch data from different json.
if (_equipmentSwitch == equipmentType.Implement)
TractorPicker(mapNotifier: modelNotifier)
else
HarvesterPicker(mapNotifier: modelNotifier),
HarvesterPicker is working fine. But if I switch to tractorPicker, I get the above error along with this error "Duplicate GlobalKey detected in widget tree" . But I have never used a global key