exportAs method

Uint8List exportAs({
  1. PathFileFormat fileFormat = PathFileFormat.packedGeometry,
})

Export navigation instruction.

Only works with PathFileFormat.packedGeometry type.

Parameters

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;
}