exportAs method

String exportAs(
  1. PathFileFormat pathFileFormat
)

Export path coordinates in the requested data format.

Parameters

Returns

  • The string with the exported data.

Throws

  • An exception if it fails.

Implementation

String exportAs(final PathFileFormat pathFileFormat) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'Path',
    'exportAs',
    args: pathFileFormat.id,
  );

  final String encodedResult = resultString['result'];
  final Uint8List resultAsUint8List = base64Decode(encodedResult);
  final String result = utf8.decode(resultAsUint8List);

  return result;
}