UnknownTypeError constructor
Creates a new instance of UnknownTypeError
.
Exactly one parameter should be passed to this constructor, a typeUrl
or a runtimeType
.
If none is passed, an ArgumentError
is thrown.
Implementation
UnknownTypeError({String? typeUrl, Type? runtimeType}) :
_message = _composeMessage(typeUrl, runtimeType);