modalLoading<T> static method

Future<T>? modalLoading<T>(
  1. BuildContext context, {
  2. bool? dismis,
  3. Color? color,
})

Implementation

static Future<T>? modalLoading<T>(BuildContext context,{bool? dismis,Color? color}) {
  showDialog<void>(
    context: context,
    barrierDismissible: dismis == null ? false : dismis,
    barrierColor: Colors.black.withOpacity(0.4),
    useSafeArea: true,
    builder: (BuildContext dialogContext) {
      return Helper().loadingView(context,color ?? Config.colorPrimary ?? Colors.black);
    },
  );
}