push method Null safety

  1. @override
Context push(
  1. Map<String, dynamic> variables,
  2. {Context? root}
)
override

Implementation

@override
Context push(Map<String, dynamic> variables, {Context? root}) {
  final context = Context._(parent: root ?? this);
  context.blocks = Map.from(blocks);
  context.tags = Map.from(tags);
  context.filters = Map.from(filters);
  context.variables = Map.from(this.variables);
  context.variables.addAll(variables);
  return context;
}