customUserLocationMarker method
Future<void>
customUserLocationMarker(
- int idOSM,
- GlobalKey<
State< personGlobalKey,StatefulWidget> > - GlobalKey<
State< directionArrowGlobalKeyStatefulWidget> >
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);
}