auto static method
Auto-detect content type and create appropriate viewer
Parameters:
content: HTML content or URLisUrl: Override auto-detection (optional)height: Optional fixed heightenableFullscreen: Whether to enable fullscreen for URLs
Implementation
static Widget auto(
String content, {
bool? isUrl,
double? height,
bool enableFullscreen = false,
}) {
final bool isUrlContent = isUrl ?? _isUrl(content);
if (isUrlContent) {
return url(
content,
showNavigationControls: true,
height: height,
enableFullscreen: enableFullscreen,
);
} else {
return html(content, height: height);
}
}