Connective constructor
const
Connective({
- Key? key,
- Widget? onWifi,
- Widget? onMobile,
- Widget? onEthernet,
- Widget? onVpn,
- Widget? onBluetooth,
- Widget? onSatellite,
- Widget? onOther,
- Widget? onNone,
- Widget? child,
- bool showLoadingOnInit = false,
- Widget? loadingWidget,
- void onConnectivityChanged(
- NyConnectivityState state,
- List<
ConnectivityResult> results
Creates a Connective widget with specific builders for each state.
Implementation
const Connective({
super.key,
this.onWifi,
this.onMobile,
this.onEthernet,
this.onVpn,
this.onBluetooth,
this.onSatellite,
this.onOther,
this.onNone,
this.child,
this.showLoadingOnInit = false,
this.loadingWidget,
this.onConnectivityChanged,
}) : builder = null;