UnknownTypeError constructor

UnknownTypeError({
  1. String? typeUrl,
  2. Type? runtimeType,
})

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);