BankWatchlistCard constructor

const BankWatchlistCard({
  1. required AssetQuote quote,
  2. Key? key,
  3. bool isWatched = true,
  4. VoidCallback? onToggleWatch,
  5. VoidCallback? onTap,
  6. EdgeInsetsGeometry? padding,
  7. BorderRadius? radius,
  8. Color? backgroundColor,
  9. double? elevation,
  10. Widget? leading,
  11. TextStyle? titleStyle,
  12. TextStyle? subtitleStyle,
  13. TextStyle? amountStyle,
  14. Color? gainColor,
  15. Color? lossColor,
  16. IconData? watchedIcon,
  17. IconData? unwatchedIcon,
  18. Color? watchedColor,
  19. String removeFromWatchlistLabel = 'Remove from watchlist',
  20. String addToWatchlistLabel = 'Add to watchlist',
})

Implementation

const BankWatchlistCard({
  required this.quote,
  super.key,
  this.isWatched = true,
  this.onToggleWatch,
  this.onTap,
  this.padding,
  this.radius,
  this.backgroundColor,
  this.elevation,
  this.leading,
  this.titleStyle,
  this.subtitleStyle,
  this.amountStyle,
  this.gainColor,
  this.lossColor,
  this.watchedIcon,
  this.unwatchedIcon,
  this.watchedColor,
  this.removeFromWatchlistLabel = 'Remove from watchlist',
  this.addToWatchlistLabel = 'Add to watchlist',
});