Screen2 constructor

const Screen2({
  1. Key? key,
  2. required void onButtonPressed()?,
  3. required Text textButton,
  4. required Text noInternetText,
  5. required bool addIcon,
  6. Color? backgroundColor,
  7. required Future<void> initConnectivity(),
  8. Widget? icon,
  9. Color? loadingColor,
})

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
});