hasOption<T extends Option<Object?>> method

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