dumpMapLike<T> method
Dumps an object as a Map.
The tag and anchor are included with the object after the expand
has been called.
Implementation
DumpedCollection dumpMapLike<T>(
T object, {
required Map<Object?, Object?> Function(T object) expand,
required int indent,
ResolvedTag? tag,
String? anchor,
List<String> comments = const [],
}) => dump(
dumpableType(expand(object))
..tag = tag
..anchor = anchor
..comments.addAll(comments),
indent,
);