showMessage method

int showMessage(
  1. String title,
  2. String text, {
  3. int flags = 0,
  4. bool iconWarning = false,
  5. bool iconInformation = true,
  6. bool modal = false,
})

Shows a message dialog.

Implementation

int showMessage(String title, String text,
    {int flags = 0,
    bool iconWarning = false,
    bool iconInformation = true,
    bool modal = false}) {
  if (iconWarning) {
    flags |= MESSAGEBOX_STYLE.MB_ICONWARNING;
  } else if (iconInformation) {
    flags |= MESSAGEBOX_STYLE.MB_ICONINFORMATION;
  }

  return showDialog(title, text, flags: flags, modal: modal);
}