INNER CODE UNIT · Dart

GradientConfig

fluttercandies/extended_text · lib/src/extended/gradient/gradient_config.dart:16

class GradientConfig {
  /// Creates an instance of [GradientConfig].
  ///
  /// [gradient] is the gradient that will be applied to the text.
  ///
  /// [ignoreWidgetSpan] determines whether `WidgetSpan` elements should be
  /// included in the gradient application. By default, widget spans are ignored.
  ///
  /// [renderMode] specifies how the gradient should be applied to the text. The default
  /// is [GradientRenderMode.fullText], meaning the gradient will apply to the entire text.
  ///
  /// [ignoreRegex] is a regular expression used to exclude certain parts of the text
  /// from the gradient effect. For example, it can be used to exclude specific characters
  /// or words (like emojis or special symbols) from the gradient application.
  ///
  /// [beforeDrawGradient] A callback function that is called before the gradient is drawn on the text.

  /// [blendMode] The blend mode to be used when applying the gradient.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…