Screen2 constructor
const
Screen2({})
Constructor to initialize Screen2 with onRefresh and onPressed callbacks.
Implementation
const Screen2({
super.key,
required this.onButtonPressed,
required this.textButton,
required this.noInternetText,
required this.addIcon,
this.backgroundColor,
required this.initConnectivity,
this.icon, this.loadingColor
});