decodeTextHeightBehavior function

TextHeightBehavior? decodeTextHeightBehavior(
  1. dynamic data
)

Implementation

TextHeightBehavior? decodeTextHeightBehavior(dynamic data) {
  if (data == null) {
    return null;
  }

  return TextHeightBehavior(
    applyHeightToFirstAscent: data['applyHeightToFirstAscent'],
    applyHeightToLastDescent: data['applyHeightToLastDescent'],
    leadingDistribution: decodeTextLeadingDistribution(
      data['leadingDistribution'],
    )!,
  );
}