toSelectableText method

SelectableText toSelectableText({
  1. TextStyle? style,
  2. double? fontSize,
  3. String? fontFamily,
  4. FontWeight? fontWeight,
  5. TextAlign? textAlign,
  6. Color? color,
  7. TextDecoration? textDecoration,
})

Implementation

SelectableText toSelectableText({
  TextStyle? style,
  double? fontSize,
  String? fontFamily,
  FontWeight? fontWeight,
  TextAlign? textAlign,
  Color? color,
  TextDecoration? textDecoration,
}) {
  return SelectableText(
    this,
    textAlign: textAlign,
    style: style ??
        TextStyle(
          fontSize: fontSize,
          fontFamily: fontFamily,
          fontWeight: fontWeight,
          color: color,
          decoration: textDecoration,
        ),
  );
}