setCustomIcon method

Future<void> setCustomIcon(
  1. String base64Icon,
  2. double scaledWidth,
  3. double scaledHeight,
  4. double anchorX,
  5. double anchorY,
)

Implementation

Future<void> setCustomIcon(
  String base64Icon,
  double scaledWidth,
  double scaledHeight,
  double anchorX,
  double anchorY,
) async {
  await webViewController.runJavaScript('''
    setCustomIcon(
      "$base64Icon",
      $scaledWidth,
      $scaledHeight,
      $anchorX,
      $anchorY
    );
  ''');
}