alert static method
Implementation
static Future<void> alert(
BuildContext context,
String message, {
String title = '提示',
}) {
return show(
context,
type: NZDialogType.basic,
title: title,
message: message,
actions: [
NZDialogAction(
label: '我知道了',
isPrimary: true,
onPressed: () => Navigator.pop(context),
),
],
);
}