FloatingActionButton.extended constructor

FloatingActionButton.extended({
  1. required dynamic onPressed(),
  2. Icon? icon,
  3. Color? hoverColor,
  4. Color? backgroudColor,
  5. int size = 56,
  6. int? height,
  7. int? width,
})

Implementation

factory FloatingActionButton.extended({
  required Function() onPressed,
  Icon? icon,
  Color? hoverColor,
  Color? backgroudColor,
  int size = 56,
  int? height,
  int? width,
}) {
  return FloatingActionButton(
    onPressed: onPressed,
    backgroudColor: backgroudColor,
    curve: 20,
    hoverColor: hoverColor,
    size: size,
    height: height ?? 56,
    width: width ?? 70,
  );
}