warning method

Future<void> warning(
  1. BuildContext context,
  2. String message
)

Implementation

Future<void> warning(BuildContext context, String message) async {
  return showDialog<void>(
    context: context,
    barrierDismissible: false,
    builder: (BuildContext ctx) {
      return OmegaWarningDialogWidget(
        description: message,
        textColor: OmegaLibConfig.dialogFieldStyle.textColor,
        bgColor: OmegaLibConfig.dialogFieldStyle.bgColor,
      );
    },
  );
}