@@ -41,20 +41,10 @@ class Connectivity {
4141 /// status changes, this is a known issue that only affects simulators.
4242 /// For details see https://github.com/fluttercommunity/plus_plugins/issues/479.
4343 ///
44- /// The emitted list is never empty.
45- /// {@template no_connectivity_case}
46- /// In case of no connectivity, the list contains
44+ /// The emitted list is never empty. In case of no connectivity, the list contains
4745 /// a single element of [ConnectivityResult.none] . Note also that this is the only
4846 /// case where [ConnectivityResult.none] is present.
4947 ///
50- /// Use `hasConnectivity` to determine whether any active network connection exists:
51- ///
52- /// ```dart
53- /// final result = await checkConnectivity();
54- /// print(result.hasConnectivity);
55- /// ```
56- /// {@endtemplate}
57- ///
5848 /// This method applies [Stream.distinct] over the received events to ensure
5949 /// only emitting when connectivity changes.
6050 Stream <List <ConnectivityResult >> get onConnectivityChanged {
@@ -67,8 +57,9 @@ class Connectivity {
6757 /// make a network request, it only gives you the radio status. Instead, listen
6858 /// for connectivity changes via [onConnectivityChanged] stream.
6959 ///
70- /// The returned list is never empty.
71- /// {@macro no_connectivity_case}
60+ /// The returned list is never empty. In case of no connectivity, the list contains
61+ /// a single element of [ConnectivityResult.none] . Note also that this is the only
62+ /// case where [ConnectivityResult.none] is present.
7263 Future <List <ConnectivityResult >> checkConnectivity () {
7364 return _platform.checkConnectivity ();
7465 }
0 commit comments