springWarmth method

Gradient springWarmth (
  1. {GradientType type = GradientType.linear,
  2. AlignmentGeometry center = Alignment.center,
  3. double radius = 0.5,
  4. double startAngle = 0.0,
  5. double endAngle = math.pi * 2,
  6. TileMode tileMode = TileMode.repeated}
)

Spring Warmth

Implementation

static Gradient springWarmth(
    {GradientType type = GradientType.linear,
    AlignmentGeometry center = Alignment.center,
    double radius = 0.5,
    double startAngle = 0.0,
    double endAngle = math.pi * 2,
    TileMode tileMode = TileMode.repeated}) {
  if (type == GradientType.radial)
    return FlutterRadialGradients.springWarmth(
      center: center,
      radius: radius,
      tileMode: tileMode,
    );
  else if (type == GradientType.sweep)
    return FlutterSweepGradients.springWarmth(
      center: center,
      startAngle: startAngle,
      endAngle: endAngle,
      tileMode: tileMode,
    );
  else
    return FlutterLinearGradients.springWarmth(tileMode: tileMode);
}