SolidServerInfo.fromWebId constructor

SolidServerInfo.fromWebId(
  1. String webId, {
  2. String? tooltip,
  3. bool isClickable = true,
})

Creates a SolidServerInfo from a WebID with automatic formatting.

Implementation

factory SolidServerInfo.fromWebId(
  String webId, {
  String? tooltip,
  bool isClickable = true,
}) {
  final serverUri = _extractServerFromWebId(webId);
  final displayText = _formatWebIdForDisplay(webId);

  return SolidServerInfo(
    serverUri: serverUri,
    displayText: displayText,
    tooltip: tooltip,
    isClickable: isClickable,
  );
}