Widget _buildCheckboxHotels() =>widget.hotels=='1'? ListTile(
leading: Icon(Icons.check),
title: Text(
'Hotels',
style: TextStyle(
color: Colors.black54,
fontSize: 16,
),
),
trailing: Checkbox(
value: Hotel,
onChanged: (bool? value) {
setState(() {
this.Hotel = value!;
if(Hotel==true){
myhotel=1.toString();
}
else{
myhotel=0.toString();
print(myhotel);
}
print(Hotel);
print(this.Hotel);
});
},
),
):ListTile(
title: Text(
'Hotels',
style: TextStyle(
color: Colors.black54,
fontSize: 16,
),
),
trailing: Checkbox(
value: Hotel,
onChanged: (bool? value) {
setState(() {
this.Hotel = value!;
if(Hotel==true){
myhotel=1.toString();
print("mreaHotel");
print(myhotel);
}
else{
myhotel=0.toString();
print(" else mreaHotel");
print(myhotel);
}
print(Hotel);
print(this.Hotel);
});
},
),
);

I’m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I’ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains:
-
DevOps School – Tech blogs and tutorials
-
Holiday Landmark – Travel stories and guides
-
Stocks Mantra – Stock market strategies and tips
-
My Medic Plus – Health and fitness guidance
-
TrueReviewNow – Honest product reviews
-
Wizbrand – SEO and digital tools for businesses
I’m also exploring the fascinating world of Quantum Computing.