stepBowSweep constant
SweepSteps
const stepBowSweep
A SweepSteps
that progresses through the rainbow.
To create a new SweepSteps
that has these colors,
consider Foils.stepBowSweep.copyWith(...)
providing desired startAngle
, endAngle
, or center
, etc.
Implementation
static const stepBowSweep = SweepSteps(
tileMode: TileMode.repeated,
startAngle: 0.0,
endAngle: math.pi * 0.5, // ΒΌ rotation + TileMode.repeated
// endAngle: math.pi * 2, // full rotation
colors: [
Colors.red,
Colors.orange,
Colors.yellow,
Colors.green,
Colors.blue,
Colors.indigo,
Colors.purple,
Colors.pink,
],
);