Showing 1 of 1 files from the diff.

@@ -48,12 +48,6 @@
Loading
48 48
  static const EventChannel _authorizationStatusChangedChannel =
49 49
      EventChannel('flutter_authorization_status_changed');
50 50
51 -
  /// This information does not change from call to call. Cache it.
52 -
  Stream<RangingResult> _onRanging;
53 -
54 -
  /// This information does not change from call to call. Cache it.
55 -
  Stream<MonitoringResult> _onMonitoring;
56 -
57 51
  /// This information does not change from call to call. Cache it.
58 52
  Stream<BluetoothState> _onBluetoothState;
59 53
@@ -135,26 +129,22 @@
Loading
135 129
  ///
136 130
  /// This will fires [RangingResult] whenever the iBeacons in range.
137 131
  Stream<RangingResult> ranging(List<Region> regions) {
138 -
    if (_onRanging == null) {
139 -
      final list = regions.map((region) => region.toJson).toList();
140 -
      _onRanging = _rangingChannel
141 -
          .receiveBroadcastStream(list)
142 -
          .map((dynamic event) => RangingResult.from(event));
143 -
    }
144 -
    return _onRanging;
132 +
    final list = regions.map((region) => region.toJson).toList();
133 +
    final Stream<RangingResult> onRanging = _rangingChannel
134 +
        .receiveBroadcastStream(list)
135 +
        .map((dynamic event) => RangingResult.from(event));
136 +
    return onRanging;
145 137
  }
146 138
147 139
  /// Start monitoring iBeacons with defined [List] of [Region]s.
148 140
  ///
149 141
  /// This will fires [MonitoringResult] whenever the iBeacons in range.
150 142
  Stream<MonitoringResult> monitoring(List<Region> regions) {
151 -
    if (_onMonitoring == null) {
152 -
      final list = regions.map((region) => region.toJson).toList();
153 -
      _onMonitoring = _monitoringChannel
154 -
          .receiveBroadcastStream(list)
155 -
          .map((dynamic event) => MonitoringResult.from(event));
156 -
    }
157 -
    return _onMonitoring;
143 +
    final list = regions.map((region) => region.toJson).toList();
144 +
    final Stream<MonitoringResult> onMonitoring = _monitoringChannel
145 +
        .receiveBroadcastStream(list)
146 +
        .map((dynamic event) => MonitoringResult.from(event));
147 +
    return onMonitoring;
158 148
  }
159 149
160 150
  /// Start checking for bluetooth state changed.
Files Coverage
lib 97.37%
Project Totals (7 files) 97.37%
25.1
TRAVIS_OS_NAME=linux
oraclejdk8=

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading