MustHave extension
- on
Methods
-
mustHaveElements(
) → void -
Throws an error of type
ExceptionOfType<EmptyIterable>
if the Iterable is empty. -
mustHaveMinLength(
int n) → void -
Throws an error of type
ExceptionOfType<LengthMismatch>
if the Iterable does not have a minimum number ofn
elements. -
mustHaveSameLength(
Iterable other, {String operatorSymbol = ''}) → void -
Throws an error of type
ErrorOfType<LengthMismatch>
ifthis
andother
do not have the same length.