AssertableMapExtensions extension
Extension on Map<int, List<String>> that provides a human-readable serialization for use in test assertions.
final map = {4: ['BCBA', 'BDAB']};
print(map.assertable()); // "4: BCBA,BDAB;\n"
Each entry is formatted as key: sorted,values; on its own line.
Methods
-
assertable(
) → String -
Available on Map<
Returns a deterministic, human-readable string representation of this map.int, List< , provided by the AssertableMapExtensions extensionString> >