getDataSource method
Retrieves the current data source used for obtaining position data.
Returns
- The data source if it exists, null otherwise
Throws
- An exception if it fails
Implementation
DataSource? getDataSource() {
final OperationResult resultString = staticMethod(
'PositionService',
'getDataSource',
);
if (resultString['result'] == null) {
return null;
}
return DataSource.init(resultString['result']);
}