serializeBool method

void serializeBool(
  1. bool value
)

Implementation

void serializeBool(bool value) {
  final byteValue = value ? 1 : 0;
  serialize(Uint8List.fromList([byteValue]));
}