getMarkerColor function
Returns the appropriate color of the marker based on its running state and profit/loss status.
Implementation
Color getMarkerColor(MarkerProps props, MarkerStyle style) {
if (props.isRunning) {
return style.lineDefaultColor;
}
return props.isProfit ? style.lineProfitColor : style.lineLossColor;
}