setConnectMock method
void
setConnectMock()
Implementation
@visibleForTesting
void setConnectMock(
Function(dynamic, int,
{dynamic sourceAddress, int sourcePort, Duration? timeout})
connect) {
if (kDebugMode) {
_connect = connect;
}
}