Validator typedef
Validator =
bool Function(ByteSerializable, {bool shouldThrow})
An alias to describe functions that take in a ByteSerializable and perform some validation check on it
Implementation
typedef Validator = bool Function(ByteSerializable, {bool shouldThrow});