DigitString class
A string that only contains decimal (0-9)digits.
Does not handle fingers, thumbs or toes.
Constructors
- DigitString.extract(String input)
-
Extracts decimal digits from a string.
factory
Properties
- characters → Characters
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
-
intList
→ List<
int> -
no setter
- intValue → int
-
no setter
- length → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
substring(
int start, [int? end]) → DigitString -
toString(
) → String -
A string representation of this object.
override
-
valueAt(
int index) → DigitString
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
concat(
List< DigitString> values) → DigitString -
isValid(
String value) → bool -
tryParse(
String input) → DigitString?