FTextFieldCounterBuilder typedef

FTextFieldCounterBuilder = Widget? Function(BuildContext context, int currentLength, int? maxLength, bool focused)

A callback for building a custom counter for a text field.

currentLength is the length of the text field's input. maxLength is the maximum length of the text field's input. focused is whether the text field is currently focused.

See FTextField.counterBuilder.

Implementation

typedef FTextFieldCounterBuilder = Widget? Function(
  BuildContext context,
  int currentLength,
  int? maxLength,
  bool focused,
);