SourceObjectPosition.withPosition constructor

SourceObjectPosition.withPosition({
  1. required int sourceIndex,
  2. required int sourceOid,
  3. required double position,
})

Creates a source object position instance.

Creates a source object position.

Parameters:

  • sourceIndex — A source instance.
  • sourceOid — A source OID.
  • position — A position.

Implementation

factory SourceObjectPosition.withPosition({
  required int sourceIndex,
  required int sourceOid,
  required double position,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SourceObjectPosition_createWithPosition(
      sourceIndex,
      sourceOid,
      position,
      errorHandler,
    );
  });
  return SourceObjectPosition._withHandle(handle);
}