InvalidDictionaryKeyError class final

Error when the provided key does not existed in VendorDictionary and SyncedVendorDictionary.

The origin implementation of Map will return null when no corresponded MapEntry found in Map.entries. However, VendorDictionary and SyncedVendorDictionary expected the null type should be returned if and only if the key existed in their entries. Otherwise, this exception thrown instead.

Inheritance
Implemented types

Constructors

InvalidDictionaryKeyError(String invalidValue, String message, {String name = "key"})
Consturct InvalidDictionaryKeyError with parameter name and message.

Properties

hashCode int
The hash code for this object.
no setterinherited
invalidValue String
Applied key from VendorDictionary or SyncedVendorDictionary that causing this error thrown.
final
message String
Message of invalid opetaion.
final
name String
Parameter name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace at the point where this error was first thrown.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited