textBaseline method

T textBaseline(
  1. TextBaseline textBaseline
)

设置文本基线

参数:

  • textBaseline: 文本基线

返回: 应用了新文本基线的 TextSpan 对象

Implementation

T textBaseline(TextBaseline textBaseline) => this.copyWith(
      style: (style ?? const TextStyle()).copyWith(
        textBaseline: textBaseline,
      ),
    );