exportAs method
- PathFileFormat pathFileFormat
Export path coordinates in the requested data format.
Parameters
- IN format Data format, see PathFileFormat.
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;
}