PayMethodTile constructor

PayMethodTile({
  1. Key? key,
  2. required VoidCallback? onTap,
  3. required Color backgroundColor,
  4. IconData? icon,
  5. String? image,
  6. double? imageHeight,
  7. double? imageWidth,
  8. Color? iconColor,
  9. required String title,
  10. Widget? trailing,
  11. bool isSelected = false,
  12. Color? selectedBackgroundColor,
  13. Color? selectedBorderColor,
  14. Color? titleColor,
  15. double? height,
  16. double? borderRadius,
  17. 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,
});