CustomActionButton.raised constructor

CustomActionButton.raised({
  1. required void onPressed()?,
  2. required Widget child,
  3. Color? backgroundColor,
  4. Color? borderColor,
  5. double borderRadius = 10.0,
  6. double elevation = 6.0,
  7. double? width,
  8. double? height,
  9. EdgeInsetsGeometry? margin,
})

Implementation

factory CustomActionButton.raised({
  required void Function()? onPressed,
  required Widget child,
  Color? backgroundColor,
  Color? borderColor,
  double borderRadius = 10.0,
  double elevation = 6.0,
  double? width,
  double? height,
  EdgeInsetsGeometry? margin,
}) {
  return CustomActionButton(
    onPressed: onPressed,
    backgroundColor: backgroundColor,
    elevation: elevation,
    splashFactory: NoSplash.splashFactory,
    splashColor: Colors.transparent,
    borderColor: borderColor,
    borderRadius: borderRadius,
    width: width,
    height: height,
    margin: margin,
    child: child,
  );
}