isWindowsError method

bool isWindowsError(
  1. int errorCode
)

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

Implementation

bool isWindowsError(int errorCode) =>
    Platform.isWindows && errorCode == this.osError?.errorCode;