changeIconAdvPickerMarker method
change Icon of advanced picker Marker
we need to global key to recuperate widget from tree element
key
: (GlobalKey) key of widget that represent the new marker
Implementation
@override
Future changeIconAdvPickerMarker(GlobalKey<State<StatefulWidget>> key) async {
var base64 = "";
try {
base64 = (await capturePng(key)).convertToString();
} finally {
final iconSize = key.toSizeJS();
await interop.changeIconAdvPickerMarker(mapIdMixin, base64, iconSize);
}
}