formatFlowEntry method
String
formatFlowEntry(
- String entry,
- String indentation, {
- required bool preferInline,
- required bool lastHadTrailing,
- required bool isNotFirst,
inherited
Formats a flow map/iterable entry before it is buffered.
Implementation
String formatFlowEntry(
String entry,
String indentation, {
required bool preferInline,
required bool lastHadTrailing,
required bool isNotFirst,
}) =>
'${!lastHadTrailing && isNotFirst ? ',' : ''}'
'${preferInline ? (isNotFirst ? ' ' : '') : '\n$indentation'}$entry';