UuidWrongByteCount class final
Uuid.fromBytes got other than 16 bytes. Every 16-byte sequence is a valid UUID, so length is all it can reject.
- Inheritance
-
- Object
- UuidFailure
- UuidWrongByteCount
Constructors
- UuidWrongByteCount({required int expected, required int actual})
-
Creates the failure.
const
Properties
- actual → int
-
How many bytes were supplied.
final
- expected → int
-
The byte count a UUID always has,
16.final - hashCode → int
-
The hash code for this object.
no setteroverride
- message → String
-
What went wrong, e.g.
'failed the mod-97 check', for logs.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeName → String
-
The value type that refused the input, e.g.
'Iban'. An explicit string, not a<T>, because extension types erase to their representation at runtime.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.
override