lengthOneOf static method
Implementation
static BuError lengthOneOf({
required String what,
required List<int> allowed,
required int actual,
}) => BuError(
DefaultErrorType.invalidLength,
'$what must be one of $allowed bytes, got $actual',
details: {'allowed': allowed.join(','), 'actual': '$actual'},
);