writeOptInBool function Null safety

bool? writeOptInBool(
  1. bool value
)

Implementation

bool? writeOptInBool(bool value) => value ? true : null;