updateIndicatorConfig method

  1. @override
BollingerBandsIndicatorConfig updateIndicatorConfig()
override

Updates the current widget.config with the latest values set in menus options and returns the updated config.

Implementation

@override
BollingerBandsIndicatorConfig updateIndicatorConfig() =>
    (widget.config as BollingerBandsIndicatorConfig).copyWith(
      period: getCurrentPeriod(),
      movingAverageType: getCurrentType(),
      standardDeviation: _getCurrentStandardDeviation(),
      fieldType: getCurrentField(),
    );