removeOption method

bool removeOption(
  1. CoapOption option
)
inherited

Remove a specific option, returns true if the option has been removed.

Implementation

bool removeOption(final CoapOption option) {
  var ret = false;
  final options = getOptions(option.type);
  if (options == null) {
    return ret;
  }
  ret = options.remove(option);
  if (ret) {
    setOptions(options);
  }
  return ret;
}