setTrafficStyleWithId abstract method
Applies JSON style transformations to the traffic layer. Replaces previous styling with the specified ID (if such exists). Stylings are applied in an ascending order. Set to empty string to clear previous styling with the specified ID. Returns true if the style was successfully parsed; false otherwise. If the return value is false, the current traffic style remains unchanged.
Implementation
core.bool setTrafficStyleWithId({
required core.int id,
required core.String style,
});