toMap method
Implementation
Map toMap() {
Map args = {};
/// disable/show markers in start,middle,end points
if (roadBorderWidth != null && roadBorderWidth! > 0) {
args.putIfAbsent(
"roadBorderWidth",
() => roadBorderWidth,
);
}
args.putIfAbsent(
"zoomIntoRegion",
() => zoomInto,
);
args.putIfAbsent(
"zoomIntoRegion",
() => zoomInto,
);
args.addAll(roadColor.toMapPlatform("roadColor"));
args.putIfAbsent(
"isDotted",
() => isDotted,
);
if (roadBorderColor != null) {
args.putIfAbsent(
"roadBorderColor",
() => (roadBorderColor!).toPlatform(),
);
}
return args;
}