WalletConnectV1UriValidator class
- Inheritance
-
- Object
- WalletConnectUriValidator
- WalletConnectV1UriValidator
Constructors
Properties
-
errors
→ Set<
WalletConnectUriValidationError> -
Validator contains a set of
WalletConnectUriValidationError
errors.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Validator contains a boolean value indicating
if there are any validation errors after initialization.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → WalletConnectV1Uri
-
Validator contains an instance of provided WalletConnectUri.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
validate(
WalletConnectV1Uri uri) → Set< WalletConnectUriValidationError> -
Validates a WalletConnectV1Uri object.
It runs a sequence of validation checks on the WalletConnectV1Uri object.
It records all the errors and returns them as a Set of WalletConnectUriValidationError.
override
-
validateBridge(
String bridge) → void - Validate WalletConnectV1Uri bridge. It should be a valid url encoded string.
-
validateKey(
String key) → void - Validate WalletConnectV1Uri key. It should be a valid hex encoded string.
-
validateProtocol(
String protocol) → void -
Validate WalletConnectV1Uri protocol.
It should be equal to the generic 'wc' url scheme.
override
-
validateTopic(
String topic) → void - Validate WalletConnectV1Uri topic. It should be a valid UUID v4 string.
-
validateVersion(
WalletConnectVersion version) → void -
Validate WalletConnectV1Uri version.
It should be equal to WalletConnectVersion.v1.
override