formatMessageAsSpans method

List<FluentSpan> formatMessageAsSpans(
  1. String id, {
  2. String? attribute,
  3. Map<String, Object?> args = const {},
  4. List<FluentError>? errors,
})

Format id and parse its inline markup into a span tree — FluentBundle's formatMessageAsSpans, through the fallback chain.

Implementation

List<FluentSpan> formatMessageAsSpans(
  String id, {
  String? attribute,
  Map<String, Object?> args = const {},
  List<FluentError>? errors,
}) => bundle.formatMessageAsSpans(
  id,
  attribute: attribute,
  args: args,
  errors: errors,
);