WSTicker constructor

const WSTicker({
  1. required String code,
  2. required double opening_price,
  3. required double high_price,
  4. required double low_price,
  5. required double trade_price,
  6. required double prev_closing_price,
  7. required Change change,
  8. required double change_price,
  9. required double signed_change_price,
  10. required double change_rate,
  11. required double signed_change_rate,
  12. required double trade_volume,
  13. required double acc_trade_volume,
  14. required double acc_trade_volume_24h,
  15. required double acc_trade_price,
  16. required double acc_trade_price_24h,
  17. required String trade_date,
  18. required String trade_time,
  19. required int trade_timestamp,
  20. required AskBid ask_bid,
  21. required double acc_ask_volume,
  22. required double acc_bid_volume,
  23. required double highest_52_week_price,
  24. required String highest_52_week_date,
  25. required double lowest_52_week_price,
  26. required String lowest_52_week_date,
  27. required MarketState market_state,
  28. required bool is_trading_suspended,
  29. DateTime? delisting_date,
  30. required MarketWarning market_warning,
  31. required int timestamp,
  32. required StreamType stream_type,
})

Implementation

const WSTicker({
  required String code,
  required this.opening_price,
  required this.high_price,
  required this.low_price,
  required this.trade_price,
  required this.prev_closing_price,
  required this.change,
  required this.change_price,
  required this.signed_change_price,
  required this.change_rate,
  required this.signed_change_rate,
  required this.trade_volume,
  required this.acc_trade_volume,
  required this.acc_trade_volume_24h,
  required this.acc_trade_price,
  required this.acc_trade_price_24h,
  required this.trade_date,
  required this.trade_time,
  required this.trade_timestamp,
  required this.ask_bid,
  required this.acc_ask_volume,
  required this.acc_bid_volume,
  required this.highest_52_week_price,
  required this.highest_52_week_date,
  required this.lowest_52_week_price,
  required this.lowest_52_week_date,
  required this.market_state,
  required this.is_trading_suspended,
  this.delisting_date,
  required this.market_warning,
  required this.timestamp,
  required this.stream_type,
}): super(type: Type.TICKER, code: code);