PinterestButton constructor Null safety

const PinterestButton(
  1. {Key? key,
  2. required Function onPressed,
  3. Color? buttonColor,
  4. Color? iconColor,
  5. double? iconSize,
  6. bool? isMinSize}
)

Implementation

const PinterestButton(
    {Key? key,
    required this.onPressed,
    this.buttonColor,
    this.iconColor,
    this.iconSize,
    this.isMinSize})
    : super(key: key);