build method

I18nMessage? build(
  1. I18nMetadata metadata
)

Builds an internationalized message from the nodes this has visited.

Returns null if this has not yet visited any text, as the resulting message would not need translation.

Implementation

I18nMessage? build(I18nMetadata metadata) {
  return _hasText
      ? I18nMessage(_messageBuffer.toString(), metadata, args: _args)
      : null;
}