writeOptOutBool function Null safety

bool? writeOptOutBool(
  1. bool value
)

Implementation

bool? writeOptOutBool(bool value) => value ? null : false;