buildLoader method

Widget buildLoader(
  1. BuildContext context, {
  2. Color? backgroundColor,
})

Implementation

Widget buildLoader(BuildContext context, {Color? backgroundColor}) {
  backgroundColor ??= const Color(0xffa8a8a8).withOpacity(.5);
  var height = 150.0;
  return CustomScreenLoader(
    height: height,
    width: height,
    backgroundColor: backgroundColor,
  );
}