apple static method

Widget apple({
  1. required VoidCallback onPressed,
  2. String text = 'Continue with Apple',
  3. LoginButtonStyle style = LoginButtonStyle.white,
  4. bool isLoading = false,
})

Implementation

static Widget apple({
  required VoidCallback onPressed,
  String text = 'Continue with Apple',
  LoginButtonStyle style = LoginButtonStyle.white,
  bool isLoading = false,
}) {
  String imagePath = style == LoginButtonStyle.black
      ? 'assets/images/apple_white.png'
      : 'assets/images/apple_black.png';
  return LoginButton(
    imagePath: imagePath,
    text: text,
    onPressed: onPressed,
    style: style,
    isLoading: isLoading,
  );
}