end method

  1. @override
void end(
  1. TagContext tc
)
override

Called when the ending of a tag is encountered.

Implementation

@override
void end(TagContext tc) {
  final var2 = tc.pop() as String, var1 = tc.pop() as String;
  tc.writeln("\n${tc.pre}connect = $var2; response = connect.response;");
  if (tc.parent?.args == null) {
    tc.writeln("${tc.pre}final $var1 = _${var1}_.toString();");
  }
}