| 1 | import 'package:cake_wallet/generated/i18n.dart'; |
| 2 | import 'package:cake_wallet/core/validator.dart'; |
| 3 | |
| 4 | class NodePortValidator extends TextValidator { |
| 5 | NodePortValidator() |
| 6 | : super( |
| 7 | errorMessage: S.current.error_text_node_port, |
| 8 | minLength: 0, |
| 9 | maxLength: 5, |
| 10 | pattern: '^[0-9]', |
| 11 | isAutovalidate: true, |
| 12 | ); |
| 13 | } |