ConnectivityBuilder constructor
ConnectivityBuilder({
- Key? key,
- required ConnectivityWidgetBuilder builder,
Creates a new ConnectivityBuilder that builds itself based on the latest snapshot of interaction with Connectivity.isConnected Stream and Connectivity.onConnectivityChanged Stream and whose build strategy is given by builder.
The builder must not be null.
Implementation
ConnectivityBuilder({
Key? key,
required this.builder,
}) : _connectivity = Connectivity(),
super(key: key);