setStyle(style) {
    this.style_ = style === undefined ? createDefaultStyle : style;
    const styleLike = toStyleLike(style);
    this.styleFunction_ =
      style === null ? undefined : toStyleFunction(styleLike);
    this.changed();
  }
Set the style for features.  This can be a single style object, an array
of styles, or a function that takes a feature and resolution and returns
an array of styles. If set to `null`, the layer has no style (a `null` style),
so only features that have their own styles will be rendered in the layer. Call
`setStyle()` without arguments to reset to the default style. See
[the ol/style/Style module]{@link module:ol/style/Style~Style} for information on the default style.

If your layer has a static style, you can use [flat style]{@link module:ol/style/flat~FlatStyle} object
literals instead of using the `Style` and symbolizer constructors (`Fill`, `Stroke`, etc.):
```js
vectorLayer.setStyle({
  "fill-color": "yellow",
  "stroke-color": "black",
  "stroke-width": 4
})
```

@param {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike|null} [style] Layer style.
@api