WebViewInterface constructor

WebViewInterface({
  1. required String url,
  2. required ValueChanged<bool> onBottomReached,
  3. String? notSupportedMessage,
})

Implementation

factory WebViewInterface({
  required String url,
  required ValueChanged<bool> onBottomReached,

  /// Message to display when web view is not supported
  String? notSupportedMessage,
}) {
  if (kIsWeb) {
    return WebViewWeb();
  } else {
    return WebViewMobile(url: url, onBottomReached: onBottomReached);
  }
}