RasterDataSource.withConfigurationAndListener constructor - RasterDataSource - mapview.datasource library - Dart API
RasterDataSource.withConfigurationAndListener
RasterDataSource.withConfigurationAndListener constructor
- MapContext context,
- RasterDataSourceConfiguration configuration,
- RasterDataSourceListener listener
Creates a RasterDataSource instance with the provided data source configuration and registers a listener.
-
contextThe map context to associate the data source with. -
configurationThe data source configuration object to use. -
listenerThe initial listener to be registered for receiving state notifications. Due to the asynchronous nature of the data source initialization, the listeners registered later might miss some notifications. This listener is guaranteed to receive all notifications. The state notifications can occur on an arbitrary thread.
Implementation
factory RasterDataSource.withConfigurationAndListener(MapContext context, RasterDataSourceConfiguration configuration, RasterDataSourceListener listener) => $prototype.withConfigurationAndListener(context, configuration, listener);