Template.fromNode constructor

  1. @internal
Template.fromNode(
  1. Environment environment, {
  2. String? path,
  3. Map<String, Object?> globals = const <String, Object?>{},
  4. required Node body,
})

This is used internally by the Environment.fromString to create templates from parsed sources.

Implementation

@internal
Template.fromNode(
  this.environment, {
  this.path,
  this.globals = const <String, Object?>{},
  required this.body,
});