find method

  1. @override
CoapExchange? find(
  1. int? key
)
override

Finds the exchange associated with the supplied key

Implementation

@override
CoapExchange? find(final int? key) {
  if (_maps[_first].containsKey(key) || _first == _second) {
    return _maps[_first][key];
  }
  if (_maps[_second].containsKey(key)) {
    return _maps[_second][key];
  }
  return null;
}