setOption<T> method

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

Implementation

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