getDataSource static method
Returns the currently configured DataSource, or null if none is set.
The returned DataSource represents the active position data source
(live GPS, playback log/simulation, or custom external source). If no
data source is configured this method returns null.
Returns
- The active DataSource or
nullwhen no data source is set.
Implementation
static DataSource? getDataSource() {
final OperationResult resultString = staticMethod(
'PositionService',
'getDataSource',
);
if (resultString['result'] == null) {
return null;
}
return DataSource.init(resultString['result']);
}