ConnectivityWidget constructor
const
ConnectivityWidget({})
Constructor to initialize the widget with a child and an optional current route.
Implementation
const ConnectivityWidget(
{super.key,
this.loadingColor,
required this.child,
required this.textButton,
required this.noInternetText,
required this.addIcon,
this.icon,
this.backgroundColor,
required this.onButtonPressed});