FTextFieldCounterBuilder typedef

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

The FTextField.counterBuilder callback.

currentLength represents the length of the textfield's input. maxLength represents the maximum length of the textfield's input. focused represents whether the textfield is currently focused.

Implementation

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