generateMainImportFile method

String generateMainImportFile({
  1. bool flutter = false,
})

This section generates the messages_all.dart file.

Implementation

String generateMainImportFile({bool flutter = false}) {
  clearOutput();
  output.write(mainPrologue);
  if (flutter) {
    output.write("export '${generatedFilePrefix}messages_flutter.dart'\n"
        "  if (dart.library.js) '${generatedFilePrefix}messages_all_locales.dart'\n"
        '  show initializeMessages;\n\n');
  } else {
    output.write("export '${generatedFilePrefix}messages_all_locales.dart'\n"
        '  show initializeMessages;\n\n');
  }
  output.write(closing);
  return output.toString();
}