configure static method

void configure(
  1. DigiaConfig config
)

Implementation

static void configure(DigiaConfig config) {
  final explicit = config.baseUrl;
  if (explicit != null && explicit.isNotEmpty) {
    _baseUrl = explicit.replaceAll(RegExp(r'/+$'), '');
  } else {
    _baseUrl = config.environment == DigiaEnvironment.sandbox
        ? _sandbox
        : _production;
  }
}