resolvedEnvironment property

Map<String, String> get resolvedEnvironment

Implementation

Map<String, String> get resolvedEnvironment {
  final resolved = {...environment};
  final uri = url == null ? null : Uri.tryParse(url!);
  if (!resolved.containsKey('PORT') && uri != null && uri.hasPort) {
    resolved['PORT'] = '${uri.port}';
  }
  return resolved;
}