textElevation method
      
T
textElevation(})
      
     
    
    
Implementation
T textElevation(
  double elevation, {
  double angle = 0.0,
  Color color = const Color(0x33000000),
  double opacityRatio = 1.0,
}) {
  double calculatedOpacity = _elevationOpacityCurve(elevation) * opacityRatio;
  Shadow shadow = Shadow(
    color: color.withOpacity(calculatedOpacity),
    blurRadius: elevation,
    offset: Offset(sin(angle) * elevation, cos(angle) * elevation),
  );
  return this.copyWith(
    style: (this.style ?? TextStyle()).copyWith(
      shadows: [
        shadow,
      ],
    ),
  );
}