SignalStrengthIndicator.sector constructor
SignalStrengthIndicator.sector({})
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,
),
);