styleFrom static method

ButtonStyle styleFrom({
  1. Color? foregroundColor,
  2. Color? backgroundColor,
  3. Color? disabledForegroundColor,
  4. Color? disabledBackgroundColor,
  5. Color? focusColor,
  6. Color? hoverColor,
  7. Color? highlightColor,
  8. Color? shadowColor,
  9. Color? surfaceTintColor,
  10. Color? overlayColor,
  11. double? elevation,
  12. Size? minimumSize,
  13. Size? fixedSize,
  14. Size? maximumSize,
  15. double? iconSize,
  16. BorderSide? side,
  17. OutlinedBorder? shape,
  18. EdgeInsetsGeometry? padding,
  19. Duration? animationDuration,
})

Implementation

static ButtonStyle styleFrom({
  Color? foregroundColor,
  Color? backgroundColor,
  Color? disabledForegroundColor,
  Color? disabledBackgroundColor,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  Color? shadowColor,
  Color? surfaceTintColor,
  Color? overlayColor,
  double? elevation,
  Size? minimumSize,
  Size? fixedSize,
  Size? maximumSize,
  double? iconSize,
  BorderSide? side,
  OutlinedBorder? shape,
  EdgeInsetsGeometry? padding,
  Duration? animationDuration,
}) {
  return material.IconButton.styleFrom(
    foregroundColor: foregroundColor,
    backgroundColor: backgroundColor,
    disabledForegroundColor: disabledForegroundColor,
    disabledBackgroundColor: disabledBackgroundColor,
    focusColor: focusColor,
    hoverColor: hoverColor,
    highlightColor: highlightColor,
    shadowColor: shadowColor,
    surfaceTintColor: surfaceTintColor,
    overlayColor: overlayColor,
    elevation: elevation,
    minimumSize: minimumSize,
    fixedSize: fixedSize,
    maximumSize: maximumSize,
    iconSize: iconSize,
    side: side,
    shape: shape,
    padding: padding,
    animationDuration: animationDuration,
  );
}