setOption<T> method

void setOption<T>(
  1. String name,
  2. T? value
)

Sets the option with the given name to the given value

Implementation

void setOption<T>(String name, T? value) {
  if (value != null) {
    getOption<T>(name).value = value;
  }
}