outlined method

TextStyle outlined({
  1. Color strokeColor = Colors.black,
  2. double strokeWidth = 1.0,
})

Applies an outlined text style.

Implementation

TextStyle outlined({
  Color strokeColor = Colors.black,
  double strokeWidth = 1.0,
}) {
  return copyWith(
    foreground: Paint()
      ..style = PaintingStyle.stroke
      ..strokeWidth = strokeWidth
      ..color = strokeColor,
  );
}