getText method

String getText()

Implementation

String getText(){
  if(selectedItemCount == 0){
    return 'Select All';
  }
  if(subList.where((element) => element.isSelect).isNotEmpty){
    if(tempSelectedItemsCount == 0){
      return 'Select All';
    } else {
      return 'Clear All';
    }
  }
  return 'Clear All';
}