BorderButton constructor
const
BorderButton({
- Key? key,
- Color? borderColor,
- required Widget child,
- double? borderRadius,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- dynamic onPressed()?,
Implementation
const BorderButton({
super.key,
/// The Background color for button is not specified
/// then theme's primary color will be used.
this.borderColor,
required this.child,
/// Border radius for the button.
this.borderRadius,
/// padding for the child of the button.
this.padding,
/// margin of the button.
this.margin,
/// function that will be triggered on button press.
this.onPressed,
});