FlutterStrutStyle.fromTextStyle constructor

  1. @FreezedUnionValue.new('flutter:StrutStyle.fromTextStyle')
FlutterStrutStyle.fromTextStyle(
  1. FlutterTextStyle textStyle, {
  2. String? fontFamily,
  3. List<String>? fontFamilyFallback,
  4. double? fontSize,
  5. double? height,
  6. FlutterTextLeadingDistribution? leadingDistribution,
  7. double? leading,
  8. FlutterFontWeight? fontWeight,
  9. FlutterFontStyle? fontStyle,
  10. bool? forceStrutHeight,
  11. String? debugLabel,
  12. String? package,
})

Implementation

@FreezedUnionValue('flutter:StrutStyle.fromTextStyle')
factory FlutterStrutStyle.fromTextStyle(
  FlutterTextStyle textStyle, {
  String? fontFamily,
  List<String>? fontFamilyFallback,
  double? fontSize,
  double? height,
  FlutterTextLeadingDistribution? leadingDistribution,
  double? leading,
  FlutterFontWeight? fontWeight,
  FlutterFontStyle? fontStyle,
  bool? forceStrutHeight,
  String? debugLabel,
  String? package,
}) = _FlutterStrutStyleFromTextStyle;