StacSweepGradient top-level constant

StacGradient Function({StacAlignment? center, required List<StacColor>? colors, double? endAngle, double? startAngle, List<double>? stops, StacTileMode? tileMode}) const StacSweepGradient

A sweep gradient that transitions colors in a circular sweep around a center point.

This is a convenience constructor for StacGradient.sweep for a more Flutter-like API. Colors transition in a circular sweep around the center point.

Example:

StacSweepGradient(
  colors: [StacColors.blue, StacColors.red],
  center: StacAlignment.center,
  startAngle: 0.0,
  endAngle: 3.14159,
  stops: [0.0, 1.0],
)

Implementation

// ignore: constant_identifier_names
const StacSweepGradient = StacGradient.sweep;