decimalOnly constant
Pattern
const decimalOnly
Decimal Numbers Only regex (No Whitespace & Symbols)
Implementation
static const Pattern decimalOnly = r"(^\d+\.?\d*$)|^\.?\d+$";
Decimal Numbers Only regex (No Whitespace & Symbols)
static const Pattern decimalOnly = r"(^\d+\.?\d*$)|^\.?\d+$";