Connective.builder constructor

const Connective.builder({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. NyConnectivityState state,
    3. List<ConnectivityResult> results
    )?,
  3. bool showLoadingOnInit = false,
  4. Widget? loadingWidget,
  5. void onConnectivityChanged(
    1. NyConnectivityState state,
    2. List<ConnectivityResult> results
    )?,
})

Creates a Connective widget with a custom builder.

Implementation

const Connective.builder({
  super.key,
  required this.builder,
  this.showLoadingOnInit = false,
  this.loadingWidget,
  this.onConnectivityChanged,
}) : onWifi = null,
     onMobile = null,
     onEthernet = null,
     onVpn = null,
     onBluetooth = null,
     onOther = null,
     onNone = null,
     child = null;