exportAs method
- PathFileFormat fileFormat = PathFileFormat.packedGeometry,
Export navigation instruction.
Only works with PathFileFormat.packedGeometry type.
Parameters
- IN format Data format, see PathFileFormat.
Returns
- Instruction data buffer as Uint8List.
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;
}