RawSocketOption.fromBool constructor Null safety

RawSocketOption.fromBool(
  1. int level,
  2. int option,
  3. bool value
)

Convenience constructor for creating a bool based RawSocketOption.

Implementation

factory RawSocketOption.fromBool(int level, int option, bool value) =>
    RawSocketOption.fromInt(level, option, value ? 1 : 0);