format property

String Function(int value)? format
final

Legacy integer formatter, retained for compatibility.

It takes precedence over built-in formatting and deliberately ignores decimals. When both custom formatters are provided, formatNumber wins. Non-finite values throw ArgumentError on this integer-only path.

Implementation

final String Function(int value)? format;