globalTransportPlatform top-level property

TransportPlatform? globalTransportPlatform

The globally configured transport platform. Any transport class that is not explicitly given a TransportPlatform instance upon construction will inherit this global one.

Implementation

TransportPlatform? get globalTransportPlatform => _globalTransportPlatform;
void globalTransportPlatform=(TransportPlatform? transportPlatform)

Implementation

set globalTransportPlatform(TransportPlatform? transportPlatform) {
  if (transportPlatform == null) {
    throw ArgumentError('w_transport: Global transport platform '
        'implementation must not be null.');
  }
  // Todo: log the transport platform implementation
  _globalTransportPlatform = transportPlatform;
}