OnlyNumbers constructor

const OnlyNumbers()

Validator that checks if a value contains only numeric characters. Works on String fields.

Implementation

const OnlyNumbers() : super(r'^[0-9]+$');