ArgumentError constructor
- [dynamic message]
Creates an error with message describing the problem with an argument.
Existing code may be using message to hold the invalid value. If the message is not a String, it is assumed to be a value instead of a message.
Implementation
@pragma("vm:entry-point")
ArgumentError([this.message])
: invalidValue = null,
_hasValue = false,
name = null;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/ArgumentError/ArgumentError.html