image static method

Future<void> image(
  1. BuildContext context,
  2. String imageUrl, {
  3. String? title,
  4. String? message,
})

Implementation

static Future<void> image(
  BuildContext context,
  String imageUrl, {
  String? title,
  String? message,
}) {
  return show(
    context,
    type: NZDialogType.image,
    title: title,
    message: message,
    imagePath: imageUrl,
    actions: [
      NZDialogAction(
        label: '关闭',
        isPrimary: true,
        onPressed: () => Navigator.pop(context),
      ),
    ],
  );
}