success method

Future<void> success(
  1. BuildContext context,
  2. String title, {
  3. String? message,
})

Implementation

Future<void> success(BuildContext context, String title,
    {String? message}) async {
  if (message == null) {
    message = 'Operação realizada com sucesso!';
  }

  return showDialog<void>(
    context: context,
    barrierDismissible: false,
    builder: (BuildContext ctx) {
      return OmegaSuccessDialogWidget(
        title: title,
        description: message,
        textColor: OmegaLibConfig.dialogFieldStyle.textColor,
        bgColor: OmegaLibConfig.dialogFieldStyle.bgColor,
      );
    },
  );
}