import 'package:equatable/equatable.dart'; class Kline extends Equatable { final DateTime time; final String open; final String high; final String low; final String close; final String volume; const Kline({ required this.time, required this.open, required this.high, required this.low, required this.close, required this.volume, }); bool get isUp => (double.tryParse(close) ?? 0) >= (double.tryParse(open) ?? 0); @override List get props => [time, open, high, low, close, volume]; }