getStyleError method

  1. @override
Future<String?> getStyleError({
  1. required int mapId,
})

If the last attempt to set the style via MapConfiguration.style failed, returns the error information, otherwise returns null.

Implementation

@override
Future<String?> getStyleError({required int mapId}) {
  final MethodChannel channel = ensureChannelInitialized(mapId);
  return channel.invokeMethod<String>('map#getStyleError');
}