PayMethodTile constructor
PayMethodTile({
- Key? key,
- required VoidCallback? onTap,
- required Color backgroundColor,
- IconData? icon,
- String? image,
- double? imageHeight,
- double? imageWidth,
- Color? iconColor,
- required String title,
- Widget? trailing,
- bool isSelected = false,
- Color? selectedBackgroundColor,
- Color? selectedBorderColor,
- Color? titleColor,
- double? height,
- double? borderRadius,
- bool useHostBackground = false,
Implementation
PayMethodTile({
super.key,
required this.onTap,
required this.backgroundColor,
this.icon,
this.image,
this.imageHeight,
this.imageWidth,
this.iconColor,
required this.title,
this.trailing,
this.isSelected = false,
this.selectedBackgroundColor,
this.selectedBorderColor,
this.titleColor,
this.height,
this.borderRadius,
/// When true, unselected fill uses [backgroundColor] even if checkout
/// [PayorcSdkUiConstants.accentColor] is set. Use for embedded payment rows.
this.useHostBackground = false,
});