dialog.modal library Null safety

Functions