isMacOsError method

bool isMacOsError(
  1. int errorCode
)

Returns true if the exception was caused by error with code errorCode on macOS.

Implementation

bool isMacOsError(int errorCode) =>
    Platform.isMacOS && errorCode == this.osError?.errorCode;