toScriptDart method

String toScriptDart({
  1. required String scriptName,
})

Implementation

String toScriptDart({
  required String scriptName,
}) {
  final String script_dart_generate = """
// ignore_for_file: non_constant_identifier_names

// import 'dart:io';
import 'package:general_lib/script_generate/script_generate.dart';
import 'package:universal_io/io.dart';

final List<ScriptGenerator> ${scriptName}_script_generators = [
${map((e) => e.toScriptDart()).join(",\n")}
];

""";
  return script_dart_generate;
}