if (subStatuses.isEmpty) {
// No second tab bar needed if subStatuses is empty
return RefreshIndicator(
child: ListView.builder(
physics: const BouncingScrollPhysics(),
shrinkWrap: true,
itemCount: applicants.length,
itemBuilder: (context, index) {
final applicant = applicants[index];
return listViewItem_new(
context,
applicant,
true,
statuses,
profilemodel.id != null
? profilemodel.id!.toInt()
: 467,
index,
);
},
),
);
}
I'm trying to use RefreshIndicator, but I'm getting this error:
'RefreshIndicator' isn't a function.
Try correcting the name to match an existing function, or define a method or function named 'RefreshIndicator'.
Why is this happening?
Try adding the on Refresh Method