GFBorder constructor
GFBorder({
- required Widget child,
- Color color = Colors.black,
- double strokeWidth = 1,
- GFBorderType type = GFBorderType.rect,
- List<
double> dashedLine = const <double>[3, 1], - EdgeInsets padding = const EdgeInsets.all(10),
- 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');