build method

  1. @override
String build(
  1. Context context,
  2. ParserResult? result
)
override

Implementation

@override
String build(Context context, ParserResult? result) {
  if (tag.isEmpty) {
    throw ArgumentError.value(tag, 'tag', 'The tag must not be empty');
  }

  context.refersToStateSource = true;
  if (context.optimizeForSize) {
    return _buildForSize(context, result);
  } else {
    return _buildForSpeed(context, result);
  }
}