Skip to content

Commit

Permalink
fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaintz committed Oct 21, 2024
1 parent 1dab88e commit 179091d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions flutter/lib/src/utils/multi_view/html_multi_view_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ MultiViewHelper multiViewHelper() => HtmlMultiViewHelper();
class HtmlMultiViewHelper implements MultiViewHelper {
@override
bool isMultiViewEnabled() {
final dynamic uncheckedImplicitView =
PlatformDispatcher.instance.implicitView;
final dynamic uncheckedImplicitView = PlatformDispatcher.instance;
try {
return null == uncheckedImplicitView;
return null == uncheckedImplicitView.implicitView;
} on NoSuchMethodError catch (_) {
return false;
}
Expand Down
5 changes: 2 additions & 3 deletions flutter/lib/src/utils/multi_view/web_multi_view_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ MultiViewHelper multiViewHelper() => WebMultiViewHelper();
class WebMultiViewHelper implements MultiViewHelper {
@override
bool isMultiViewEnabled() {
final dynamic uncheckedImplicitView =
PlatformDispatcher.instance.implicitView;
final dynamic uncheckedImplicitView = PlatformDispatcher.instance;
try {
return null == uncheckedImplicitView;
return null == uncheckedImplicitView.implicitView;
} on NoSuchMethodError catch (_) {
return false;
}
Expand Down

0 comments on commit 179091d

Please sign in to comment.