DartBlockProgram constructor

DartBlockProgram(
  1. DartBlockTypedLanguage mainLanguage,
  2. DartBlockFunction mainFunction,
  3. List<DartBlockFunction> customFunctions,
  4. int version,
)

Helper constructor, used internally for serialization. Do not use this constructor, instead opt for the .init() named constructor.

DartBlock relies on automatically generated JSON serialization functions, based on the json_serializable package. The latter expects a non-named constructor for its generation.

Implementation

DartBlockProgram(
  this.mainLanguage,
  this.mainFunction,
  this.customFunctions,
  this.version,
);