build method
Builds the loading indicator widget.
Implementation
@override
Widget build(BuildContext context) {
return Center(
child: SizedBox(
width: size,
height: size,
child: CircularProgressIndicator(
strokeWidth: 2.0,
valueColor: AlwaysStoppedAnimation<Color>(
color ?? Theme.of(context).primaryColor,
),
),
),
);
}