encodeValue method

  1. @override
Uint8List encodeValue(
  1. bool x
)
override

Encode the value. This needs to be public because it is used by encodeValue() from different types. @internal

Implementation

@override
Uint8List encodeValue(bool x) {
  return Int8List.fromList([x ? 1 : 0]).buffer.asUint8List();
}