VvsIconButton constructor

VvsIconButton(
  1. IconData icon, {
  2. Key? key,
  3. VoidCallback? onPressed,
  4. Color? color,
  5. double radius = 4,
  6. double? width,
  7. double? height = 40,
  8. TextStyle? textStyle,
  9. Color? foregroundColor,
  10. bool outlined = false,
  11. bool loading = false,
  12. EdgeInsetsGeometry? padding,
  13. String? tooltip,
  14. 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;
}