exportAs method
- PathFileFormat fileFormat = PathFileFormat.packedGeometry,
Export navigation instruction data.
Exports the instruction in the specified format. Currently only supports PathFileFormat.packedGeometry. Useful for serializing instruction data for analysis or debugging.
Parameters
fileFormat: (PathFileFormat) Data format for export. Defaults toPathFileFormat.packedGeometry.
Returns
- (Uint8List) Instruction data buffer in the requested format.
Implementation
Uint8List exportAs({
PathFileFormat fileFormat = PathFileFormat.packedGeometry,
}) {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'exportAs',
args: fileFormat.id,
);
final String encodedResult = resultString['result'];
final Uint8List resultAsUint8List = base64Decode(encodedResult);
return resultAsUint8List;
}