Connective constructor

const Connective({
  1. Key? key,
  2. Widget? onWifi,
  3. Widget? onMobile,
  4. Widget? onEthernet,
  5. Widget? onVpn,
  6. Widget? onBluetooth,
  7. Widget? onOther,
  8. Widget? onNone,
  9. Widget? child,
  10. bool showLoadingOnInit = false,
  11. Widget? loadingWidget,
  12. void onConnectivityChanged(
    1. NyConnectivityState state,
    2. 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.onOther,
  this.onNone,
  this.child,
  this.showLoadingOnInit = false,
  this.loadingWidget,
  this.onConnectivityChanged,
}) : builder = null;