setOptions method
Sets all options with the specified option type, removing all others of the same type.
Implementation
void setOptions(final Iterable<Option<Object?>> options) {
for (final option in options) {
_options.removeWhere((final element) => element.type == option.type);
}
addOptions(options);
}