skipRemainingKeys method

  1. @override
void skipRemainingKeys()
override

Skips the remaining key-value pairs in the collection.

This is useful when the Decodable implementation is not interested in the remaining key-value pairs. It must be called when nextKey is not used exhaustively.

Implementation

@override
void skipRemainingKeys() {
  while (keys.moveNext()) {
    // do nothing
  }
}