findByName method

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

Implementation

static Gradient findByName(FlutterGradientNames name,
        {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}) =>
    _find(names[name.index],
        type: type,
        center: center,
        radius: radius,
        startAngle: startAngle,
        endAngle: endAngle,
        tileMode: tileMode);