make method

  1. @override
SelectableText make({
  1. Key? key,
})

Implementation

@override
SelectableText make({Key? key}) {
  final ts = TextStyle(
    color: velocityColor,
    fontSize: _fontSize,
    fontStyle: _fontStyle,
    fontFamily: _fontFamily,
    fontWeight: _fontWeight,
    letterSpacing: _letterSpacing,
    decoration: _decoration,
    height: _lineHeight,
    textBaseline: _textBaseline ?? TextBaseline.alphabetic,
    wordSpacing: _wordSpacing,
  );
  return SelectableText(
    _text!,
    key: key,
    textAlign: _textAlign,
    maxLines: _maxLines,
    onTap: _onTap as void Function()?,
    enableInteractiveSelection: true,
    showCursor: _showCursor ?? false,
    textScaleFactor: _scaleFactor,
    style: _themedStyle?.merge(ts) ?? _textStyle?.merge(ts) ?? ts,
    strutStyle: _strutStyle,
    contextMenuBuilder: _contextMenuBuilder,
  );
}