dart · dart/TypeError
TypeError
TypeError
Thrown when a value does not match an expected type at runtime, such as a failed downcast in sound null-safety code or a type mismatch in dynamic code.
Also defined in
- python TypeError Raised when an operation or function is applied to an object of an inappropriate type. Common causes: calling a non-callable, passing the wrong number of arguments, or combining incompatible types.
- ruby TypeError Raised when an object is not of the expected type, for example passing a String where an Integer is required.