createMaterialWidget method

  1. @override
CircularProgressIndicator createMaterialWidget(
  1. BuildContext context
)
override

Implementation

@override
CircularProgressIndicator createMaterialWidget(BuildContext context) {
  final data = material?.call(context, platform(context));

  return CircularProgressIndicator(
    key: data?.key ?? widgetKey,
    backgroundColor: data?.backgroundColor,
    strokeWidth: data?.strokeWidth ?? 4.0,
    value: data?.value,
    valueColor: data?.valueColor,
    semanticsLabel: data?.semanticsLabel,
    semanticsValue: data?.semanticsValue,
    color: data?.color,
    strokeAlign:
        data?.strokeAlign ?? CircularProgressIndicator.strokeAlignCenter,
    strokeCap: data?.strokeCap,
  );
}