fruitBlend method

Gradient fruitBlend (
  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}
)

Fruit Blend

Implementation

static Gradient fruitBlend(
    {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.fruitBlend(
      center: center,
      radius: radius,
      tileMode: tileMode,
    );
  else if (type == GradientType.sweep)
    return FlutterSweepGradients.fruitBlend(
      center: center,
      startAngle: startAngle,
      endAngle: endAngle,
      tileMode: tileMode,
    );
  else
    return FlutterLinearGradients.fruitBlend(tileMode: tileMode);
}