GradientBorderContainer constructor

GradientBorderContainer({
  1. Key? key,
  2. required Widget child,
  3. double strokeWidth = 1,
  4. required Gradient gradient,
  5. double borderRadius = 0,
})

Implementation

GradientBorderContainer({
  Key? key,

  /// The child to draw the border around.
  required this.child,

  /// The width of the border.
  this.strokeWidth = 1,

  /// The gradient to use when drawing the border.
  required this.gradient,

  /// The border radius.
  this.borderRadius = 0,
}) : super(key: key);