noStyleBuilder function

TextStyle noStyleBuilder(
  1. Set<Attribution> attributions
)

AttributionStyleBuilder that returns a default TextStyle, for use when creating baseline view models before the text styles are configured.

Implementation

TextStyle noStyleBuilder(Set<Attribution> attributions) {
  return const TextStyle(
    // Even though this a "no style" builder, we supply a font size
    // and line height because there are a number of places in the editor
    // where these details are needed for layout calculations.
    fontSize: 16,
    height: 1.0,
  );
}