hasOption method
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;
Checks if this CoAP message has options of the specified option type. Returns true if options of the specified type exists.
bool hasOption(final OptionType type) => getFirstOption(type) != null;