spLoader function

void spLoader({
  1. required BuildContext context,
  2. required Widget loader,
})

Implementation

void spLoader({
  required BuildContext context,
  required Widget loader,
}) {
  Navigator.of(context).push(PageRouteBuilder(
    opaque: false,
    pageBuilder: (BuildContext context, _, __) => loader,
  ));
}