escapeDialogTitle method

String escapeDialogTitle(
  1. String dialogTitle
)

Implementation

String escapeDialogTitle(String dialogTitle) => dialogTitle
    .replaceAll('\\', '\\\\')
    .replaceAll('"', '\\"')
    .replaceAll('\n', '\\\n');