ArgumentErrorUtils class
final
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
invalidValue
→ dynamic
-
The invalid value.
finalinherited
-
message
→ dynamic
-
Message describing the problem.
finalinherited
-
name
→ String?
-
Name of the invalid argument, if available.
finalinherited
-
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
Static Methods
-
checkIterableContains<T extends Iterable>(T? iterable, T requiredElements, {String? name})
→ T
-
Throws if
iterable
is null
, or if iterable
does not contain
every element of requiredElements
.
-
checkIterableEqual<T extends Iterable>(T? iterable, T match, {bool checkOrder = false, String? name})
→ T
-
Throws if
iterable
is null
, or if the content of iterable
does not equal match
.
-
checkIterableNotEmpty<T extends Iterable>(T iterable, [String? name])
→ T
-
Check that
iterable
is not empty.
-
checkIterableOfUint32<T extends Iterable<int>>(T iterable, [String? name])
→ T
-
Check that every integer in
iterable
is unsigned and of size 4
.
-
checkIterableOfUnsignedIntegerOfSize<T extends Iterable<int>>(T iterable, int size, [String? name])
→ T
-
Check that every integer in
iterable
is unsigned and of size size
.
-
checkNotNull<T extends Object>(T? argument, {String? name, String? message})
→ T
-
Throws if
argument
is null
.
override
-
checkNull(Object? value, [String? name])
→ void
-
Check that
value
is null.
-
checkRuntimeType(Object? value, Type type, {String? name})
→ void
-
Check if
value.runtimeType
is equal to type
.
-
checkType<T>(Object? value, {TypeMatcher<T>? matcher, String? name})
→ T
-
Check if
value
is of type T
.
-
checkUint32(Object? value, [String? name])
→ int
-
Throws if
value
is null
, or if value
is not an unsigned
32 bit integer.
-
checkUnsignedIntegerOfSize(Object? value, int size, [String? name])
→ int
-
Throws if
value
is null
, or if value
is not an unsigned
integer of size
.