format method

  1. @override
String format(
  1. FluentFormatContext context
)
override

Render this value to its final string under context.

The default returns rawString. FluentNumber and FluentDateTime override it to route through context.backend, so their output is locale-aware. Custom subclasses override it to define their own rendering.

Implementation

@override
String format(FluentFormatContext context) =>
    context.backend.formatNumber(this, context);