SimpleTag constructor

SimpleTag(
  1. String name,
  2. _Output output, {
  3. bool idFirst = true,
  4. bool stringFirst = true,
})

Constructors a tag.

  • output - used to generate Dart code into the generated Dart file. You can use outText and toEL to generate the Dart code. The id argument is the first argument if it doesn't have a value. For example, with [:tag foo1 foo2="abc"], id will be foo1 and args will be a single entity map. If the first argument is specified with a value, id is null and the first argument is part of args.
  • idFirst: whether ID can be the first argument
  • stringFirst: whether string can be the first argument

Implementation

SimpleTag(this.name, this.output,
    {this.idFirst = true, this.stringFirst = true});