error static method
Implementation
static Future<void> error(
BuildContext context,
String message, {
String title = '出错了',
}) {
return show(
context,
type: NZDialogType.error,
title: title,
message: message,
icon: Icons.error_rounded,
iconColor: Colors.red,
actions: [
NZDialogAction(
label: '返回',
isPrimary: true,
onPressed: () => Navigator.pop(context),
),
],
);
}