build method
Describes the part of the UI represented by this widget.
Implementation
@override
Widget build(BuildContext context) {
if (value == null) {
return SpinnerIndicator(
frames: _spinnerFrames,
interval: interval,
active: active,
color: color,
);
}
final theme = ThemeScope.of(context);
final clamped = value!.clamp(0.0, 1.0);
final index = (clamped * (_determinateGlyphs.length - 1)).round();
final style = _copyStyle(Style())..foreground(color ?? theme.primary);
return Text(_determinateGlyphs[index], style: style);
}