alert method
제목, 메시지와 확인 버튼이 있는 알림을 표시한다.
Implementation
@override
Future<void> alert({String? title, required String message}) async {
await showDialog(
context: DN.context,
builder: (context) {
return AlertDialog(
title: Text(title ?? MaterialLocalizations.of(DN.context).alertDialogLabel),
content: Text(message),
actions: [
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(MaterialLocalizations.of(context).okButtonLabel),
),
],
);
},
);
}