PolylineArrowMaterialProperty

I try to change the property material in the code below.
I try to use Cesium.PolylineArrowMaterialProperty(color) but I can’t do it.
My goal is to create an arrow instead of a line.
The cesium version is 1.78.0.

Can anyone help me
?

This is my code:

------------viewer.entities.add({
availability: new Cesium.TimeIntervalCollection([
new Cesium.TimeInterval({ start: start, stop: stop }),
]),
position: positionProperties[i],
model: {
uri: airplaneUri,
minimumPixelSize: 250,
maximumScale: 10,
},
// Automatically compute the orientation from the position.
orientation: new Cesium.VelocityOrientationProperty(
positionProperties[i]
),
path: new Cesium.PathGraphics({
width: 3,
material: Cesium.Color.YELLOW,
leadTime: 20,
trailTime: 0,
}),
});


I get a dashed line changing material property by using:
material: new Cesium.PolylineDashMaterialProperty({
color: Cesium.Color.YELLOW,
}),
However, by using new Cesium.PolylineArrowMaterialProperty, seems don’t work.
Any idea?

Thanks a lot