StableMatchingPrefs typedef

StableMatchingPrefs = ({Map<String, List<String>> acceptors, Map<String, List<String>> proposers})

Preference data for one stable-matching problem: each side maps a member to its strict ranking (index 0 = most preferred) of the other side.

Grouping both maps in a record keeps stableMatching to a single argument and makes the proposer/acceptor pairing explicit at the call site, avoiding two loose positional maps that are easy to transpose.

Example:

const prefs = StableMatchingPrefs(
  proposers: {'a': ['x', 'y']},
  acceptors: {'x': ['a'], 'y': ['a']},
);

Implementation

typedef StableMatchingPrefs = ({
  Map<String, List<String>> proposers,
  Map<String, List<String>> acceptors,
});