beforeTextPaste property

(bool Function(String? text)?) beforeTextPaste
final

Callback method to validate if text can be pasted. This is helpful when we need to validate text before pasting. e.g. validate if text is number. Default will be pasted as received.

Implementation

final bool Function(String? text)? beforeTextPaste;