Connective.builder constructor
const
Connective.builder({
- Key? key,
- required Widget builder(
- BuildContext context,
- NyConnectivityState state,
- List<
ConnectivityResult> results
- bool showLoadingOnInit = false,
- Widget? loadingWidget,
- void onConnectivityChanged(
- NyConnectivityState state,
- 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;