toWidget method
Implementation
@override
ProgressIndicator toWidget(AnyWidgetContext context) {
return map(
linear: (value) => LinearProgressIndicator(
key: value.key?.toFlutter(context),
value: value.value,
backgroundColor: value.backgroundColor?.toFlutter(context),
color: value.color?.toFlutter(context),
minHeight: value.minHeight,
semanticsLabel: value.semanticsLabel,
semanticsValue: value.semanticsValue,
),
circular: (value) => CircularProgressIndicator(
key: value.key?.toFlutter(context),
value: value.value,
backgroundColor: value.backgroundColor?.toFlutter(context),
color: value.color?.toFlutter(context),
strokeWidth: value.strokeWidth ?? 4.0,
semanticsLabel: value.semanticsLabel,
semanticsValue: value.semanticsValue,
),
);
}