formatIndicator method

String formatIndicator(
  1. double value,
  2. IndicatorType type, {
  3. int? period,
})

Implementation

String formatIndicator(double value, IndicatorType type, {int? period}) {
  return indicatorFormatter?.call(value, type, period) ??
      value.toStringAsFixed(2);
}