LabelFormatterCallback typedef

LabelFormatterCallback = String Function(dynamic actualValue, String formattedText)

Signature for formatting or changing the whole numeric or date label text.

Implementation

typedef LabelFormatterCallback =
    String Function(
      /// actualValue will be either [DateTime] or [double]
      /// based on given [values].
      dynamic actualValue,

      /// If the actual value is [double], it is formatted by [numberFormat] and
      /// if the actual value is [DateTime], it is formatted by [dateFormat].
      String formattedText,
    );