customUserLocationMarker method

  1. @override
Future<void> customUserLocationMarker(
  1. int idOSM,
  2. GlobalKey<State<StatefulWidget>> personGlobalKey,
  3. GlobalKey<State<StatefulWidget>> directionArrowGlobalKey
)
override

Implementation

@override
Future<void> customUserLocationMarker(
  int idOSM,
  GlobalKey personGlobalKey,
  GlobalKey directionArrowGlobalKey,
) async {
  final iconPerson = await _capturePng(personGlobalKey);
  final iconArrowDirection = await _capturePng(directionArrowGlobalKey);
  HashMap<String, dynamic> args = HashMap();

  args["personIcon"] = iconPerson;
  args["arrowDirectionIcon"] = iconArrowDirection;

  await _channels[idOSM]?.invokeMethod("user#locationMarkers", args);
}