enableLiveData method

  1. @override
Future<void> enableLiveData(
  1. String domainType,
  2. OnLiveLocationUpdateListener? listener
)
override

Implementation

@override
Future<void> enableLiveData(
    String domainType, OnLiveLocationUpdateListener? listener) {
  if (listener != null) {
    _liveUpdateListeners.putIfAbsent(domainType, () => listener);
  }
  return mapControlMethodChannel.invokeMethod("MPC_enableLiveData",
      {"domainType": domainType, "listener": (listener != null)});
}