loading method

Future<void> loading(
  1. BuildContext context,
  2. String title,
  3. String message,
  4. Function funcBackground,
)

Implementation

Future<void> loading(
  BuildContext context,
  String title,
  String message,
  Function funcBackground,
) async {
  return showDialog<void>(
    context: context,
    barrierDismissible: false,
    builder: (BuildContext ctx) {
      return OmegaLoadingDialogWidget(
        funcBackground,
        title: title,
        description: message,
        textColor: Colors.black,
        bgColor: Colors.white,
      );
    },
  );
}