Creates a KeyId instance initialized with the given keyid.
keyid
The keyid must be either a num or a String.
KeyId(this.keyid) { checkState(keyid is num || keyid is String); }