GFBorder constructor

GFBorder({
  1. required Widget child,
  2. Color color = Colors.black,
  3. double strokeWidth = 1,
  4. GFBorderType type = GFBorderType.rect,
  5. List<double> dashedLine = const <double>[3, 1],
  6. EdgeInsets padding = const EdgeInsets.all(10),
  7. Radius radius = const Radius.circular(0),
})

Create different types of borders around given child widget

Implementation

GFBorder({
  required this.child,
  this.color = Colors.black,
  this.strokeWidth = 1,
  this.type = GFBorderType.rect,
  this.dashedLine = const <double>[3, 1],
  this.padding = const EdgeInsets.all(10),
  this.radius = const Radius.circular(0),
  // this.customPath,
}) : assert(_isValidDashedLine(dashedLine), 'Invalid dash pattern');