(title: &str, message: &str, alert_type: AlertType)
| 24 | |
| 25 | impl AlertDialog { |
| 26 | pub fn new(title: &str, message: &str, alert_type: AlertType) -> Self { |
| 27 | Self { |
| 28 | title: title.to_string(), |
| 29 | message: message.to_string(), |
| 30 | alert_type, |
| 31 | open: false, |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | pub fn info(message: &str) -> Self { |
| 36 | Self::new("Info", message, AlertType::Info) |
nothing calls this directly
no outgoing calls
no test coverage detected