byDirection property

bool get byDirection

A candle, or a bar with open and close, is colored by its direction.

Implementation

bool get byDirection => open.isNotEmpty && close.isNotEmpty;