setBindMock method

  1. @visibleForTesting
void setBindMock(
  1. dynamic bind(
    1. dynamic address,
    2. int port, {
    3. int backlog,
    4. bool shared,
    5. bool v6Only,
    })
)

Implementation

@visibleForTesting
void setBindMock(
    Function(
      dynamic address,
      int port, {
      int backlog,
      bool v6Only,
      bool shared,
    }) bind) {
  if (kDebugMode) {
    _bind = bind;
  }
}