kindSteel method

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

Kind Steel

Implementation

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