decodeValue method

  1. @override
bool decodeValue(
  1. Pipe x,
  2. CType t
)
override

Implementation

@override
bool decodeValue(Pipe x, CType t) {
  checkType(t);
  final k = Uint8List.fromList(safeRead<int>(x as Pipe<int>, 1)).toHex();
  if (k == '00') {
    return false;
  } else if (k == '01') {
    return true;
  }
  throw RangeError('Boolean value out of range.');
}