ConnectivityBuilder constructor

ConnectivityBuilder({
  1. Key? key,
  2. 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);