SignalStrengthIndicator.sector constructor

SignalStrengthIndicator.sector({
  1. Key? key,
  2. required num value,
  3. required double size,
  4. int barCount = 3,
  5. num? minValue,
  6. num? maxValue,
  7. Color? activeColor,
  8. Color? inactiveColor,
  9. Map<num, Color>? levels,
  10. bool rounded = false,
  11. double spacing = 0.3,
  12. EdgeInsets margin = EdgeInsets.zero,
})

Creates signal strength indicator with sectors.

You have to provide value which should be in range from minValue to maxValue (default 0.0 to 1.0).

Number of bars (segments) can be specified by barCount (reasonable number of bars is 3,4 or maybe 5).

To specify how the indicator should behave, use levels - see SignalStrengthIndicator.bars

Implementation

SignalStrengthIndicator.sector({
  Key? key,
  required num value,
  required double size,
  int barCount = 3,
  num? minValue,
  num? maxValue,
  Color? activeColor,
  Color? inactiveColor,
  Map<num, Color>? levels,
  bool rounded = false,
  double spacing = 0.3,
  EdgeInsets margin = EdgeInsets.zero,
}) : this(
        key: key,
        style: SectorSignalStrengthIndicatorStyle(
          value: value,
          minValue: minValue,
          maxValue: maxValue,
          barCount: barCount,
          activeColor: activeColor,
          inactiveColor: inactiveColor,
          levels: levels,
          size: size,
          rounded: rounded,
          spacing: spacing,
          margin: margin,
        ),
      );