fontFamily method

Text fontFamily(
  1. String family
)

字体 配置中先注册family

config text fontFamily

Implementation

Text fontFamily(String family) {
  var newStyle = TextStyle(fontFamily: family);
  return copyWith(style: style?.merge(newStyle) ?? newStyle);
}