How to get ListView builder data using api response in flutter ui using provider
问题 Im trying to get an response from provider and fetching in a ui page but when i try to add an response to ui it shows an error The getter 'data' was called on null. Receiver: null Tried calling: data In this Line: ListView.builder( physics: ClampingScrollPhysics(), shrinkWrap: true, itemCount: doctorList.data.length, primary: true, is this is correct approuch or need to change modal class or ui integration. im accessing data through doctorList.data.->datas data. My response modal class.