removeGeoAnalytics method

  1. @override
Future<void> removeGeoAnalytics(
  1. MapmyIndiaGeoAnalyticsType type,
  2. String geoboundType,
  3. String? attribute,
  4. List<String> propertyNames,
  5. List<MapmyIndiaGeoAnalyticsRequest> requests,
  6. String? query,
  7. bool? transparent,
)
override

Implementation

@override
Future<void> removeGeoAnalytics(MapmyIndiaGeoAnalyticsType type,
    String geoboundType,
    String? attribute,
    List<String> propertyNames,
    List<MapmyIndiaGeoAnalyticsRequest> requests,
    String? query,
    bool? transparent) async {
  Map<String, dynamic> map = <String, dynamic>{
    'geoAnalyticsType': type.index,
    'geoboundType': geoboundType,
    'propertyNames': propertyNames,
    'geoAnalyticsRequest':
    List.generate(requests.length, (index) => requests[index].toJson())
  };
  if (query != null) {
    map['query'] = query;
  }
  if (transparent != null) {
    map['transparent'] = transparent;
  }
  await _channel.invokeMethod('style#removeGeoAnalytics', map);
}