exportAs method
- PathFileFormat format
inherited
Export route data 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 format) {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteBase',
'exportAs',
args: format.index,
);
final String encodedResult = resultString['result'];
final Uint8List resultAsUint8List = base64Decode(encodedResult);
final String result = utf8.decode(resultAsUint8List);
return result;
}