TextHeightBehavior constructor Null safety

const TextHeightBehavior(
  1. {@Default(true) bool applyHeightToFirstAscent,
  2. @Default(true) bool applyHeightToLastDescent,
  3. @Default(TextLeadingDistribution.proportional) TextLeadingDistribution leadingDistribution}
)

Implementation

const factory TextHeightBehavior({
  @Default(true) bool applyHeightToFirstAscent,
  @Default(true) bool applyHeightToLastDescent,
  @Default(TextLeadingDistribution.proportional)
      TextLeadingDistribution leadingDistribution,
}) = _TextHeightBehavior;