getPreamble function

String getPreamble({
  1. bool minified = false,
  2. List<String> additionalGlobals = const [],
})

Returns the text of the preamble.

If minified is true, returns the minified version rather than the human-readable version.

Implementation

String getPreamble({bool minified: false, List<String> additionalGlobals: const []}) =>
    (minified ? _minified : _normal) +
    (additionalGlobals.map((global) => "self.$global=$global;").join());