allowNegatives property

bool allowNegatives
final

Whether the validator allows negative numbers.

If set to true, the validator will accept strings representing negative numbers (prefixed with a '-'). Defaults to true.

Implementation

final bool allowNegatives;