RadialGradientDef constructor

const RadialGradientDef({
  1. Key? key,
  2. required String id,
  3. required List<GradientStop> stops,
  4. Alignment center = Alignment.center,
  5. double radius = 0.5,
  6. Alignment? focal,
  7. double focalRadius = 0.0,
  8. TileMode tileMode = TileMode.clamp,
  9. GradientTransform? transform,
  10. Widget? child,
})

Creates a radial gradient definition.

Implementation

const RadialGradientDef({
  super.key,
  required this.id,
  required this.stops,
  this.center = Alignment.center,
  this.radius = 0.5,
  this.focal,
  this.focalRadius = 0.0,
  this.tileMode = TileMode.clamp,
  this.transform,
  this.child,
});