success method
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,
);
},
);
}