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. List<BoxShadow>? shadow,
  11. BoxBorder? border,
  12. Widget? leading,
  13. TextStyle? titleStyle,
  14. TextStyle? subtitleStyle,
  15. TextStyle? amountStyle,
  16. Color? gainColor,
  17. Color? lossColor,
  18. IconData? watchedIcon,
  19. IconData? unwatchedIcon,
  20. Color? watchedColor,
  21. String removeFromWatchlistLabel = 'Remove from watchlist',
  22. 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.shadow,
  this.border,
  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',
});