Creates a new shape.
The path of the shape, or a path provider. Pass null
to create a shape with no path that you can update later.
The current path provider that the shape is subscribed to, or null
if one isn't set.
Setting the path provider will immediately update the current path. If the path provider is set to null
, the shape's path will also be cleared. Use clearPathProvider to clear the path provider without clearing the current path.
The colour that is used to stroke the path.
The width of the stroke outline in CSS pixels.
A drawable path.
Remarks
The shape can be configured with either a static path or a path provider (such as ReactiveRoute) for automatic path updates.