payloadTextHeightBehavior function
JsonMap
payloadTextHeightBehavior({
- bool? applyHeightToFirstAscent,
- bool? applyHeightToLastDescent,
- TextLeadingDistribution? leadingDistribution,
Sparse TextHeightBehavior payload; omits unset fields.
Implementation
JsonMap payloadTextHeightBehavior({
bool? applyHeightToFirstAscent,
bool? applyHeightToLastDescent,
TextLeadingDistribution? leadingDistribution,
}) {
return {
'applyHeightToFirstAscent': ?applyHeightToFirstAscent,
'applyHeightToLastDescent': ?applyHeightToLastDescent,
if (leadingDistribution != null)
'leadingDistribution': payloadEnum(leadingDistribution),
};
}