hasOption method

bool hasOption(
  1. OptionType type
)
inherited

Checks if this CoAP message has options of the specified option type. Returns true if options of the specified type exists.

Implementation

bool hasOption(final OptionType type) => getFirstOption(type) != null;