alert static method

Future<void> alert(
  1. BuildContext context,
  2. String message, {
  3. String title = '提示',
})

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),
      ),
    ],
  );
}