Error thrown when a function is passed an unacceptable argument.
- Inheritance
- Implemented by
Properties
- invalidValue → dynamic
-
read-only
The invalid value.
- message → dynamic
-
read-only
Message describing the problem.
- name → String
-
read-only
Name of the invalid argument, if available.
- stackTrace → StackTrace
-
read-only, inherited
Constructors
- ArgumentError([message])
- ArgumentError.notNull([String name])
-
Create an argument error for a
null
argument that must not benull
.… - ArgumentError.value(value, [String name, String message])
-
Creates error containing the invalid
value
.…