startLocate method

Stream<Location> startLocate(
  1. LocationClientOptions options
)

开始定位, 返回定位 结果流

Implementation

Stream<Location> startLocate(LocationClientOptions options) {
  L.p('startLocate dart端参数: options.toJsonString() -> ${options.toJsonString()}');

  _locationChannel.invokeMethod('location#startLocate', {'options': options.toJsonString()});

  return _locationEventChannel.receiveBroadcastStream().map((result) => result).map((resultJson) => Location.fromJson(jsonDecode(resultJson)));
}