add method
Add a path to the collection.
Parameters
- IN path The path to be added.
- IN colorBorder The border color of the path. By default the one from the current map view style is used.
- IN colorInner The inner color of the path. By default the one from the current map view style is used.
- IN szBorder The border size of the path in mm. If < 0 the one from the current map view style is used.
- IN szInner The inner size of the path in mm. If < 0 the one from the current map view style is used.
Throws
- An exception if it fails.
Implementation
void add(
final Path path, {
final Color colorBorder = const Color(0x00000000),
final Color colorInner = const Color(0x00000000),
final double szBorder = -1,
final double szInner = -1,
}) {
objectMethod(
_pointerId,
'MapViewPathCollection',
'add',
args: <String, Object>{
'path': path.pointerId,
'colorBorder': colorBorder.toRgba(),
'colorInner': colorInner.toRgba(),
'szBorder': szBorder,
'szInner': szInner,
},
);
}