@@ -42,19 +42,10 @@ class Connectivity {
4242 /// For details see https://github.com/fluttercommunity/plus_plugins/issues/479.
4343 ///
4444 /// The emitted list is never empty.
45- /// {@template no_connectivity_case}
4645 /// In case of no connectivity, the list contains
4746 /// a single element of [ConnectivityResult.none] . Note also that this is the only
4847 /// case where [ConnectivityResult.none] is present.
4948 ///
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- ///
5849 /// This method applies [Stream.distinct] over the received events to ensure
5950 /// only emitting when connectivity changes.
6051 Stream <List <ConnectivityResult >> get onConnectivityChanged {
@@ -68,7 +59,9 @@ class Connectivity {
6859 /// for connectivity changes via [onConnectivityChanged] stream.
6960 ///
7061 /// The returned list is never empty.
71- /// {@macro no_connectivity_case}
62+ /// In case of no connectivity, the list contains
63+ /// a single element of [ConnectivityResult.none] . Note also that this is the only
64+ /// case where [ConnectivityResult.none] is present.
7265 Future <List <ConnectivityResult >> checkConnectivity () {
7366 return _platform.checkConnectivity ();
7467 }
0 commit comments