modalLoading<T> static method
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);
},
);
}