hasOption<T extends Option<Object?> > 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<T extends Option<Object?>>() => getFirstOption<T>() != null;