VvsIconButton constructor
VvsIconButton(
- IconData icon, {
- Key? key,
- VoidCallback? onPressed,
- Color? color,
- double radius = 4,
- double? width,
- double? height = 40,
- TextStyle? textStyle,
- Color? foregroundColor,
- bool outlined = false,
- bool loading = false,
- EdgeInsetsGeometry? padding,
- String? tooltip,
- BorderRadiusGeometry? borderRadius,
Implementation
VvsIconButton(
IconData icon, {
Key? key,
VoidCallback? onPressed,
Color? color,
double radius = 4,
double? width,
double? height = 40,
TextStyle? textStyle,
Color? foregroundColor,
bool outlined = false,
bool loading = false,
EdgeInsetsGeometry? padding,
String? tooltip,
BorderRadiusGeometry? borderRadius,
}) : super(key: key) {
_icon = icon;
_onPressed = onPressed;
_color = color;
_width = width;
_height = height;
_foregroundColor = foregroundColor;
_outlined = outlined;
_padding = padding ?? EdgeInsets.zero;
_loading = loading;
_radius = radius;
_borderRadius = borderRadius;
_tooltip = tooltip;
}