getTextStyle method

  1. @override
TextStyle getTextStyle({
  1. @Deprecated('Use textScaler instead. ' 'Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support. ' 'This feature was deprecated after v3.12.0-2.0.pre.') double textScaleFactor = 1.0,
  2. TextScaler textScaler = TextScaler.noScaling,
})
override

The style information for text runs, encoded for use by dart:ui.

Implementation

@override
ui.TextStyle getTextStyle({
  @Deprecated(
    'Use textScaler instead. '
    'Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support. '
    'This feature was deprecated after v3.12.0-2.0.pre.',
  )
  double textScaleFactor = 1.0,
  TextScaler textScaler = TextScaler.noScaling,
}) =>
    textStyle.getTextStyle(
      // ignore: deprecated_member_use
      textScaleFactor: textScaleFactor,
      textScaler: textScaler,
    );