withWrite method

TypesDescriptorFlags withWrite(
  1. bool value
)

Implementation

TypesDescriptorFlags withWrite(bool value) {
  return TypesDescriptorFlags(
    value ? representation | 0x2 : representation & ~0x2,
  );
}