ArcaneGradientText.custom constructor

const ArcaneGradientText.custom({
  1. required String content,
  2. required List<GradientStop> stops,
  3. String? gradientAngle = '135deg',
  4. String fontSize = 'inherit',
  5. String fontWeight = 'inherit',
  6. Key? key,
})

Creates gradient text with custom color stops for precise control.

ArcaneGradientText.custom(
  content: 'Hello',
  stops: [
    GradientStop.fromArcane(ArcaneColor.accent, 0.0),
    GradientStop.fromArcane(ArcaneColor.primary, 0.5),
    GradientStop.hex('#FF0000', 1.0),
  ],
)

Implementation

const ArcaneGradientText.custom({
  required this.content,
  required List<GradientStop> stops,
  this.gradientAngle = '135deg',
  this.fontSize = 'inherit',
  this.fontWeight = 'inherit',
  super.key,
})  : colorStops = stops,
      gradient = null,
      gradientStart = null,
      gradientEnd = null;