getIcon method
Implementation
Widget getIcon() {
if (selectedItemCount == 0) {
return const SizedBox.shrink();
}
if (selectedItemCount == mainListLength) {
return UFUIcon(Icons.check, color: AppTheme.themeColors.base, size: 14);
}
if (isViewSubList) {
if (subList.where((element) => element.isSelect).isNotEmpty) {
if (filterListItemsCount == tempSelectedItemsCount) {
return UFUIcon(
Icons.check,
color: AppTheme.themeColors.base,
size: 14,
);
} else if (tempSelectedItemsCount == 0) {
return const SizedBox.shrink();
} else {
return UFUIcon(
Icons.remove,
size: 14,
color: AppTheme.themeColors.base,
);
}
}
}
return UFUIcon(Icons.remove, size: 14, color: AppTheme.themeColors.base);
}