From 3b2add41991b7652ab3b8877f171c764facc43e8 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Tue, 11 Oct 2022 16:19:36 +0200 Subject: [PATCH] code format --- .../custom_action_button.dart | 4 +- .../custom_menu_item.dart | 6 +- example/integration_test/constants.dart | 21 +- .../find_interactions.dart | 35 +- .../run_and_dispose.dart | 19 +- .../take_screenshot.dart | 6 +- .../in_app_webview/initial_url_request.dart | 10 +- .../in_app_webview/load_file_url.dart | 15 +- .../in_app_webview/load_url.dart | 57 +- .../integration_test/in_app_webview/main.dart | 2 +- .../in_app_webview/on_js_before_unload.dart | 3 +- .../in_app_webview/on_received_error.dart | 3 +- .../in_app_webview/programmatic_scroll.dart | 4 +- .../in_app_webview/video_playback_policy.dart | 12 +- .../in_app_webview/web_history.dart | 3 +- .../clear_and_set_proxy_override.dart | 25 +- .../proxy_controller/main.dart | 2 +- .../service_worker_controller/main.dart | 2 +- example/integration_test/util.dart | 2 +- .../webview_flutter_test.dart | 3 +- .../android/service_worker_controller.dart | 3 +- lib/src/android/webview_feature.dart | 20 +- lib/src/content_blocker.dart | 11 +- lib/src/cookie_manager.dart | 16 +- lib/src/debug_logging_settings.dart | 13 +- lib/src/find_interaction/main.dart | 2 +- lib/src/in_app_browser/in_app_browser.dart | 6 +- .../android/in_app_webview_options.dart | 6 +- .../apple/in_app_webview_controller.dart | 8 +- .../apple/in_app_webview_options.dart | 4 +- .../headless_in_app_webview.dart | 2 +- lib/src/in_app_webview/in_app_webview.dart | 2 +- .../in_app_webview_controller.dart | 56 +- .../in_app_webview_settings.dart | 96 ++-- lib/src/in_app_webview/main.dart | 2 +- lib/src/in_app_webview/webview.dart | 2 +- lib/src/print_job/main.dart | 2 +- lib/src/print_job/print_job_controller.dart | 11 +- lib/src/print_job/print_job_settings.dart | 49 +- .../pull_to_refresh_controller.dart | 2 +- lib/src/types/action_mode_menu_item.dart | 14 +- lib/src/types/ajax_request.dart | 39 +- lib/src/types/ajax_request_action.dart | 2 +- lib/src/types/ajax_request_event.dart | 5 +- lib/src/types/ajax_request_event_type.dart | 2 +- lib/src/types/ajax_request_headers.dart | 2 +- lib/src/types/ajax_request_ready_state.dart | 2 +- lib/src/types/attributed_string.dart | 2 +- .../attributed_string_text_effect_style.dart | 6 +- lib/src/types/cache_mode.dart | 2 +- .../types/call_async_javascript_result.dart | 2 +- lib/src/types/client_cert_challenge.dart | 22 +- lib/src/types/client_cert_response.dart | 16 +- .../types/client_cert_response_action.dart | 2 +- lib/src/types/compress_format.dart | 2 +- lib/src/types/console_message.dart | 2 +- lib/src/types/console_message_level.dart | 2 +- .../types/content_blocker_action_type.dart | 6 +- .../content_blocker_trigger_load_type.dart | 6 +- lib/src/types/content_world.dart | 4 +- lib/src/types/cookie.dart | 18 +- lib/src/types/create_window_action.dart | 98 ++-- lib/src/types/cross_origin.dart | 5 +- .../types/css_link_html_tag_attributes.dart | 16 +- lib/src/types/custom_scheme_response.dart | 6 +- lib/src/types/custom_tabs_share_state.dart | 2 +- lib/src/types/data_detector_types.dart | 27 +- lib/src/types/dismiss_button_style.dart | 2 +- lib/src/types/disposable.dart | 2 +- lib/src/types/download_start_request.dart | 14 +- lib/src/types/favicon.dart | 2 +- lib/src/types/fetch_request.dart | 30 +- lib/src/types/fetch_request_action.dart | 2 +- lib/src/types/fetch_request_credential.dart | 2 +- .../fetch_request_credential_default.dart | 2 +- .../fetch_request_federated_credential.dart | 2 +- .../fetch_request_password_credential.dart | 2 +- lib/src/types/find_session.dart | 11 +- lib/src/types/force_dark.dart | 2 +- lib/src/types/force_dark_strategy.dart | 6 +- lib/src/types/form_resubmission_action.dart | 2 +- lib/src/types/frame_info.dart | 2 +- ...ation_permission_show_prompt_response.dart | 2 +- lib/src/types/http_auth_response.dart | 8 +- lib/src/types/http_auth_response_action.dart | 5 +- .../types/http_authentication_challenge.dart | 14 +- .../types/http_cookie_same_site_policy.dart | 2 +- .../types/in_app_webview_hit_test_result.dart | 2 +- .../in_app_webview_hit_test_result_type.dart | 8 +- .../types/in_app_webview_initial_data.dart | 16 +- lib/src/types/in_app_webview_rect.dart | 8 +- .../types/javascript_handler_callback.dart | 2 +- lib/src/types/js_alert_request.dart | 8 +- lib/src/types/js_alert_response.dart | 8 +- lib/src/types/js_alert_response_action.dart | 2 +- lib/src/types/js_before_unload_request.dart | 2 +- lib/src/types/js_before_unload_response.dart | 10 +- .../js_before_unload_response_action.dart | 2 +- lib/src/types/js_confirm_request.dart | 8 +- lib/src/types/js_confirm_response.dart | 10 +- lib/src/types/js_confirm_response_action.dart | 2 +- lib/src/types/js_prompt_request.dart | 10 +- lib/src/types/js_prompt_response.dart | 14 +- lib/src/types/js_prompt_response_action.dart | 2 +- lib/src/types/layout_algorithm.dart | 10 +- .../types/layout_in_display_cutout_mode.dart | 8 +- lib/src/types/loaded_resource.dart | 5 +- lib/src/types/login_request.dart | 2 +- lib/src/types/main.dart | 124 +++-- lib/src/types/media_capture_state.dart | 2 +- lib/src/types/media_playback_state.dart | 2 +- lib/src/types/meta_tag.dart | 2 +- lib/src/types/meta_tag_attribute.dart | 2 +- lib/src/types/mixed_content_mode.dart | 13 +- lib/src/types/modal_presentation_style.dart | 12 +- lib/src/types/modal_transition_style.dart | 2 +- lib/src/types/navigation_action.dart | 114 ++-- lib/src/types/navigation_action_policy.dart | 2 +- lib/src/types/navigation_response.dart | 10 +- lib/src/types/navigation_response_action.dart | 2 +- lib/src/types/navigation_type.dart | 2 +- lib/src/types/on_post_message_callback.dart | 2 +- lib/src/types/over_scroll_mode.dart | 7 +- lib/src/types/pdf_configuration.dart | 2 +- lib/src/types/permission_request.dart | 2 +- lib/src/types/permission_resource_type.dart | 63 ++- lib/src/types/permission_response.dart | 7 +- lib/src/types/permission_response_action.dart | 9 +- lib/src/types/print_job_attributes.dart | 11 +- lib/src/types/print_job_media_size.dart | 36 +- lib/src/types/print_job_state.dart | 45 +- lib/src/types/proxy_scheme_filter.dart | 5 +- lib/src/types/pull_to_refresh_size.dart | 2 +- lib/src/types/referrer_policy.dart | 8 +- lib/src/types/render_process_gone_detail.dart | 2 +- lib/src/types/renderer_priority.dart | 4 +- lib/src/types/renderer_priority_policy.dart | 4 +- .../types/request_focus_node_href_result.dart | 2 +- lib/src/types/request_image_ref_result.dart | 2 +- lib/src/types/requested_with_header_mode.dart | 2 +- lib/src/types/safe_browsing_response.dart | 4 +- .../types/safe_browsing_response_action.dart | 4 +- lib/src/types/safe_browsing_threat.dart | 12 +- lib/src/types/sandbox.dart | 26 +- lib/src/types/screenshot_configuration.dart | 14 +- lib/src/types/script_html_tag_attributes.dart | 24 +- lib/src/types/scrollbar_style.dart | 16 +- ...iew_content_inset_adjustment_behavior.dart | 18 +- .../types/scrollview_deceleration_rate.dart | 4 +- .../types/search_result_display_style.dart | 2 +- lib/src/types/security_origin.dart | 2 +- lib/src/types/selection_granularity.dart | 2 +- lib/src/types/server_trust_auth_response.dart | 5 +- .../server_trust_auth_response_action.dart | 2 +- lib/src/types/server_trust_challenge.dart | 2 +- .../should_allow_deprecated_tls_action.dart | 2 +- lib/src/types/ssl_certificate.dart | 30 +- lib/src/types/ssl_error.dart | 8 +- lib/src/types/ssl_error_type.dart | 78 +-- ...ted_web_activity_default_display_mode.dart | 2 +- .../trusted_web_activity_display_mode.dart | 4 +- ...usted_web_activity_screen_orientation.dart | 20 +- lib/src/types/underline_style.dart | 5 +- .../types/url_authentication_challenge.dart | 2 +- lib/src/types/url_credential.dart | 27 +- lib/src/types/url_credential_persistence.dart | 2 +- lib/src/types/url_protection_space.dart | 63 +-- ...rotection_space_authentication_method.dart | 34 +- ...rotection_space_http_auth_credentials.dart | 2 +- .../url_protection_space_proxy_type.dart | 34 +- lib/src/types/url_request.dart | 113 ++-- lib/src/types/url_request_attribution.dart | 8 +- lib/src/types/url_request_cache_policy.dart | 26 +- .../url_request_network_service_type.dart | 14 +- lib/src/types/url_response.dart | 26 +- .../types/user_preferred_content_mode.dart | 2 +- lib/src/types/user_script.dart | 20 +- lib/src/types/user_script_injection_time.dart | 2 +- .../types/vertical_scrollbar_position.dart | 14 +- lib/src/types/web_archive_format.dart | 2 +- .../web_authentication_session_error.dart | 6 +- lib/src/types/web_history.dart | 2 +- lib/src/types/web_history_item.dart | 2 +- lib/src/types/web_message_callback.dart | 2 +- lib/src/types/web_resource_error.dart | 2 +- lib/src/types/web_resource_error_type.dart | 511 ++++++++++-------- lib/src/types/web_resource_request.dart | 12 +- lib/src/types/web_storage_origin.dart | 2 +- lib/src/types/web_storage_type.dart | 4 +- lib/src/types/website_data_record.dart | 2 +- lib/src/types/website_data_type.dart | 52 +- lib/src/types/webview_implementation.dart | 2 +- lib/src/types/webview_package_info.dart | 2 +- .../types/webview_render_process_action.dart | 2 +- lib/src/types/window_features.dart | 30 +- .../headless_in_app_web_view_web_element.dart | 3 +- .../web/headless_inappwebview_manager.dart | 5 +- lib/src/web/in_app_web_view_web_element.dart | 69 ++- lib/src/web/main_stub.dart | 6 +- .../web_authenticate_session.dart | 3 +- package.json | 3 +- 201 files changed, 1578 insertions(+), 1437 deletions(-) diff --git a/example/integration_test/chrome_safari_browser/custom_action_button.dart b/example/integration_test/chrome_safari_browser/custom_action_button.dart index 6744eb85..7b771231 100644 --- a/example/integration_test/chrome_safari_browser/custom_action_button.dart +++ b/example/integration_test/chrome_safari_browser/custom_action_button.dart @@ -21,9 +21,7 @@ void customActionButton() { id: 1, description: 'Action Button description', icon: actionButtonIcon.buffer.asUint8List(), - action: (url, title) { - - })); + action: (url, title) {})); expect(chromeSafariBrowser.isOpened(), false); await chromeSafariBrowser.open(url: TEST_URL_1); diff --git a/example/integration_test/chrome_safari_browser/custom_menu_item.dart b/example/integration_test/chrome_safari_browser/custom_menu_item.dart index ef8d72a3..0e6c3fe9 100644 --- a/example/integration_test/chrome_safari_browser/custom_menu_item.dart +++ b/example/integration_test/chrome_safari_browser/custom_menu_item.dart @@ -17,11 +17,7 @@ void customMenuItem() { test('add custom menu item', () async { var chromeSafariBrowser = MyChromeSafariBrowser(); chromeSafariBrowser.addMenuItem(ChromeSafariBrowserMenuItem( - id: 2, - label: 'Custom item menu 1', - action: (url, title) { - - })); + id: 2, label: 'Custom item menu 1', action: (url, title) {})); expect(chromeSafariBrowser.isOpened(), false); await chromeSafariBrowser.open(url: TEST_URL_1); diff --git a/example/integration_test/constants.dart b/example/integration_test/constants.dart index 29b96416..7bbfb3af 100644 --- a/example/integration_test/constants.dart +++ b/example/integration_test/constants.dart @@ -3,16 +3,23 @@ final TEST_CROSS_PLATFORM_URL_1 = Uri.parse('https://flutter.dev/'); final TEST_CROSS_PLATFORM_URL_2 = Uri.parse('https://www.bing.com/'); final TEST_URL_1 = Uri.parse('https://github.com/flutter'); final TEST_URL_2 = Uri.parse('https://www.google.com/'); -final TEST_URL_3 = Uri.parse('https://github.com/pichillilorenzo/flutter_inappwebview'); +final TEST_URL_3 = + Uri.parse('https://github.com/pichillilorenzo/flutter_inappwebview'); final TEST_URL_4 = Uri.parse('https://www.youtube.com/'); final TEST_URL_EXAMPLE = Uri.parse('https://www.example.com/'); final TEST_URL_HTTP_EXAMPLE = Uri.parse('http://www.example.com/'); final TEST_URL_404 = Uri.parse('https://google.com/404'); -final TEST_WEB_PLATFORM_BASE_URL = Uri.parse(Uri.base.toString().replaceFirst("/#/", "/")); -final TEST_WEB_PLATFORM_URL_1 = Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page.html'); -final TEST_WEB_PLATFORM_URL_2 = Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page-2.html'); -final TEST_WEB_PLATFORM_URL_3 = Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'heavy-page.html'); +final TEST_WEB_PLATFORM_BASE_URL = + Uri.parse(Uri.base.toString().replaceFirst("/#/", "/")); +final TEST_WEB_PLATFORM_URL_1 = + Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page.html'); +final TEST_WEB_PLATFORM_URL_2 = + Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page-2.html'); +final TEST_WEB_PLATFORM_URL_3 = + Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'heavy-page.html'); final TEST_NOT_A_WEBSITE_URL = Uri.parse('https://www.notawebsite..com/'); -final TEST_CHROME_SAFE_BROWSING_MALWARE = Uri.parse('chrome://safe-browsing/match?type=malware'); +final TEST_CHROME_SAFE_BROWSING_MALWARE = + Uri.parse('chrome://safe-browsing/match?type=malware'); final TEST_PERMISSION_SITE = Uri.parse('https://permission.site/'); -final TEST_SERVICE_WORKER_URL = Uri.parse('https://mdn.github.io/dom-examples/service-worker/simple-service-worker/'); +final TEST_SERVICE_WORKER_URL = Uri.parse( + 'https://mdn.github.io/dom-examples/service-worker/simple-service-worker/'); diff --git a/example/integration_test/find_interaction_controller/find_interactions.dart b/example/integration_test/find_interaction_controller/find_interactions.dart index 3d008089..f51f9d10 100644 --- a/example/integration_test/find_interaction_controller/find_interactions.dart +++ b/example/integration_test/find_interaction_controller/find_interactions.dart @@ -9,10 +9,10 @@ void findInteractions() { final shouldSkip = kIsWeb ? true : ![ - TargetPlatform.android, - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + TargetPlatform.android, + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); testWidgets('find interactions', (WidgetTester tester) async { final Completer controllerCompleter = Completer(); @@ -27,9 +27,7 @@ void findInteractions() { initialFile: "test_assets/in_app_webview_initial_file_test.html", findInteractionController: findInteractionController, initialSettings: InAppWebViewSettings( - clearCache: true, - isFindInteractionEnabled: true - ), + clearCache: true, isFindInteractionEnabled: true), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, @@ -46,17 +44,23 @@ void findInteractions() { await Future.delayed(Duration(seconds: 1)); const firstSearchText = "InAppWebViewInitialFileTest"; - await expectLater(findInteractionController.findAllAsync(find: firstSearchText), completes); - if ([TargetPlatform.iOS, TargetPlatform.macOS].contains(defaultTargetPlatform)) { + await expectLater( + findInteractionController.findAllAsync(find: firstSearchText), + completes); + if ([TargetPlatform.iOS, TargetPlatform.macOS] + .contains(defaultTargetPlatform)) { expect(await findInteractionController.getSearchText(), firstSearchText); final session = await findInteractionController.getActiveFindSession(); expect(session!.resultCount, 2); } - await expectLater(findInteractionController.findNext(forward: true), completes); - await expectLater(findInteractionController.findNext(forward: false), completes); + await expectLater( + findInteractionController.findNext(forward: true), completes); + await expectLater( + findInteractionController.findNext(forward: false), completes); await expectLater(findInteractionController.clearMatches(), completes); - if ([TargetPlatform.iOS, TargetPlatform.macOS].contains(defaultTargetPlatform)) { + if ([TargetPlatform.iOS, TargetPlatform.macOS] + .contains(defaultTargetPlatform)) { const secondSearchText = "text"; await expectLater( findInteractionController.setSearchText(secondSearchText), completes); @@ -64,7 +68,8 @@ void findInteractions() { findInteractionController.presentFindNavigator(), completes); expect(await findInteractionController.getSearchText(), secondSearchText); expect(await findInteractionController.isFindNavigatorVisible(), true); - await expectLater(findInteractionController.updateResultCount(), completes); + await expectLater( + findInteractionController.updateResultCount(), completes); await expectLater( findInteractionController.dismissFindNavigator(), completes); expect(await findInteractionController.isFindNavigatorVisible(), false); @@ -91,9 +96,7 @@ void findInteractions() { key: GlobalKey(), initialFile: "test_assets/in_app_webview_initial_file_test.html", initialSettings: InAppWebViewSettings( - clearCache: true, - isFindInteractionEnabled: false - ), + clearCache: true, isFindInteractionEnabled: false), findInteractionController: findInteractionController, onWebViewCreated: (controller) { controllerCompleter.complete(controller); diff --git a/example/integration_test/headless_in_app_webview/run_and_dispose.dart b/example/integration_test/headless_in_app_webview/run_and_dispose.dart index 0507be32..16342917 100644 --- a/example/integration_test/headless_in_app_webview/run_and_dispose.dart +++ b/example/integration_test/headless_in_app_webview/run_and_dispose.dart @@ -7,20 +7,20 @@ import 'package:flutter_test/flutter_test.dart'; import '../constants.dart'; void runAndDispose() { - final shouldSkip = kIsWeb ? false : - ![ - TargetPlatform.android, - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + final shouldSkip = kIsWeb + ? false + : ![ + TargetPlatform.android, + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); test('run and dispose', () async { final Completer controllerCompleter = Completer(); final Completer pageLoaded = Completer(); var headlessWebView = new HeadlessInAppWebView( - initialUrlRequest: - URLRequest(url: TEST_CROSS_PLATFORM_URL_1), + initialUrlRequest: URLRequest(url: TEST_CROSS_PLATFORM_URL_1), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, @@ -32,8 +32,7 @@ void runAndDispose() { await headlessWebView.run(); expect(headlessWebView.isRunning(), true); - final InAppWebViewController controller = - await controllerCompleter.future; + final InAppWebViewController controller = await controllerCompleter.future; await pageLoaded.future; final String? url = (await controller.getUrl())?.toString(); diff --git a/example/integration_test/headless_in_app_webview/take_screenshot.dart b/example/integration_test/headless_in_app_webview/take_screenshot.dart index 3164c24b..9ba73aee 100644 --- a/example/integration_test/headless_in_app_webview/take_screenshot.dart +++ b/example/integration_test/headless_in_app_webview/take_screenshot.dart @@ -20,8 +20,7 @@ void takeScreenshot() { final Completer pageLoaded = Completer(); var headlessWebView = new HeadlessInAppWebView( - initialUrlRequest: - URLRequest(url: TEST_URL_1), + initialUrlRequest: URLRequest(url: TEST_URL_1), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, @@ -32,8 +31,7 @@ void takeScreenshot() { await headlessWebView.run(); expect(headlessWebView.isRunning(), true); - final InAppWebViewController controller = - await controllerCompleter.future; + final InAppWebViewController controller = await controllerCompleter.future; await pageLoaded.future; final String? url = (await controller.getUrl())?.toString(); diff --git a/example/integration_test/in_app_webview/initial_url_request.dart b/example/integration_test/in_app_webview/initial_url_request.dart index 7324260a..d7c976bf 100644 --- a/example/integration_test/in_app_webview/initial_url_request.dart +++ b/example/integration_test/in_app_webview/initial_url_request.dart @@ -60,10 +60,10 @@ void initialUrlRequest() { final shouldSkipTest1 = kIsWeb ? false : ![ - TargetPlatform.android, - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + TargetPlatform.android, + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); testWidgets('basic', (WidgetTester tester) async { final Completer pageLoaded = Completer(); @@ -87,7 +87,7 @@ void initialUrlRequest() { await pageLoaded.future; final InAppWebViewController controller = - await controllerCompleter.future; + await controllerCompleter.future; final String? currentUrl = (await controller.getUrl())?.toString(); expect(currentUrl, TEST_CROSS_PLATFORM_URL_1.toString()); diff --git a/example/integration_test/in_app_webview/load_file_url.dart b/example/integration_test/in_app_webview/load_file_url.dart index 85c6f794..2f4ef400 100644 --- a/example/integration_test/in_app_webview/load_file_url.dart +++ b/example/integration_test/in_app_webview/load_file_url.dart @@ -8,11 +8,12 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:path_provider/path_provider.dart'; void loadFileUrl() { - final shouldSkip = kIsWeb ? true : - ![ - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + final shouldSkip = kIsWeb + ? true + : ![ + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); group('load file URL', () { late Directory appSupportDir; @@ -83,8 +84,8 @@ void loadFileUrl() { initialUrlRequest: URLRequest(url: Uri.parse('file://${fileHtml.path}')), initialSettings: InAppWebViewSettings( - allowingReadAccessTo: - Uri.parse('file://${appSupportDir.path}/')), + allowingReadAccessTo: + Uri.parse('file://${appSupportDir.path}/')), onConsoleMessage: (controller, consoleMessage) { consoleMessageCompleter.complete(consoleMessage); }, diff --git a/example/integration_test/in_app_webview/load_url.dart b/example/integration_test/in_app_webview/load_url.dart index 5a9c3d16..bae9eccc 100644 --- a/example/integration_test/in_app_webview/load_url.dart +++ b/example/integration_test/in_app_webview/load_url.dart @@ -9,12 +9,13 @@ import 'package:flutter_test/flutter_test.dart'; import '../constants.dart'; void loadUrl() { - final shouldSkip1 = kIsWeb ? false : - ![ - TargetPlatform.android, - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + final shouldSkip1 = kIsWeb + ? false + : ![ + TargetPlatform.android, + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); var initialUrl = !kIsWeb ? TEST_URL_1 : TEST_WEB_PLATFORM_URL_1; @@ -28,23 +29,23 @@ void loadUrl() { textDirection: TextDirection.ltr, child: InAppWebView( key: GlobalKey(), - initialUrlRequest: - URLRequest(url: initialUrl), + initialUrlRequest: URLRequest(url: initialUrl), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, onLoadStop: (controller, url) { - if (url.toString() == initialUrl.toString() && !firstUrlLoad.isCompleted) { + if (url.toString() == initialUrl.toString() && + !firstUrlLoad.isCompleted) { firstUrlLoad.complete(url.toString()); - } else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() && !loadedUrl.isCompleted) { + } else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() && + !loadedUrl.isCompleted) { loadedUrl.complete(url.toString()); } }, ), ), ); - final InAppWebViewController controller = - await controllerCompleter.future; + final InAppWebViewController controller = await controllerCompleter.future; expect(await firstUrlLoad.future, initialUrl.toString()); await controller.loadUrl( @@ -52,11 +53,12 @@ void loadUrl() { expect(await loadedUrl.future, TEST_CROSS_PLATFORM_URL_1.toString()); }, skip: shouldSkip1); - final shouldSkip2 = kIsWeb ? true : - ![ - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + final shouldSkip2 = kIsWeb + ? true + : ![ + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); testWidgets('loadSimulatedRequest', (WidgetTester tester) async { final Completer controllerCompleter = Completer(); @@ -68,31 +70,34 @@ void loadUrl() { textDirection: TextDirection.ltr, child: InAppWebView( key: GlobalKey(), - initialUrlRequest: - URLRequest(url: initialUrl), + initialUrlRequest: URLRequest(url: initialUrl), onWebViewCreated: (controller) { controllerCompleter.complete(controller); }, onLoadStop: (controller, url) { - if (url.toString() == initialUrl.toString() && !firstUrlLoad.isCompleted) { + if (url.toString() == initialUrl.toString() && + !firstUrlLoad.isCompleted) { firstUrlLoad.complete(url.toString()); - } else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() && !loadedUrl.isCompleted) { + } else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() && + !loadedUrl.isCompleted) { loadedUrl.complete(url.toString()); } }, ), ), ); - final InAppWebViewController controller = - await controllerCompleter.future; + final InAppWebViewController controller = await controllerCompleter.future; expect(await firstUrlLoad.future, initialUrl.toString()); final htmlCode = "

Hello

"; await controller.loadSimulatedRequest( urlRequest: URLRequest(url: TEST_CROSS_PLATFORM_URL_1), - data: Uint8List.fromList(utf8.encode(htmlCode)) - ); + data: Uint8List.fromList(utf8.encode(htmlCode))); expect(await loadedUrl.future, TEST_CROSS_PLATFORM_URL_1.toString()); - expect((await controller.evaluateJavascript(source: "document.body.innerHTML")).toString().trim(), htmlCode); + expect( + (await controller.evaluateJavascript(source: "document.body.innerHTML")) + .toString() + .trim(), + htmlCode); }, skip: shouldSkip2); } diff --git a/example/integration_test/in_app_webview/main.dart b/example/integration_test/in_app_webview/main.dart index 3dfccc2a..af64844e 100644 --- a/example/integration_test/in_app_webview/main.dart +++ b/example/integration_test/in_app_webview/main.dart @@ -168,4 +168,4 @@ void main() { applePayAPI(); handlesURLScheme(); }); -} \ No newline at end of file +} diff --git a/example/integration_test/in_app_webview/on_js_before_unload.dart b/example/integration_test/in_app_webview/on_js_before_unload.dart index 7340116e..09a6c3d8 100644 --- a/example/integration_test/in_app_webview/on_js_before_unload.dart +++ b/example/integration_test/in_app_webview/on_js_before_unload.dart @@ -35,6 +35,7 @@ void onJsBeforeUnload() { ); final String url = await onJsBeforeUnloadCompleter.future; - expect(url, endsWith("test_assets/in_app_webview_on_js_before_unload.html")); + expect( + url, endsWith("test_assets/in_app_webview_on_js_before_unload.html")); }, skip: shouldSkip); } diff --git a/example/integration_test/in_app_webview/on_received_error.dart b/example/integration_test/in_app_webview/on_received_error.dart index 7f7fd67c..285588b3 100644 --- a/example/integration_test/in_app_webview/on_received_error.dart +++ b/example/integration_test/in_app_webview/on_received_error.dart @@ -19,7 +19,8 @@ void onReceivedError() { group('onReceivedError', () { testWidgets('invalid url', (WidgetTester tester) async { final Completer errorUrlCompleter = Completer(); - final Completer errorCodeCompleter = Completer(); + final Completer errorCodeCompleter = + Completer(); await tester.pumpWidget( Directionality( diff --git a/example/integration_test/in_app_webview/programmatic_scroll.dart b/example/integration_test/in_app_webview/programmatic_scroll.dart index e26b0c52..67f70a30 100644 --- a/example/integration_test/in_app_webview/programmatic_scroll.dart +++ b/example/integration_test/in_app_webview/programmatic_scroll.dart @@ -103,8 +103,8 @@ void programmaticScroll() { final shouldSkipTest2 = kIsWeb ? true : ![ - TargetPlatform.android, - ].contains(defaultTargetPlatform); + TargetPlatform.android, + ].contains(defaultTargetPlatform); testWidgets( 'set and get scroll position on Android without Hybrid Composition', diff --git a/example/integration_test/in_app_webview/video_playback_policy.dart b/example/integration_test/in_app_webview/video_playback_policy.dart index 1d27db34..ba2db5cf 100644 --- a/example/integration_test/in_app_webview/video_playback_policy.dart +++ b/example/integration_test/in_app_webview/video_playback_policy.dart @@ -166,9 +166,9 @@ void videoPlaybackPolicy() { final shouldSkipTest3 = kIsWeb ? true : ![ - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); testWidgets( 'Video plays fullscreen when allowsInlineMediaPlayback is false', @@ -213,9 +213,9 @@ void videoPlaybackPolicy() { final shouldSkipTest4 = kIsWeb ? true : ![ - TargetPlatform.iOS, - TargetPlatform.macOS, - ].contains(defaultTargetPlatform); + TargetPlatform.iOS, + TargetPlatform.macOS, + ].contains(defaultTargetPlatform); // on Android, entering fullscreen requires user interaction testWidgets('exit fullscreen event', (WidgetTester tester) async { Completer controllerCompleter = diff --git a/example/integration_test/in_app_webview/web_history.dart b/example/integration_test/in_app_webview/web_history.dart index f03b4b7f..deb4b1e5 100644 --- a/example/integration_test/in_app_webview/web_history.dart +++ b/example/integration_test/in_app_webview/web_history.dart @@ -152,7 +152,8 @@ void webHistory() { var url = await pageLoads.stream.first; expect(url, TEST_WEB_PLATFORM_URL_1.toString()); - await controller.evaluateJavascript(source: "document.getElementById('link-page-2').click();"); + await controller.evaluateJavascript( + source: "document.getElementById('link-page-2').click();"); url = await pageLoads.stream.first; expect(url, TEST_WEB_PLATFORM_URL_2.toString()); diff --git a/example/integration_test/proxy_controller/clear_and_set_proxy_override.dart b/example/integration_test/proxy_controller/clear_and_set_proxy_override.dart index f449cc21..b0f3ec37 100644 --- a/example/integration_test/proxy_controller/clear_and_set_proxy_override.dart +++ b/example/integration_test/proxy_controller/clear_and_set_proxy_override.dart @@ -19,15 +19,15 @@ void clearAndSetProxyOverride() { final Completer controllerCompleter = Completer(); final Completer pageLoaded = Completer(); - var proxyAvailable = await WebViewFeature.isFeatureSupported( - WebViewFeature.PROXY_OVERRIDE); + var proxyAvailable = + await WebViewFeature.isFeatureSupported(WebViewFeature.PROXY_OVERRIDE); if (proxyAvailable) { - ProxyController proxyController = - ProxyController.instance(); + ProxyController proxyController = ProxyController.instance(); await proxyController.clearProxyOverride(); - await proxyController.setProxyOverride(settings: ProxySettings( + await proxyController.setProxyOverride( + settings: ProxySettings( proxyRules: [ProxyRule(url: "${environment["NODE_SERVER_IP"]}:8083")], )); } @@ -53,8 +53,17 @@ void clearAndSetProxyOverride() { final String url = await pageLoaded.future; expect(url, TEST_URL_HTTP_EXAMPLE.toString()); - expect(await controller.evaluateJavascript(source: "document.getElementById('url').innerHTML;"), TEST_URL_HTTP_EXAMPLE.toString()); - expect(await controller.evaluateJavascript(source: "document.getElementById('method').innerHTML;"), "GET"); - expect(await controller.evaluateJavascript(source: "document.getElementById('headers').innerHTML;"), isNotNull); + expect( + await controller.evaluateJavascript( + source: "document.getElementById('url').innerHTML;"), + TEST_URL_HTTP_EXAMPLE.toString()); + expect( + await controller.evaluateJavascript( + source: "document.getElementById('method').innerHTML;"), + "GET"); + expect( + await controller.evaluateJavascript( + source: "document.getElementById('headers').innerHTML;"), + isNotNull); }, skip: shouldSkip); } diff --git a/example/integration_test/proxy_controller/main.dart b/example/integration_test/proxy_controller/main.dart index 904f3bd8..a7cc2908 100644 --- a/example/integration_test/proxy_controller/main.dart +++ b/example/integration_test/proxy_controller/main.dart @@ -9,4 +9,4 @@ void main() { group('Proxy Controller', () { clearAndSetProxyOverride(); }, skip: shouldSkip); -} \ No newline at end of file +} diff --git a/example/integration_test/service_worker_controller/main.dart b/example/integration_test/service_worker_controller/main.dart index a4c8163a..9b0a7204 100644 --- a/example/integration_test/service_worker_controller/main.dart +++ b/example/integration_test/service_worker_controller/main.dart @@ -11,4 +11,4 @@ void main() { shouldInterceptRequest(); setServiceWorkerClient(); }, skip: shouldSkip); -} \ No newline at end of file +} diff --git a/example/integration_test/util.dart b/example/integration_test/util.dart index 0a8d688e..530cadf2 100644 --- a/example/integration_test/util.dart +++ b/example/integration_test/util.dart @@ -72,4 +72,4 @@ class MyChromeSafariBrowser extends ChromeSafariBrowser { void onClosed() { browserClosed.complete(); } -} \ No newline at end of file +} diff --git a/example/integration_test/webview_flutter_test.dart b/example/integration_test/webview_flutter_test.dart index d46b2be1..65df1f65 100644 --- a/example/integration_test/webview_flutter_test.dart +++ b/example/integration_test/webview_flutter_test.dart @@ -3,7 +3,8 @@ import 'package:flutter_inappwebview/flutter_inappwebview.dart'; import 'package:integration_test/integration_test.dart'; import 'in_app_webview/main.dart' as in_app_webview_tests; -import 'find_interaction_controller/main.dart' as find_interaction_controller_tests; +import 'find_interaction_controller/main.dart' + as find_interaction_controller_tests; import 'service_worker_controller/main.dart' as service_worker_controller_tests; import 'proxy_controller/main.dart' as proxy_controller_tests; import 'headless_in_app_webview/main.dart' as headless_in_app_webview_tests; diff --git a/lib/src/android/service_worker_controller.dart b/lib/src/android/service_worker_controller.dart index 4bf042dc..7b8cb042 100644 --- a/lib/src/android/service_worker_controller.dart +++ b/lib/src/android/service_worker_controller.dart @@ -184,7 +184,8 @@ class ServiceWorkerController { ///This method should only be called if [WebViewFeature.isFeatureSupported] returns `true` for [WebViewFeature.REQUESTED_WITH_HEADER_CONTROL]. /// ///**Official Android API**: https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#setRequestedWithHeaderMode(int) - static Future setRequestedWithHeaderMode(RequestedWithHeaderMode mode) async { + static Future setRequestedWithHeaderMode( + RequestedWithHeaderMode mode) async { Map args = {}; args.putIfAbsent("mode", () => mode.toNativeValue()); await _channel.invokeMethod('setRequestedWithHeaderMode', args); diff --git a/lib/src/android/webview_feature.dart b/lib/src/android/webview_feature.dart index dcd12605..f57d6619 100644 --- a/lib/src/android/webview_feature.dart +++ b/lib/src/android/webview_feature.dart @@ -134,7 +134,8 @@ class WebViewFeature_ { ///This feature covers [ServiceWorkerClient.shouldInterceptRequest]. static const SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST = - const WebViewFeature_._internal("SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST"); + const WebViewFeature_._internal( + "SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST"); /// static const SHOULD_OVERRIDE_WITH_REDIRECTS = @@ -210,7 +211,8 @@ class WebViewFeature_ { ///This feature covers [InAppWebViewSettings.enterpriseAuthenticationAppLinkPolicyEnabled]. static const ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY = - const WebViewFeature_._internal("ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY"); + const WebViewFeature_._internal( + "ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY"); ///Return whether a feature is supported at run-time. On devices running Android version `Build.VERSION_CODES.LOLLIPOP` and higher, ///this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device, @@ -249,7 +251,8 @@ class AndroidWebViewFeature_ { const AndroidWebViewFeature_._internal("DISABLED_ACTION_MODE_MENU_ITEMS"); /// - static const FORCE_DARK = const AndroidWebViewFeature_._internal("FORCE_DARK"); + static const FORCE_DARK = + const AndroidWebViewFeature_._internal("FORCE_DARK"); /// static const FORCE_DARK_STRATEGY = @@ -305,7 +308,8 @@ class AndroidWebViewFeature_ { /// static const SAFE_BROWSING_PRIVACY_POLICY_URL = - const AndroidWebViewFeature_._internal("SAFE_BROWSING_PRIVACY_POLICY_URL"); + const AndroidWebViewFeature_._internal( + "SAFE_BROWSING_PRIVACY_POLICY_URL"); /// static const SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY = @@ -400,7 +404,8 @@ class AndroidWebViewFeature_ { /// static const WEB_RESOURCE_REQUEST_IS_REDIRECT = - const AndroidWebViewFeature_._internal("WEB_RESOURCE_REQUEST_IS_REDIRECT"); + const AndroidWebViewFeature_._internal( + "WEB_RESOURCE_REQUEST_IS_REDIRECT"); /// static const WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE = @@ -417,7 +422,7 @@ class AndroidWebViewFeature_ { ///This feature covers [InAppWebViewSettings.willSuppressErrorPage]. static const SUPPRESS_ERROR_PAGE = - const AndroidWebViewFeature_._internal("SUPPRESS_ERROR_PAGE"); + const AndroidWebViewFeature_._internal("SUPPRESS_ERROR_PAGE"); ///This feature covers [InAppWebViewSettings.algorithmicDarkeningAllowed]. static const ALGORITHMIC_DARKENING = @@ -429,7 +434,8 @@ class AndroidWebViewFeature_ { ///This feature covers [InAppWebViewSettings.enterpriseAuthenticationAppLinkPolicyEnabled]. static const ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY = - const AndroidWebViewFeature_._internal("ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY"); + const AndroidWebViewFeature_._internal( + "ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY"); ///Return whether a feature is supported at run-time. On devices running Android version `Build.VERSION_CODES.LOLLIPOP` and higher, ///this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device, diff --git a/lib/src/content_blocker.dart b/lib/src/content_blocker.dart index b9935d82..9e6e448c 100755 --- a/lib/src/content_blocker.dart +++ b/lib/src/content_blocker.dart @@ -150,7 +150,8 @@ class ContentBlockerTrigger { } }); - List loadContextStringList = List.from(map["load-context"] ?? []); + List loadContextStringList = + List.from(map["load-context"] ?? []); loadContextStringList.forEach((typeValue) { var context = ContentBlockerTriggerLoadContext.fromNativeValue(typeValue); if (context != null) { @@ -185,15 +186,17 @@ class ContentBlockerAction { ///It specify a string that defines a selector list. Use CSS identifiers as the individual selector values, separated by commas. String? selector; - ContentBlockerAction( - {required this.type, this.selector}) { + ContentBlockerAction({required this.type, this.selector}) { if (this.type == ContentBlockerActionType.CSS_DISPLAY_NONE) { assert(this.selector != null); } } Map toMap() { - Map map = {"type": type.toNativeValue(), "selector": selector}; + Map map = { + "type": type.toNativeValue(), + "selector": selector + }; map.keys .where((key) => diff --git a/lib/src/cookie_manager.dart b/lib/src/cookie_manager.dart index ac0be519..c96cac5b 100755 --- a/lib/src/cookie_manager.dart +++ b/lib/src/cookie_manager.dart @@ -161,7 +161,8 @@ class CookieManager { if (isSecure != null && isSecure) cookieValue += "; Secure"; - if (sameSite != null) cookieValue += "; SameSite=" + sameSite.toNativeValue(); + if (sameSite != null) + cookieValue += "; SameSite=" + sameSite.toNativeValue(); cookieValue += ";"; @@ -243,7 +244,8 @@ class CookieManager { expiresDate: cookieMap["expiresDate"], isSessionOnly: cookieMap["isSessionOnly"], domain: cookieMap["domain"], - sameSite: HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]), + sameSite: + HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]), isSecure: cookieMap["isSecure"], isHttpOnly: cookieMap["isHttpOnly"], path: cookieMap["path"])); @@ -364,8 +366,8 @@ class CookieManager { expiresDate: cookies[i]["expiresDate"], isSessionOnly: cookies[i]["isSessionOnly"], domain: cookies[i]["domain"], - sameSite: - HTTPCookieSameSitePolicy.fromNativeValue(cookies[i]["sameSite"]), + sameSite: HTTPCookieSameSitePolicy.fromNativeValue( + cookies[i]["sameSite"]), isSecure: cookies[i]["isSecure"], isHttpOnly: cookies[i]["isHttpOnly"], path: cookies[i]["path"]); @@ -533,7 +535,8 @@ class CookieManager { expiresDate: cookieMap["expiresDate"], isSessionOnly: cookieMap["isSessionOnly"], domain: cookieMap["domain"], - sameSite: HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]), + sameSite: + HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]), isSecure: cookieMap["isSecure"], isHttpOnly: cookieMap["isHttpOnly"], path: cookieMap["path"])); @@ -595,7 +598,8 @@ class IOSCookieManager { expiresDate: cookieMap["expiresDate"], isSessionOnly: cookieMap["isSessionOnly"], domain: cookieMap["domain"], - sameSite: HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]), + sameSite: + HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]), isSecure: cookieMap["isSecure"], isHttpOnly: cookieMap["isHttpOnly"], path: cookieMap["path"])); diff --git a/lib/src/debug_logging_settings.dart b/lib/src/debug_logging_settings.dart index 554414d3..e7dd42a6 100644 --- a/lib/src/debug_logging_settings.dart +++ b/lib/src/debug_logging_settings.dart @@ -24,10 +24,9 @@ class DebugLoggingSettings { ///Use [print] instead of `developer.log` to log messages. bool usePrint; - DebugLoggingSettings({ - this.enabled = kDebugMode, - this.excludeFilter = const [], - this.maxLogMessageLength = -1, - this.usePrint = false - }); -} \ No newline at end of file + DebugLoggingSettings( + {this.enabled = kDebugMode, + this.excludeFilter = const [], + this.maxLogMessageLength = -1, + this.usePrint = false}); +} diff --git a/lib/src/find_interaction/main.dart b/lib/src/find_interaction/main.dart index 99676fa3..b0a3a463 100644 --- a/lib/src/find_interaction/main.dart +++ b/lib/src/find_interaction/main.dart @@ -1 +1 @@ -export 'find_interaction_controller.dart'; \ No newline at end of file +export 'find_interaction_controller.dart'; diff --git a/lib/src/in_app_browser/in_app_browser.dart b/lib/src/in_app_browser/in_app_browser.dart index 828537b9..f97fc7fa 100755 --- a/lib/src/in_app_browser/in_app_browser.dart +++ b/lib/src/in_app_browser/in_app_browser.dart @@ -103,8 +103,7 @@ class InAppBrowser { _debugLog(String method, dynamic args) { if (InAppBrowser.debugLoggingSettings.enabled) { - for (var regExp - in InAppBrowser.debugLoggingSettings.excludeFilter) { + for (var regExp in InAppBrowser.debugLoggingSettings.excludeFilter) { if (regExp.hasMatch(method)) return; } var maxLogMessageLength = @@ -773,7 +772,8 @@ class InAppBrowser { ///**Supported Platforms/Implementations**: ///- Android native WebView ///- iOS - Future? onPrintRequest(Uri? url, PrintJobController? printJobController) { + Future? onPrintRequest( + Uri? url, PrintJobController? printJobController) { return null; } diff --git a/lib/src/in_app_webview/android/in_app_webview_options.dart b/lib/src/in_app_webview/android/in_app_webview_options.dart index 6a09c084..18e4e958 100755 --- a/lib/src/in_app_webview/android/in_app_webview_options.dart +++ b/lib/src/in_app_webview/android/in_app_webview_options.dart @@ -318,7 +318,8 @@ class AndroidInAppWebViewOptions "defaultFixedFontSize": defaultFixedFontSize, "defaultFontSize": defaultFontSize, "defaultTextEncodingName": defaultTextEncodingName, - "disabledActionModeMenuItems": disabledActionModeMenuItems?.toNativeValue(), + "disabledActionModeMenuItems": + disabledActionModeMenuItems?.toNativeValue(), "fantasyFontFamily": fantasyFontFamily, "fixedFontFamily": fixedFontFamily, "forceDark": forceDark?.toNativeValue(), @@ -380,7 +381,8 @@ class AndroidInAppWebViewOptions instance.defaultFontSize = map["defaultFontSize"]; instance.defaultTextEncodingName = map["defaultTextEncodingName"]; instance.disabledActionModeMenuItems = - AndroidActionModeMenuItem.fromNativeValue(map["disabledActionModeMenuItems"]); + AndroidActionModeMenuItem.fromNativeValue( + map["disabledActionModeMenuItems"]); instance.fantasyFontFamily = map["fantasyFontFamily"]; instance.fixedFontFamily = map["fixedFontFamily"]; instance.forceDark = AndroidForceDark.fromNativeValue(map["forceDark"]); diff --git a/lib/src/in_app_webview/apple/in_app_webview_controller.dart b/lib/src/in_app_webview/apple/in_app_webview_controller.dart index 4d13b9d8..6bd991fe 100644 --- a/lib/src/in_app_webview/apple/in_app_webview_controller.dart +++ b/lib/src/in_app_webview/apple/in_app_webview_controller.dart @@ -24,12 +24,12 @@ class IOSInAppWebViewController { @Deprecated("Use InAppWebViewController.createPdf instead") Future createPdf( {@Deprecated("Use pdfConfiguration instead") - // ignore: deprecated_member_use_from_same_package - IOSWKPDFConfiguration? iosWKPdfConfiguration, - PDFConfiguration? pdfConfiguration}) async { + // ignore: deprecated_member_use_from_same_package + IOSWKPDFConfiguration? iosWKPdfConfiguration, + PDFConfiguration? pdfConfiguration}) async { Map args = {}; args.putIfAbsent('pdfConfiguration', - () => pdfConfiguration?.toMap() ?? iosWKPdfConfiguration?.toMap()); + () => pdfConfiguration?.toMap() ?? iosWKPdfConfiguration?.toMap()); return await _channel.invokeMethod('createPdf', args); } diff --git a/lib/src/in_app_webview/apple/in_app_webview_options.dart b/lib/src/in_app_webview/apple/in_app_webview_options.dart index 5f334b00..44787d77 100755 --- a/lib/src/in_app_webview/apple/in_app_webview_options.dart +++ b/lib/src/in_app_webview/apple/in_app_webview_options.dart @@ -349,8 +349,8 @@ class IOSInAppWebViewOptions map["automaticallyAdjustsScrollIndicatorInsets"]; instance.accessibilityIgnoresInvertColors = map["accessibilityIgnoresInvertColors"]; - instance.decelerationRate = - IOSUIScrollViewDecelerationRate.fromNativeValue(map["decelerationRate"])!; + instance.decelerationRate = IOSUIScrollViewDecelerationRate.fromNativeValue( + map["decelerationRate"])!; instance.alwaysBounceVertical = map["alwaysBounceVertical"]; instance.alwaysBounceHorizontal = map["alwaysBounceHorizontal"]; instance.scrollsToTop = map["scrollsToTop"]; diff --git a/lib/src/in_app_webview/headless_in_app_webview.dart b/lib/src/in_app_webview/headless_in_app_webview.dart index 3883316d..291b43b5 100644 --- a/lib/src/in_app_webview/headless_in_app_webview.dart +++ b/lib/src/in_app_webview/headless_in_app_webview.dart @@ -87,7 +87,7 @@ class HeadlessInAppWebView implements WebView, Disposable { this.onReceivedServerTrustAuthRequest, this.onReceivedClientCertRequest, @Deprecated('Use FindInteractionController.onFindResultReceived instead') - this.onFindResultReceived, + this.onFindResultReceived, this.shouldInterceptAjaxRequest, this.onAjaxReadyStateChange, this.onAjaxProgress, diff --git a/lib/src/in_app_webview/in_app_webview.dart b/lib/src/in_app_webview/in_app_webview.dart index 056394ac..fc0ff3b4 100755 --- a/lib/src/in_app_webview/in_app_webview.dart +++ b/lib/src/in_app_webview/in_app_webview.dart @@ -79,7 +79,7 @@ class InAppWebView extends StatefulWidget implements WebView { this.onReceivedServerTrustAuthRequest, this.onReceivedClientCertRequest, @Deprecated('Use FindInteractionController.onFindResultReceived instead') - this.onFindResultReceived, + this.onFindResultReceived, this.shouldInterceptAjaxRequest, this.onAjaxReadyStateChange, this.onAjaxProgress, diff --git a/lib/src/in_app_webview/in_app_webview_controller.dart b/lib/src/in_app_webview/in_app_webview_controller.dart index 9fac0e56..f746b08f 100644 --- a/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/lib/src/in_app_webview/in_app_webview_controller.dart @@ -534,7 +534,8 @@ class InAppWebViewController { if (_webview != null) { if (_webview!.onFormResubmission != null) - return (await _webview!.onFormResubmission!(this, uri))?.toNativeValue(); + return (await _webview!.onFormResubmission!(this, uri)) + ?.toNativeValue(); else { // ignore: deprecated_member_use_from_same_package return (await _webview!.androidOnFormResubmission!(this, uri)) @@ -802,8 +803,12 @@ class InAppWebViewController { } break; case "onFindResultReceived": - if ((_webview != null && (_webview!.onFindResultReceived != null || - (_webview!.findInteractionController != null && _webview!.findInteractionController!.onFindResultReceived != null))) || + if ((_webview != null && + (_webview!.onFindResultReceived != null || + (_webview!.findInteractionController != null && + _webview!.findInteractionController! + .onFindResultReceived != + null))) || _inAppBrowser != null) { int activeMatchOrdinal = call.arguments["activeMatchOrdinal"]; int numberOfMatches = call.arguments["numberOfMatches"]; @@ -813,19 +818,23 @@ class InAppWebViewController { _webview!.findInteractionController!.onFindResultReceived != null) _webview!.findInteractionController!.onFindResultReceived!( - _webview!.findInteractionController!, activeMatchOrdinal, - numberOfMatches, isDoneCounting); + _webview!.findInteractionController!, + activeMatchOrdinal, + numberOfMatches, + isDoneCounting); else _webview!.onFindResultReceived!( - this, activeMatchOrdinal, numberOfMatches, isDoneCounting); - } - else { + this, activeMatchOrdinal, numberOfMatches, isDoneCounting); + } else { if (_inAppBrowser!.findInteractionController != null && - _inAppBrowser!.findInteractionController! - .onFindResultReceived != null) + _inAppBrowser! + .findInteractionController!.onFindResultReceived != + null) _inAppBrowser!.findInteractionController!.onFindResultReceived!( - _webview!.findInteractionController!, activeMatchOrdinal, - numberOfMatches, isDoneCounting); + _webview!.findInteractionController!, + activeMatchOrdinal, + numberOfMatches, + isDoneCounting); else _inAppBrowser!.onFindResultReceived( activeMatchOrdinal, numberOfMatches, isDoneCounting); @@ -1243,9 +1252,11 @@ class InAppWebViewController { AjaxRequest request = AjaxRequest.fromMap(arguments)!; if (_webview != null && _webview!.onAjaxReadyStateChange != null) - return (await _webview!.onAjaxReadyStateChange!(this, request))?.toNativeValue(); + return (await _webview!.onAjaxReadyStateChange!(this, request)) + ?.toNativeValue(); else - return (await _inAppBrowser!.onAjaxReadyStateChange(request))?.toNativeValue(); + return (await _inAppBrowser!.onAjaxReadyStateChange(request)) + ?.toNativeValue(); } return null; case "onAjaxProgress": @@ -1255,9 +1266,11 @@ class InAppWebViewController { AjaxRequest request = AjaxRequest.fromMap(arguments)!; if (_webview != null && _webview!.onAjaxProgress != null) - return (await _webview!.onAjaxProgress!(this, request))?.toNativeValue(); + return (await _webview!.onAjaxProgress!(this, request)) + ?.toNativeValue(); else - return (await _inAppBrowser!.onAjaxProgress(request))?.toNativeValue(); + return (await _inAppBrowser!.onAjaxProgress(request)) + ?.toNativeValue(); } return null; case "shouldInterceptFetchRequest": @@ -2293,7 +2306,8 @@ class InAppWebViewController { ///- Android native WebView ([Official API - PrintManager.print](https://developer.android.com/reference/android/print/PrintManager#print(java.lang.String,%20android.print.PrintDocumentAdapter,%20android.print.PrintAttributes))) ///- iOS ([Official API - UIPrintInteractionController.present](https://developer.apple.com/documentation/uikit/uiprintinteractioncontroller/1618149-present)) ///- Web ([Official API - Window.print](https://developer.mozilla.org/en-US/docs/Web/API/Window/print)) - Future printCurrentPage({PrintJobSettings? settings}) async { + Future printCurrentPage( + {PrintJobSettings? settings}) async { Map args = {}; args.putIfAbsent("settings", () => settings?.toMap()); String? jobId = await _channel.invokeMethod('printCurrentPage', args); @@ -2838,7 +2852,8 @@ class InAppWebViewController { if (defaultTargetPlatform == TargetPlatform.android) { assert(filePath.endsWith("." + WebArchiveFormat.MHT.toNativeValue())); } else if (defaultTargetPlatform == TargetPlatform.iOS) { - assert(filePath.endsWith("." + WebArchiveFormat.WEBARCHIVE.toNativeValue())); + assert(filePath + .endsWith("." + WebArchiveFormat.WEBARCHIVE.toNativeValue())); } } @@ -3390,7 +3405,10 @@ class InAppWebViewController { /// ///**Supported Platforms/Implementations**: ///- iOS ([Official API - WKWebView.loadSimulatedRequest(_:response:responseData:)](https://developer.apple.com/documentation/webkit/wkwebview/3763094-loadsimulatedrequest) and [Official API - WKWebView.loadSimulatedRequest(_:responseHTML:)](https://developer.apple.com/documentation/webkit/wkwebview/3763095-loadsimulatedrequest)). - Future loadSimulatedRequest({required URLRequest urlRequest, required Uint8List data, URLResponse? urlResponse}) async { + Future loadSimulatedRequest( + {required URLRequest urlRequest, + required Uint8List data, + URLResponse? urlResponse}) async { Map args = {}; args.putIfAbsent('urlRequest', () => urlRequest.toMap()); args.putIfAbsent('data', () => data); diff --git a/lib/src/in_app_webview/in_app_webview_settings.dart b/lib/src/in_app_webview/in_app_webview_settings.dart index aaa6a861..58e99250 100755 --- a/lib/src/in_app_webview/in_app_webview_settings.dart +++ b/lib/src/in_app_webview/in_app_webview_settings.dart @@ -12,7 +12,6 @@ import '../android/webview_feature.dart'; import '../in_app_webview/in_app_webview_controller.dart'; import '../context_menu.dart'; - ///This class represents all the WebView settings available. class InAppWebViewSettings { ///Set to `true` to be able to listen at the [WebView.shouldOverrideUrlLoading] event. The default value is `false`. @@ -1184,7 +1183,8 @@ class InAppWebViewSettings { this.fantasyFontFamily = "fantasy", this.fixedFontFamily = "monospace", this.forceDark = ForceDark.OFF, - this.forceDarkStrategy = ForceDarkStrategy.PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING, + this.forceDarkStrategy = + ForceDarkStrategy.PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING, this.geolocationEnabled = true, this.layoutAlgorithm, this.loadWithOverviewMode = true, @@ -1277,11 +1277,16 @@ class InAppWebViewSettings { !this.resourceCustomSchemes.contains("https")); assert( allowingReadAccessTo == null || allowingReadAccessTo!.isScheme("file")); - assert((minimumViewportInset == null && maximumViewportInset == null) || - minimumViewportInset != null && maximumViewportInset != null && - minimumViewportInset!.isNonNegative && maximumViewportInset!.isNonNegative && - minimumViewportInset!.vertical <= maximumViewportInset!.vertical && - minimumViewportInset!.horizontal <= maximumViewportInset!.horizontal, + assert( + (minimumViewportInset == null && maximumViewportInset == null) || + minimumViewportInset != null && + maximumViewportInset != null && + minimumViewportInset!.isNonNegative && + maximumViewportInset!.isNonNegative && + minimumViewportInset!.vertical <= + maximumViewportInset!.vertical && + minimumViewportInset!.horizontal <= + maximumViewportInset!.horizontal, "minimumViewportInset cannot be larger than maximumViewportInset"); } @@ -1341,7 +1346,8 @@ class InAppWebViewSettings { "defaultFixedFontSize": defaultFixedFontSize, "defaultFontSize": defaultFontSize, "defaultTextEncodingName": defaultTextEncodingName, - "disabledActionModeMenuItems": disabledActionModeMenuItems?.toNativeValue(), + "disabledActionModeMenuItems": + disabledActionModeMenuItems?.toNativeValue(), "fantasyFontFamily": fantasyFontFamily, "fixedFontFamily": fixedFontFamily, "forceDark": forceDark?.toNativeValue(), @@ -1381,7 +1387,8 @@ class InAppWebViewSettings { "willSuppressErrorPage": willSuppressErrorPage, "algorithmicDarkeningAllowed": algorithmicDarkeningAllowed, "requestedWithHeaderMode": requestedWithHeaderMode?.toNativeValue(), - "enterpriseAuthenticationAppLinkPolicyEnabled": enterpriseAuthenticationAppLinkPolicyEnabled, + "enterpriseAuthenticationAppLinkPolicyEnabled": + enterpriseAuthenticationAppLinkPolicyEnabled, "disallowOverScroll": disallowOverScroll, "enableViewportScale": enableViewportScale, "suppressesIncrementalRendering": suppressesIncrementalRendering, @@ -1450,7 +1457,8 @@ class InAppWebViewSettings { List dataDetectorTypesList = List.from(map["dataDetectorTypes"] ?? []); dataDetectorTypesList.forEach((dataDetectorTypeValue) { - var dataDetectorType = DataDetectorTypes.fromNativeValue(dataDetectorTypeValue); + var dataDetectorType = + DataDetectorTypes.fromNativeValue(dataDetectorTypeValue); if (dataDetectorType != null) { dataDetectorTypes.add(dataDetectorType); } @@ -1523,11 +1531,13 @@ class InAppWebViewSettings { settings.defaultFontSize = map["defaultFontSize"]; settings.defaultTextEncodingName = map["defaultTextEncodingName"]; settings.disabledActionModeMenuItems = - ActionModeMenuItem.fromNativeValue(map["disabledActionModeMenuItems"]); + ActionModeMenuItem.fromNativeValue( + map["disabledActionModeMenuItems"]); settings.fantasyFontFamily = map["fantasyFontFamily"]; settings.fixedFontFamily = map["fixedFontFamily"]; settings.forceDark = ForceDark.fromNativeValue(map["forceDark"]); - settings.forceDarkStrategy = ForceDarkStrategy.fromNativeValue(map["forceDarkStrategy"]); + settings.forceDarkStrategy = + ForceDarkStrategy.fromNativeValue(map["forceDarkStrategy"]); settings.geolocationEnabled = map["geolocationEnabled"]; settings.layoutAlgorithm = LayoutAlgorithm.fromNativeValue(map["layoutAlgorithm"]); @@ -1545,17 +1555,20 @@ class InAppWebViewSettings { settings.hardwareAcceleration = map["hardwareAcceleration"]; settings.supportMultipleWindows = map["supportMultipleWindows"]; settings.regexToCancelSubFramesLoading = - map["regexToCancelSubFramesLoading"]; + map["regexToCancelSubFramesLoading"]; settings.useHybridComposition = map["useHybridComposition"]; settings.useShouldInterceptRequest = map["useShouldInterceptRequest"]; settings.useOnRenderProcessGone = map["useOnRenderProcessGone"]; - settings.overScrollMode = OverScrollMode.fromNativeValue(map["overScrollMode"]); + settings.overScrollMode = + OverScrollMode.fromNativeValue(map["overScrollMode"]); settings.networkAvailable = map["networkAvailable"]; - settings.scrollBarStyle = ScrollBarStyle.fromNativeValue(map["scrollBarStyle"]); + settings.scrollBarStyle = + ScrollBarStyle.fromNativeValue(map["scrollBarStyle"]); settings.verticalScrollbarPosition = - VerticalScrollbarPosition.fromNativeValue(map["verticalScrollbarPosition"]); + VerticalScrollbarPosition.fromNativeValue( + map["verticalScrollbarPosition"]); settings.scrollBarDefaultDelayBeforeFade = - map["scrollBarDefaultDelayBeforeFade"]; + map["scrollBarDefaultDelayBeforeFade"]; settings.scrollbarFadingEnabled = map["scrollbarFadingEnabled"]; settings.scrollBarFadeDuration = map["scrollBarFadeDuration"]; settings.rendererPriorityPolicy = RendererPriorityPolicy.fromMap( @@ -1570,37 +1583,40 @@ class InAppWebViewSettings { settings.horizontalScrollbarTrackColor = UtilColor.fromHex(map["horizontalScrollbarTrackColor"]); settings.willSuppressErrorPage = map["willSuppressErrorPage"]; - settings.algorithmicDarkeningAllowed = map["algorithmicDarkeningAllowed"]; - settings.requestedWithHeaderMode = RequestedWithHeaderMode.fromNativeValue(map["requestedWithHeaderMode"]); - settings.enterpriseAuthenticationAppLinkPolicyEnabled = map["enterpriseAuthenticationAppLinkPolicyEnabled"]; - } - else if (defaultTargetPlatform == TargetPlatform.iOS || + settings.algorithmicDarkeningAllowed = + map["algorithmicDarkeningAllowed"]; + settings.requestedWithHeaderMode = + RequestedWithHeaderMode.fromNativeValue( + map["requestedWithHeaderMode"]); + settings.enterpriseAuthenticationAppLinkPolicyEnabled = + map["enterpriseAuthenticationAppLinkPolicyEnabled"]; + } else if (defaultTargetPlatform == TargetPlatform.iOS || defaultTargetPlatform == TargetPlatform.macOS) { settings.disallowOverScroll = map["disallowOverScroll"]; settings.enableViewportScale = map["enableViewportScale"]; settings.suppressesIncrementalRendering = - map["suppressesIncrementalRendering"]; + map["suppressesIncrementalRendering"]; settings.allowsAirPlayForMediaPlayback = - map["allowsAirPlayForMediaPlayback"]; + map["allowsAirPlayForMediaPlayback"]; settings.allowsBackForwardNavigationGestures = - map["allowsBackForwardNavigationGestures"]; + map["allowsBackForwardNavigationGestures"]; settings.allowsLinkPreview = map["allowsLinkPreview"]; settings.ignoresViewportScaleLimits = map["ignoresViewportScaleLimits"]; settings.allowsInlineMediaPlayback = map["allowsInlineMediaPlayback"]; settings.allowsPictureInPictureMediaPlayback = - map["allowsPictureInPictureMediaPlayback"]; + map["allowsPictureInPictureMediaPlayback"]; settings.isFraudulentWebsiteWarningEnabled = - map["isFraudulentWebsiteWarningEnabled"]; + map["isFraudulentWebsiteWarningEnabled"]; settings.selectionGranularity = - SelectionGranularity.fromNativeValue(map["selectionGranularity"])!; + SelectionGranularity.fromNativeValue(map["selectionGranularity"])!; settings.dataDetectorTypes = dataDetectorTypes; settings.sharedCookiesEnabled = map["sharedCookiesEnabled"]; settings.automaticallyAdjustsScrollIndicatorInsets = - map["automaticallyAdjustsScrollIndicatorInsets"]; + map["automaticallyAdjustsScrollIndicatorInsets"]; settings.accessibilityIgnoresInvertColors = - map["accessibilityIgnoresInvertColors"]; - settings.decelerationRate = - ScrollViewDecelerationRate.fromNativeValue(map["decelerationRate"])!; + map["accessibilityIgnoresInvertColors"]; + settings.decelerationRate = ScrollViewDecelerationRate.fromNativeValue( + map["decelerationRate"])!; settings.alwaysBounceVertical = map["alwaysBounceVertical"]; settings.alwaysBounceHorizontal = map["alwaysBounceHorizontal"]; settings.scrollsToTop = map["scrollsToTop"]; @@ -1608,31 +1624,33 @@ class InAppWebViewSettings { settings.maximumZoomScale = map["maximumZoomScale"]; settings.minimumZoomScale = map["minimumZoomScale"]; settings.contentInsetAdjustmentBehavior = - ScrollViewContentInsetAdjustmentBehavior.fromNativeValue( - map["contentInsetAdjustmentBehavior"])!; + ScrollViewContentInsetAdjustmentBehavior.fromNativeValue( + map["contentInsetAdjustmentBehavior"])!; settings.isDirectionalLockEnabled = map["isDirectionalLockEnabled"]; settings.mediaType = map["mediaType"]; settings.pageZoom = map["pageZoom"]; settings.limitsNavigationsToAppBoundDomains = - map["limitsNavigationsToAppBoundDomains"]; + map["limitsNavigationsToAppBoundDomains"]; settings.useOnNavigationResponse = map["useOnNavigationResponse"]; settings.applePayAPIEnabled = map["applePayAPIEnabled"]; settings.allowingReadAccessTo = map["allowingReadAccessTo"] != null ? Uri.parse(map["allowingReadAccessTo"]) : null; settings.disableLongPressContextMenuOnLinks = - map["disableLongPressContextMenuOnLinks"]; + map["disableLongPressContextMenuOnLinks"]; settings.disableInputAccessoryView = map["disableInputAccessoryView"]; settings.underPageBackgroundColor = UtilColor.fromHex(map["underPageBackgroundColor"]); settings.isTextInteractionEnabled = map["isTextInteractionEnabled"]; settings.isSiteSpecificQuirksModeEnabled = - map["isSiteSpecificQuirksModeEnabled"]; + map["isSiteSpecificQuirksModeEnabled"]; settings.upgradeKnownHostsToHTTPS = map["upgradeKnownHostsToHTTPS"]; settings.isElementFullscreenEnabled = map["isElementFullscreenEnabled"]; settings.isFindInteractionEnabled = map["isFindInteractionEnabled"]; - settings.minimumViewportInset = MapEdgeInsets.fromMap(map["minimumViewportInset"]?.cast()); - settings.maximumViewportInset = MapEdgeInsets.fromMap(map["maximumViewportInset"]?.cast()); + settings.minimumViewportInset = MapEdgeInsets.fromMap( + map["minimumViewportInset"]?.cast()); + settings.maximumViewportInset = MapEdgeInsets.fromMap( + map["maximumViewportInset"]?.cast()); } } return settings; diff --git a/lib/src/in_app_webview/main.dart b/lib/src/in_app_webview/main.dart index 317d79ee..2092fb51 100644 --- a/lib/src/in_app_webview/main.dart +++ b/lib/src/in_app_webview/main.dart @@ -5,4 +5,4 @@ export 'in_app_webview_settings.dart'; export 'headless_in_app_webview.dart'; export 'android/main.dart'; export 'apple/main.dart'; -export '../find_interaction/find_interaction_controller.dart'; \ No newline at end of file +export '../find_interaction/find_interaction_controller.dart'; diff --git a/lib/src/in_app_webview/webview.dart b/lib/src/in_app_webview/webview.dart index 1f98efdd..5198f887 100644 --- a/lib/src/in_app_webview/webview.dart +++ b/lib/src/in_app_webview/webview.dart @@ -993,7 +993,7 @@ abstract class WebView { this.onReceivedServerTrustAuthRequest, this.onReceivedClientCertRequest, @Deprecated('Use FindInteractionController.onFindResultReceived instead') - this.onFindResultReceived, + this.onFindResultReceived, this.shouldInterceptAjaxRequest, this.onAjaxReadyStateChange, this.onAjaxProgress, diff --git a/lib/src/print_job/main.dart b/lib/src/print_job/main.dart index ebf92a43..ba85e144 100644 --- a/lib/src/print_job/main.dart +++ b/lib/src/print_job/main.dart @@ -1,2 +1,2 @@ export 'print_job_controller.dart'; -export 'print_job_settings.dart'; \ No newline at end of file +export 'print_job_settings.dart'; diff --git a/lib/src/print_job/print_job_controller.dart b/lib/src/print_job/print_job_controller.dart index 77c932be..26a7f858 100644 --- a/lib/src/print_job/print_job_controller.dart +++ b/lib/src/print_job/print_job_controller.dart @@ -4,7 +4,8 @@ import '../in_app_webview/in_app_webview_controller.dart'; import '../types/disposable.dart'; ///A completion handler for the [PrintJobController]. -typedef PrintJobCompletionHandler = Future Function(bool completed, String? error)?; +typedef PrintJobCompletionHandler = Future Function( + bool completed, String? error)?; ///Class representing a print job eventually returned by [InAppWebViewController.printCurrentPage]. class PrintJobController implements Disposable { @@ -19,8 +20,7 @@ class PrintJobController implements Disposable { ///- iOS ([Official API - UIPrintInteractionController.CompletionHandler](https://developer.apple.com/documentation/uikit/uiprintinteractioncontroller/completionhandler)) PrintJobCompletionHandler onComplete; - PrintJobController( - {required this.id}) { + PrintJobController({required this.id}) { this._channel = MethodChannel( 'com.pichillilorenzo/flutter_inappwebview_printjobcontroller_$id'); this._channel.setMethodCallHandler((call) async { @@ -94,8 +94,7 @@ class PrintJobController implements Disposable { Future getInfo() async { Map args = {}; Map? infoMap = - (await _channel.invokeMethod('getInfo', args)) - ?.cast(); + (await _channel.invokeMethod('getInfo', args))?.cast(); return PrintJobInfo.fromMap(infoMap); } @@ -109,4 +108,4 @@ class PrintJobController implements Disposable { Map args = {}; await _channel.invokeMethod('dispose', args); } -} \ No newline at end of file +} diff --git a/lib/src/print_job/print_job_settings.dart b/lib/src/print_job/print_job_settings.dart index f24be180..26673efc 100644 --- a/lib/src/print_job/print_job_settings.dart +++ b/lib/src/print_job/print_job_settings.dart @@ -180,30 +180,29 @@ class PrintJobSettings { ///Gets a [PrintJobSettings] instance from a [Map] value. factory PrintJobSettings.fromMap(Map map) { return PrintJobSettings( - handledByClient: map["handledByClient"], - jobName: map["jobName"], - animated: map["animated"], - orientation: PrintJobOrientation.fromNativeValue(map["orientation"]), - numberOfPages: map["numberOfPages"], - forceRenderingQuality: - PrintJobRenderingQuality.fromNativeValue(map["forceRenderingQuality"]), - margins: - MapEdgeInsets.fromMap(map["margins"]?.cast()), - mediaSize: - PrintJobMediaSize.fromMap(map["mediaSize"]?.cast()), - colorMode: PrintJobColorMode.fromNativeValue(map["colorMode"]), - duplexMode: PrintJobDuplexMode.fromNativeValue(map["duplexMode"]), - outputType: PrintJobOutputType.fromNativeValue(map["outputType"]), - resolution: - PrintJobResolution.fromMap(map["resolution"]?.cast()), - showsNumberOfCopies: map["showsNumberOfCopies"], - showsPaperSelectionForLoadedPapers: - map["showsPaperSelectionForLoadedPapers"], - showsPaperOrientation: map["showsPaperOrientation"], - maximumContentHeight: map["maximumContentHeight"], - maximumContentWidth: map["maximumContentWidth"], - footerHeight: map["footerHeight"], - headerHeight: map["headerHeight"], + handledByClient: map["handledByClient"], + jobName: map["jobName"], + animated: map["animated"], + orientation: PrintJobOrientation.fromNativeValue(map["orientation"]), + numberOfPages: map["numberOfPages"], + forceRenderingQuality: PrintJobRenderingQuality.fromNativeValue( + map["forceRenderingQuality"]), + margins: MapEdgeInsets.fromMap(map["margins"]?.cast()), + mediaSize: + PrintJobMediaSize.fromMap(map["mediaSize"]?.cast()), + colorMode: PrintJobColorMode.fromNativeValue(map["colorMode"]), + duplexMode: PrintJobDuplexMode.fromNativeValue(map["duplexMode"]), + outputType: PrintJobOutputType.fromNativeValue(map["outputType"]), + resolution: PrintJobResolution.fromMap( + map["resolution"]?.cast()), + showsNumberOfCopies: map["showsNumberOfCopies"], + showsPaperSelectionForLoadedPapers: + map["showsPaperSelectionForLoadedPapers"], + showsPaperOrientation: map["showsPaperOrientation"], + maximumContentHeight: map["maximumContentHeight"], + maximumContentWidth: map["maximumContentWidth"], + footerHeight: map["footerHeight"], + headerHeight: map["headerHeight"], ); } @@ -242,4 +241,4 @@ class PrintJobSettings { String toString() { return toMap().toString(); } -} \ No newline at end of file +} diff --git a/lib/src/pull_to_refresh/pull_to_refresh_controller.dart b/lib/src/pull_to_refresh/pull_to_refresh_controller.dart index ac475122..bfcb95c9 100644 --- a/lib/src/pull_to_refresh/pull_to_refresh_controller.dart +++ b/lib/src/pull_to_refresh/pull_to_refresh_controller.dart @@ -60,7 +60,7 @@ class PullToRefreshController { _debugLog(String method, dynamic args) { if (PullToRefreshController.debugLoggingSettings.enabled) { for (var regExp - in PullToRefreshController.debugLoggingSettings.excludeFilter) { + in PullToRefreshController.debugLoggingSettings.excludeFilter) { if (regExp.hasMatch(method)) return; } var maxLogMessageLength = diff --git a/lib/src/types/action_mode_menu_item.dart b/lib/src/types/action_mode_menu_item.dart index 8276c9cd..b838ce5e 100644 --- a/lib/src/types/action_mode_menu_item.dart +++ b/lib/src/types/action_mode_menu_item.dart @@ -3,9 +3,7 @@ import 'package:flutter_inappwebview_internal_annotations/flutter_inappwebview_i part 'action_mode_menu_item.g.dart'; ///Class used to disable the action mode menu items. -@ExchangeableEnum( - bitwiseOrOperator: true -) +@ExchangeableEnum(bitwiseOrOperator: true) class ActionModeMenuItem_ { // ignore: unused_field final int _value; @@ -30,9 +28,7 @@ class ActionModeMenuItem_ { /// ///Use [ActionModeMenuItem] instead. @Deprecated("Use ActionModeMenuItem instead") -@ExchangeableEnum( - bitwiseOrOperator: true -) +@ExchangeableEnum(bitwiseOrOperator: true) class AndroidActionModeMenuItem_ { // ignore: unused_field final int _value; @@ -46,9 +42,9 @@ class AndroidActionModeMenuItem_ { ///Disable menu item "Web Search". static const MENU_ITEM_WEB_SEARCH = - const AndroidActionModeMenuItem_._internal(2); + const AndroidActionModeMenuItem_._internal(2); ///Disable all the action mode menu items for text processing. static const MENU_ITEM_PROCESS_TEXT = - const AndroidActionModeMenuItem_._internal(4); -} \ No newline at end of file + const AndroidActionModeMenuItem_._internal(4); +} diff --git a/lib/src/types/ajax_request.dart b/lib/src/types/ajax_request.dart index 6480f11f..42d56f71 100644 --- a/lib/src/types/ajax_request.dart +++ b/lib/src/types/ajax_request.dart @@ -79,23 +79,22 @@ class AjaxRequest_ { AjaxRequest_( {this.data, - this.method, - this.url, - this.isAsync, - this.user, - this.password, - this.withCredentials, - this.headers, - this.readyState, - this.status, - this.responseURL, - this.responseType, - this.response, - this.responseText, - this.responseXML, - this.statusText, - this.responseHeaders, - this.event, - this.action = AjaxRequestAction_.PROCEED}); - -} \ No newline at end of file + this.method, + this.url, + this.isAsync, + this.user, + this.password, + this.withCredentials, + this.headers, + this.readyState, + this.status, + this.responseURL, + this.responseType, + this.response, + this.responseText, + this.responseXML, + this.statusText, + this.responseHeaders, + this.event, + this.action = AjaxRequestAction_.PROCEED}); +} diff --git a/lib/src/types/ajax_request_action.dart b/lib/src/types/ajax_request_action.dart index ee7b9c84..e70c2ffb 100644 --- a/lib/src/types/ajax_request_action.dart +++ b/lib/src/types/ajax_request_action.dart @@ -16,4 +16,4 @@ class AjaxRequestAction_ { ///Proceeds with the current [AjaxRequest]. static const PROCEED = const AjaxRequestAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/ajax_request_event.dart b/lib/src/types/ajax_request_event.dart index 90dc139f..399af715 100644 --- a/lib/src/types/ajax_request_event.dart +++ b/lib/src/types/ajax_request_event.dart @@ -24,5 +24,6 @@ class AjaxRequestEvent_ { ///When downloading a resource using HTTP, this only represent the content itself, not headers and other overhead. int? total; - AjaxRequestEvent_({this.type, this.lengthComputable, this.loaded, this.total}); -} \ No newline at end of file + AjaxRequestEvent_( + {this.type, this.lengthComputable, this.loaded, this.total}); +} diff --git a/lib/src/types/ajax_request_event_type.dart b/lib/src/types/ajax_request_event_type.dart index a56be081..706671ed 100644 --- a/lib/src/types/ajax_request_event_type.dart +++ b/lib/src/types/ajax_request_event_type.dart @@ -32,4 +32,4 @@ class AjaxRequestEventType_ { ///The TIMEOUT event is fired when progression is terminated due to preset time expiring. static const TIMEOUT = const AjaxRequestEventType_._internal("timeout"); -} \ No newline at end of file +} diff --git a/lib/src/types/ajax_request_headers.dart b/lib/src/types/ajax_request_headers.dart index 1c37e967..e334d0e5 100644 --- a/lib/src/types/ajax_request_headers.dart +++ b/lib/src/types/ajax_request_headers.dart @@ -44,4 +44,4 @@ class AjaxRequestHeaders_ { String toString() { return 'AjaxRequestHeaders{headers: $_headers, requestHeaders: $_newHeaders}'; } -} \ No newline at end of file +} diff --git a/lib/src/types/ajax_request_ready_state.dart b/lib/src/types/ajax_request_ready_state.dart index bc5987b0..1a74baff 100644 --- a/lib/src/types/ajax_request_ready_state.dart +++ b/lib/src/types/ajax_request_ready_state.dart @@ -25,4 +25,4 @@ class AjaxRequestReadyState_ { ///The operation is complete. static const DONE = const AjaxRequestReadyState_._internal(4); -} \ No newline at end of file +} diff --git a/lib/src/types/attributed_string.dart b/lib/src/types/attributed_string.dart index 3861e6a7..56cb2f61 100644 --- a/lib/src/types/attributed_string.dart +++ b/lib/src/types/attributed_string.dart @@ -251,4 +251,4 @@ class IOSNSAttributedString_ { this.underlineColor, this.underlineStyle, }); -} \ No newline at end of file +} diff --git a/lib/src/types/attributed_string_text_effect_style.dart b/lib/src/types/attributed_string_text_effect_style.dart index 10277280..31651343 100644 --- a/lib/src/types/attributed_string_text_effect_style.dart +++ b/lib/src/types/attributed_string_text_effect_style.dart @@ -11,7 +11,7 @@ class AttributedStringTextEffectStyle_ { ///A graphical text effect that gives glyphs the appearance of letterpress printing, which involves pressing the type into the paper. static const LETTERPRESS_STYLE = - const AttributedStringTextEffectStyle_._internal("letterpressStyle"); + const AttributedStringTextEffectStyle_._internal("letterpressStyle"); } ///An iOS-specific Class that represents the supported proxy types. @@ -25,5 +25,5 @@ class IOSNSAttributedStringTextEffectStyle_ { ///A graphical text effect that gives glyphs the appearance of letterpress printing, which involves pressing the type into the paper. static const LETTERPRESS_STYLE = - const IOSNSAttributedStringTextEffectStyle_._internal("letterpressStyle"); -} \ No newline at end of file + const IOSNSAttributedStringTextEffectStyle_._internal("letterpressStyle"); +} diff --git a/lib/src/types/cache_mode.dart b/lib/src/types/cache_mode.dart index 0b6f6eab..f89b21cd 100644 --- a/lib/src/types/cache_mode.dart +++ b/lib/src/types/cache_mode.dart @@ -44,4 +44,4 @@ class AndroidCacheMode_ { ///Don't use the network, load from the cache. static const LOAD_CACHE_ONLY = const AndroidCacheMode_._internal(3); -} \ No newline at end of file +} diff --git a/lib/src/types/call_async_javascript_result.dart b/lib/src/types/call_async_javascript_result.dart index 1b8c53b0..e6427e5d 100644 --- a/lib/src/types/call_async_javascript_result.dart +++ b/lib/src/types/call_async_javascript_result.dart @@ -14,4 +14,4 @@ class CallAsyncJavaScriptResult_ { String? error; CallAsyncJavaScriptResult_({this.value, this.error}); -} \ No newline at end of file +} diff --git a/lib/src/types/client_cert_challenge.dart b/lib/src/types/client_cert_challenge.dart index f38ed0b0..c0e2f4c2 100644 --- a/lib/src/types/client_cert_challenge.dart +++ b/lib/src/types/client_cert_challenge.dart @@ -18,9 +18,9 @@ class ClientCertChallenge_ extends URLAuthenticationChallenge_ { @SupportedPlatforms(platforms: [ AndroidPlatform( apiName: "ClientCertRequest.getPrincipals", - apiUrl: "https://developer.android.com/reference/android/webkit/ClientCertRequest#getPrincipals()", - available: "21" - ) + apiUrl: + "https://developer.android.com/reference/android/webkit/ClientCertRequest#getPrincipals()", + available: "21") ]) List? principals; @@ -32,17 +32,17 @@ class ClientCertChallenge_ extends URLAuthenticationChallenge_ { @SupportedPlatforms(platforms: [ AndroidPlatform( apiName: "ClientCertRequest.getKeyTypes", - apiUrl: "https://developer.android.com/reference/android/webkit/ClientCertRequest#getKeyTypes()", - available: "21" - ) + apiUrl: + "https://developer.android.com/reference/android/webkit/ClientCertRequest#getKeyTypes()", + available: "21") ]) List? keyTypes; ClientCertChallenge_( {required URLProtectionSpace_ protectionSpace, - @Deprecated('Use principals instead') this.androidPrincipals, - this.principals, - @Deprecated('Use keyTypes instead') this.androidKeyTypes, - this.keyTypes}) + @Deprecated('Use principals instead') this.androidPrincipals, + this.principals, + @Deprecated('Use keyTypes instead') this.androidKeyTypes, + this.keyTypes}) : super(protectionSpace: protectionSpace); -} \ No newline at end of file +} diff --git a/lib/src/types/client_cert_response.dart b/lib/src/types/client_cert_response.dart index 10c3219f..400c0aa5 100644 --- a/lib/src/types/client_cert_response.dart +++ b/lib/src/types/client_cert_response.dart @@ -21,9 +21,7 @@ class ClientCertResponse_ { String? androidKeyStoreType; ///An Android-specific property used by Java [KeyStore](https://developer.android.com/reference/java/security/KeyStore) class to get the instance. - @SupportedPlatforms(platforms: [ - AndroidPlatform() - ]) + @SupportedPlatforms(platforms: [AndroidPlatform()]) String? keyStoreType; ///Indicate the [ClientCertResponseAction] to take in response of the client certificate challenge. @@ -32,11 +30,11 @@ class ClientCertResponse_ { @ExchangeableObjectConstructor() ClientCertResponse_( {required this.certificatePath, - this.certificatePassword = "", - @Deprecated('Use keyStoreType instead') - this.androidKeyStoreType = "PKCS12", - this.keyStoreType = "PKCS12", - this.action = ClientCertResponseAction_.CANCEL}) { + this.certificatePassword = "", + @Deprecated('Use keyStoreType instead') + this.androidKeyStoreType = "PKCS12", + this.keyStoreType = "PKCS12", + this.action = ClientCertResponseAction_.CANCEL}) { if (this.action == ClientCertResponseAction_.PROCEED) assert(certificatePath.isNotEmpty); @@ -45,4 +43,4 @@ class ClientCertResponse_ { if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) assert(this.keyStoreType != null); } -} \ No newline at end of file +} diff --git a/lib/src/types/client_cert_response_action.dart b/lib/src/types/client_cert_response_action.dart index 7d606567..1a9a5a08 100644 --- a/lib/src/types/client_cert_response_action.dart +++ b/lib/src/types/client_cert_response_action.dart @@ -19,4 +19,4 @@ class ClientCertResponseAction_ { ///Ignore the request for now. static const IGNORE = const ClientCertResponseAction_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/compress_format.dart b/lib/src/types/compress_format.dart index da05cb92..f7967e24 100644 --- a/lib/src/types/compress_format.dart +++ b/lib/src/types/compress_format.dart @@ -43,4 +43,4 @@ class CompressFormat_ { /// ///**NOTE for Android**: available on Android 30+. static const WEBP_LOSSLESS = const CompressFormat_._internal("WEBP_LOSSLESS"); -} \ No newline at end of file +} diff --git a/lib/src/types/console_message.dart b/lib/src/types/console_message.dart index 33dcbea7..bb6e6728 100644 --- a/lib/src/types/console_message.dart +++ b/lib/src/types/console_message.dart @@ -20,4 +20,4 @@ class ConsoleMessage_ { ConsoleMessage_( {this.message = "", this.messageLevel = ConsoleMessageLevel_.LOG}); -} \ No newline at end of file +} diff --git a/lib/src/types/console_message_level.dart b/lib/src/types/console_message_level.dart index 96858121..ce73fc95 100644 --- a/lib/src/types/console_message_level.dart +++ b/lib/src/types/console_message_level.dart @@ -23,4 +23,4 @@ class ConsoleMessageLevel_ { ///Console DEBUG level static const DEBUG = const ConsoleMessageLevel_._internal(4); -} \ No newline at end of file +} diff --git a/lib/src/types/content_blocker_action_type.dart b/lib/src/types/content_blocker_action_type.dart index 11b7e057..dfbce79e 100644 --- a/lib/src/types/content_blocker_action_type.dart +++ b/lib/src/types/content_blocker_action_type.dart @@ -18,9 +18,9 @@ class ContentBlockerActionType_ { /// ///**NOTE**: on Android, JavaScript must be enabled. static const CSS_DISPLAY_NONE = - const ContentBlockerActionType_._internal('css-display-none'); + const ContentBlockerActionType_._internal('css-display-none'); ///Changes a URL from http to https. URLs with a specified (nondefault) port and links using other protocols are unaffected. static const MAKE_HTTPS = - const ContentBlockerActionType_._internal('make-https'); -} \ No newline at end of file + const ContentBlockerActionType_._internal('make-https'); +} diff --git a/lib/src/types/content_blocker_trigger_load_type.dart b/lib/src/types/content_blocker_trigger_load_type.dart index 0c6c5123..397ef34e 100644 --- a/lib/src/types/content_blocker_trigger_load_type.dart +++ b/lib/src/types/content_blocker_trigger_load_type.dart @@ -13,9 +13,9 @@ class ContentBlockerTriggerLoadType_ { ///FIRST_PARTY is triggered only if the resource has the same scheme, domain, and port as the main page resource. static const FIRST_PARTY = - const ContentBlockerTriggerLoadType_._internal('first-party'); + const ContentBlockerTriggerLoadType_._internal('first-party'); ///THIRD_PARTY is triggered if the resource is not from the same domain as the main page resource. static const THIRD_PARTY = - const ContentBlockerTriggerLoadType_._internal('third-party'); -} \ No newline at end of file + const ContentBlockerTriggerLoadType_._internal('third-party'); +} diff --git a/lib/src/types/content_world.dart b/lib/src/types/content_world.dart index 3fe37a7e..84bfa35e 100644 --- a/lib/src/types/content_world.dart +++ b/lib/src/types/content_world.dart @@ -25,7 +25,7 @@ class ContentWorld { ///The default world for clients. static final ContentWorld DEFAULT_CLIENT = - ContentWorld.world(name: "defaultClient"); + ContentWorld.world(name: "defaultClient"); ///The content world for the current webpage’s content. ///This property contains the content world for scripts that the current webpage executes. @@ -47,4 +47,4 @@ class ContentWorld { String toString() { return toMap().toString(); } -} \ No newline at end of file +} diff --git a/lib/src/types/cookie.dart b/lib/src/types/cookie.dart index 1e47191c..fa8e1216 100644 --- a/lib/src/types/cookie.dart +++ b/lib/src/types/cookie.dart @@ -51,12 +51,12 @@ class Cookie_ { Cookie_( {required this.name, - required this.value, - this.expiresDate, - this.isSessionOnly, - this.domain, - this.sameSite, - this.isSecure, - this.isHttpOnly, - this.path}); -} \ No newline at end of file + required this.value, + this.expiresDate, + this.isSessionOnly, + this.domain, + this.sameSite, + this.isSecure, + this.isHttpOnly, + this.path}); +} diff --git a/lib/src/types/create_window_action.dart b/lib/src/types/create_window_action.dart index 33ee7aff..9031e7f9 100644 --- a/lib/src/types/create_window_action.dart +++ b/lib/src/types/create_window_action.dart @@ -20,11 +20,7 @@ class CreateWindowAction_ extends NavigationAction_ { bool? androidIsDialog; ///Indicates if the new window should be a dialog, rather than a full-size window. - @SupportedPlatforms( - platforms: [ - AndroidPlatform() - ] - ) + @SupportedPlatforms(platforms: [AndroidPlatform()]) bool? isDialog; ///Use [windowFeatures] instead. @@ -32,55 +28,53 @@ class CreateWindowAction_ extends NavigationAction_ { IOSWKWindowFeatures_? iosWindowFeatures; ///Window features requested by the webpage. - @SupportedPlatforms( - platforms: [ - IOSPlatform( - apiName: "WKWindowFeatures", - apiUrl: "https://developer.apple.com/documentation/webkit/wkwindowfeatures" - ) - ] - ) + @SupportedPlatforms(platforms: [ + IOSPlatform( + apiName: "WKWindowFeatures", + apiUrl: + "https://developer.apple.com/documentation/webkit/wkwindowfeatures") + ]) WindowFeatures_? windowFeatures; CreateWindowAction_( {required this.windowId, - @Deprecated('Use isDialog instead') - this.androidIsDialog, - this.isDialog, - @Deprecated('Use windowFeatures instead') - this.iosWindowFeatures, - this.windowFeatures, - required URLRequest_ request, - required bool isForMainFrame, - @Deprecated('Use hasGesture instead') - bool? androidHasGesture, - @Deprecated('Use isRedirect instead') - bool? androidIsRedirect, - bool? hasGesture, - bool? isRedirect, - @Deprecated('Use navigationType instead') - // ignore: deprecated_member_use_from_same_package - IOSWKNavigationType_? iosWKNavigationType, - NavigationType_? navigationType, - @Deprecated('Use sourceFrame instead') - // ignore: deprecated_member_use_from_same_package - IOSWKFrameInfo_? iosSourceFrame, - FrameInfo_? sourceFrame, - @Deprecated('Use targetFrame instead') - // ignore: deprecated_member_use_from_same_package - IOSWKFrameInfo_? iosTargetFrame, - FrameInfo_? targetFrame}) + @Deprecated('Use isDialog instead') + this.androidIsDialog, + this.isDialog, + @Deprecated('Use windowFeatures instead') + this.iosWindowFeatures, + this.windowFeatures, + required URLRequest_ request, + required bool isForMainFrame, + @Deprecated('Use hasGesture instead') + bool? androidHasGesture, + @Deprecated('Use isRedirect instead') + bool? androidIsRedirect, + bool? hasGesture, + bool? isRedirect, + @Deprecated('Use navigationType instead') + // ignore: deprecated_member_use_from_same_package + IOSWKNavigationType_? iosWKNavigationType, + NavigationType_? navigationType, + @Deprecated('Use sourceFrame instead') + // ignore: deprecated_member_use_from_same_package + IOSWKFrameInfo_? iosSourceFrame, + FrameInfo_? sourceFrame, + @Deprecated('Use targetFrame instead') + // ignore: deprecated_member_use_from_same_package + IOSWKFrameInfo_? iosTargetFrame, + FrameInfo_? targetFrame}) : super( - request: request, - isForMainFrame: isForMainFrame, - androidHasGesture: androidHasGesture, - hasGesture: hasGesture, - androidIsRedirect: androidIsRedirect, - isRedirect: isRedirect, - iosWKNavigationType: iosWKNavigationType, - navigationType: navigationType, - iosSourceFrame: iosSourceFrame, - sourceFrame: sourceFrame, - iosTargetFrame: iosTargetFrame, - targetFrame: targetFrame); -} \ No newline at end of file + request: request, + isForMainFrame: isForMainFrame, + androidHasGesture: androidHasGesture, + hasGesture: hasGesture, + androidIsRedirect: androidIsRedirect, + isRedirect: isRedirect, + iosWKNavigationType: iosWKNavigationType, + navigationType: navigationType, + iosSourceFrame: iosSourceFrame, + sourceFrame: sourceFrame, + iosTargetFrame: iosTargetFrame, + targetFrame: targetFrame); +} diff --git a/lib/src/types/cross_origin.dart b/lib/src/types/cross_origin.dart index b0084dcd..3dd7b4a9 100644 --- a/lib/src/types/cross_origin.dart +++ b/lib/src/types/cross_origin.dart @@ -18,5 +18,6 @@ class CrossOrigin_ { static const ANONYMOUS = const CrossOrigin_._internal("anonymous"); ///CORS requests for this element will have the credentials flag set to 'include'. - static const USE_CREDENTIALS = const CrossOrigin_._internal("use-credentials"); -} \ No newline at end of file + static const USE_CREDENTIALS = + const CrossOrigin_._internal("use-credentials"); +} diff --git a/lib/src/types/css_link_html_tag_attributes.dart b/lib/src/types/css_link_html_tag_attributes.dart index aa60a465..9c866bdd 100644 --- a/lib/src/types/css_link_html_tag_attributes.dart +++ b/lib/src/types/css_link_html_tag_attributes.dart @@ -43,11 +43,11 @@ class CSSLinkHtmlTagAttributes_ { CSSLinkHtmlTagAttributes_( {this.id, - this.media, - this.crossOrigin, - this.integrity, - this.referrerPolicy, - this.disabled, - this.alternate, - this.title}); -} \ No newline at end of file + this.media, + this.crossOrigin, + this.integrity, + this.referrerPolicy, + this.disabled, + this.alternate, + this.title}); +} diff --git a/lib/src/types/custom_scheme_response.dart b/lib/src/types/custom_scheme_response.dart index a777fc7b..3e608ed1 100644 --- a/lib/src/types/custom_scheme_response.dart +++ b/lib/src/types/custom_scheme_response.dart @@ -21,6 +21,6 @@ class CustomSchemeResponse_ { CustomSchemeResponse_( {required this.data, - required this.contentType, - this.contentEncoding = 'utf-8'}); -} \ No newline at end of file + required this.contentType, + this.contentEncoding = 'utf-8'}); +} diff --git a/lib/src/types/custom_tabs_share_state.dart b/lib/src/types/custom_tabs_share_state.dart index d8d79f5d..81e5b1c1 100644 --- a/lib/src/types/custom_tabs_share_state.dart +++ b/lib/src/types/custom_tabs_share_state.dart @@ -17,4 +17,4 @@ class CustomTabsShareState_ { ///Explicitly does not show a share option in the tab. static const SHARE_STATE_OFF = const CustomTabsShareState_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/data_detector_types.dart b/lib/src/types/data_detector_types.dart index a45bb28d..dce4c0c0 100644 --- a/lib/src/types/data_detector_types.dart +++ b/lib/src/types/data_detector_types.dart @@ -13,7 +13,8 @@ class DataDetectorTypes_ { static const NONE = const DataDetectorTypes_._internal("NONE"); ///Phone numbers are detected and turned into links. - static const PHONE_NUMBER = const DataDetectorTypes_._internal("PHONE_NUMBER"); + static const PHONE_NUMBER = + const DataDetectorTypes_._internal("PHONE_NUMBER"); ///URLs in text are detected and turned into links. static const LINK = const DataDetectorTypes_._internal("LINK"); @@ -23,23 +24,23 @@ class DataDetectorTypes_ { ///Dates and times that are in the future are detected and turned into links. static const CALENDAR_EVENT = - const DataDetectorTypes_._internal("CALENDAR_EVENT"); + const DataDetectorTypes_._internal("CALENDAR_EVENT"); ///Tracking numbers are detected and turned into links. static const TRACKING_NUMBER = - const DataDetectorTypes_._internal("TRACKING_NUMBER"); + const DataDetectorTypes_._internal("TRACKING_NUMBER"); ///Flight numbers are detected and turned into links. static const FLIGHT_NUMBER = - const DataDetectorTypes_._internal("FLIGHT_NUMBER"); + const DataDetectorTypes_._internal("FLIGHT_NUMBER"); ///Lookup suggestions are detected and turned into links. static const LOOKUP_SUGGESTION = - const DataDetectorTypes_._internal("LOOKUP_SUGGESTION"); + const DataDetectorTypes_._internal("LOOKUP_SUGGESTION"); ///Spotlight suggestions are detected and turned into links. static const SPOTLIGHT_SUGGESTION = - const DataDetectorTypes_._internal("SPOTLIGHT_SUGGESTION"); + const DataDetectorTypes_._internal("SPOTLIGHT_SUGGESTION"); ///All of the above data types are turned into links when detected. Choosing this value will automatically include any new detection type that is added. static const ALL = const DataDetectorTypes_._internal("ALL"); @@ -62,7 +63,7 @@ class IOSWKDataDetectorTypes_ { ///Phone numbers are detected and turned into links. static const PHONE_NUMBER = - const IOSWKDataDetectorTypes_._internal("PHONE_NUMBER"); + const IOSWKDataDetectorTypes_._internal("PHONE_NUMBER"); ///URLs in text are detected and turned into links. static const LINK = const IOSWKDataDetectorTypes_._internal("LINK"); @@ -72,24 +73,24 @@ class IOSWKDataDetectorTypes_ { ///Dates and times that are in the future are detected and turned into links. static const CALENDAR_EVENT = - const IOSWKDataDetectorTypes_._internal("CALENDAR_EVENT"); + const IOSWKDataDetectorTypes_._internal("CALENDAR_EVENT"); ///Tracking numbers are detected and turned into links. static const TRACKING_NUMBER = - const IOSWKDataDetectorTypes_._internal("TRACKING_NUMBER"); + const IOSWKDataDetectorTypes_._internal("TRACKING_NUMBER"); ///Flight numbers are detected and turned into links. static const FLIGHT_NUMBER = - const IOSWKDataDetectorTypes_._internal("FLIGHT_NUMBER"); + const IOSWKDataDetectorTypes_._internal("FLIGHT_NUMBER"); ///Lookup suggestions are detected and turned into links. static const LOOKUP_SUGGESTION = - const IOSWKDataDetectorTypes_._internal("LOOKUP_SUGGESTION"); + const IOSWKDataDetectorTypes_._internal("LOOKUP_SUGGESTION"); ///Spotlight suggestions are detected and turned into links. static const SPOTLIGHT_SUGGESTION = - const IOSWKDataDetectorTypes_._internal("SPOTLIGHT_SUGGESTION"); + const IOSWKDataDetectorTypes_._internal("SPOTLIGHT_SUGGESTION"); ///All of the above data types are turned into links when detected. Choosing this value will automatically include any new detection type that is added. static const ALL = const IOSWKDataDetectorTypes_._internal("ALL"); -} \ No newline at end of file +} diff --git a/lib/src/types/dismiss_button_style.dart b/lib/src/types/dismiss_button_style.dart index 156a63ba..5425a926 100644 --- a/lib/src/types/dismiss_button_style.dart +++ b/lib/src/types/dismiss_button_style.dart @@ -39,4 +39,4 @@ class IOSSafariDismissButtonStyle_ { ///Makes the button title the localized string "Cancel". static const CANCEL = const IOSSafariDismissButtonStyle_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/disposable.dart b/lib/src/types/disposable.dart index 3fd602c6..995f050d 100644 --- a/lib/src/types/disposable.dart +++ b/lib/src/types/disposable.dart @@ -1,3 +1,3 @@ abstract class Disposable { void dispose(); -} \ No newline at end of file +} diff --git a/lib/src/types/download_start_request.dart b/lib/src/types/download_start_request.dart index abdf3aff..a62fefb9 100644 --- a/lib/src/types/download_start_request.dart +++ b/lib/src/types/download_start_request.dart @@ -30,10 +30,10 @@ class DownloadStartRequest_ { DownloadStartRequest_( {required this.url, - this.userAgent, - this.contentDisposition, - this.mimeType, - required this.contentLength, - this.suggestedFilename, - this.textEncodingName}); -} \ No newline at end of file + this.userAgent, + this.contentDisposition, + this.mimeType, + required this.contentLength, + this.suggestedFilename, + this.textEncodingName}); +} diff --git a/lib/src/types/favicon.dart b/lib/src/types/favicon.dart index 4109919c..4a0c87a2 100644 --- a/lib/src/types/favicon.dart +++ b/lib/src/types/favicon.dart @@ -20,4 +20,4 @@ class Favicon_ { int? height; Favicon_({required this.url, this.rel, this.width, this.height}); -} \ No newline at end of file +} diff --git a/lib/src/types/fetch_request.dart b/lib/src/types/fetch_request.dart index 75b000e7..6db506b0 100644 --- a/lib/src/types/fetch_request.dart +++ b/lib/src/types/fetch_request.dart @@ -43,9 +43,7 @@ class FetchRequest_ { String? mode; ///The request credentials used by the request. - @ExchangeableObjectProperty( - deserializer: _fetchRequestCredentialDeserializer - ) + @ExchangeableObjectProperty(deserializer: _fetchRequestCredentialDeserializer) FetchRequestCredential_? credentials; ///The cache mode used by the request. @@ -71,16 +69,16 @@ class FetchRequest_ { FetchRequest_( {this.url, - this.method, - this.headers, - this.body, - this.mode, - this.credentials, - this.cache, - this.redirect, - this.referrer, - this.referrerPolicy, - this.integrity, - this.keepalive, - this.action = FetchRequestAction_.PROCEED}); -} \ No newline at end of file + this.method, + this.headers, + this.body, + this.mode, + this.credentials, + this.cache, + this.redirect, + this.referrer, + this.referrerPolicy, + this.integrity, + this.keepalive, + this.action = FetchRequestAction_.PROCEED}); +} diff --git a/lib/src/types/fetch_request_action.dart b/lib/src/types/fetch_request_action.dart index 62b983c3..2cd0f8f5 100644 --- a/lib/src/types/fetch_request_action.dart +++ b/lib/src/types/fetch_request_action.dart @@ -16,4 +16,4 @@ class FetchRequestAction_ { ///Proceeds with the fetch request. static const PROCEED = const FetchRequestAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/fetch_request_credential.dart b/lib/src/types/fetch_request_credential.dart index 9f356d7d..bba12bc5 100644 --- a/lib/src/types/fetch_request_credential.dart +++ b/lib/src/types/fetch_request_credential.dart @@ -13,4 +13,4 @@ class FetchRequestCredential_ { String? type; FetchRequestCredential_({this.type}); -} \ No newline at end of file +} diff --git a/lib/src/types/fetch_request_credential_default.dart b/lib/src/types/fetch_request_credential_default.dart index 05771de6..10ac5c21 100644 --- a/lib/src/types/fetch_request_credential_default.dart +++ b/lib/src/types/fetch_request_credential_default.dart @@ -12,4 +12,4 @@ class FetchRequestCredentialDefault_ extends FetchRequestCredential_ { String? value; FetchRequestCredentialDefault_({type, this.value}) : super(type: type); -} \ No newline at end of file +} diff --git a/lib/src/types/fetch_request_federated_credential.dart b/lib/src/types/fetch_request_federated_credential.dart index f0408508..5b880730 100644 --- a/lib/src/types/fetch_request_federated_credential.dart +++ b/lib/src/types/fetch_request_federated_credential.dart @@ -25,4 +25,4 @@ class FetchRequestFederatedCredential_ extends FetchRequestCredential_ { FetchRequestFederatedCredential_( {type, this.id, this.name, this.protocol, this.provider, this.iconURL}) : super(type: type); -} \ No newline at end of file +} diff --git a/lib/src/types/fetch_request_password_credential.dart b/lib/src/types/fetch_request_password_credential.dart index ea3aa1ac..d4727705 100644 --- a/lib/src/types/fetch_request_password_credential.dart +++ b/lib/src/types/fetch_request_password_credential.dart @@ -22,4 +22,4 @@ class FetchRequestPasswordCredential_ extends FetchRequestCredential_ { FetchRequestPasswordCredential_( {type, this.id, this.name, this.password, this.iconURL}) : super(type: type); -} \ No newline at end of file +} diff --git a/lib/src/types/find_session.dart b/lib/src/types/find_session.dart index a139c1e0..ce4e6801 100644 --- a/lib/src/types/find_session.dart +++ b/lib/src/types/find_session.dart @@ -16,9 +16,8 @@ class FindSession_ { /// Defines how results are reported through the find panel's UI. SearchResultDisplayStyle_ searchResultDisplayStyle; - FindSession_({ - required this.resultCount, - required this.highlightedResultIndex, - required this.searchResultDisplayStyle - }); -} \ No newline at end of file + FindSession_( + {required this.resultCount, + required this.highlightedResultIndex, + required this.searchResultDisplayStyle}); +} diff --git a/lib/src/types/force_dark.dart b/lib/src/types/force_dark.dart index d6d13451..11157dc7 100644 --- a/lib/src/types/force_dark.dart +++ b/lib/src/types/force_dark.dart @@ -41,4 +41,4 @@ class AndroidForceDark_ { ///Unconditionally enable force dark. In this mode WebView content will always be rendered so as to emulate a dark theme. static const FORCE_DARK_ON = const AndroidForceDark_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/force_dark_strategy.dart b/lib/src/types/force_dark_strategy.dart index 154966e0..44146c82 100644 --- a/lib/src/types/force_dark_strategy.dart +++ b/lib/src/types/force_dark_strategy.dart @@ -15,7 +15,8 @@ class ForceDarkStrategy_ { ///To avoid mixing two different darkening strategies, the `prefers-color-scheme` media query will evaluate to light. /// ///See [specification](https://drafts.csswg.org/css-color-adjust-1/) for more information. - static const USER_AGENT_DARKENING_ONLY = const ForceDarkStrategy_._internal(0); + static const USER_AGENT_DARKENING_ONLY = + const ForceDarkStrategy_._internal(0); ///In this mode [WebView] content will always be darkened using dark theme provided by web page. ///If web page does not provide dark theme support [WebView] content will be rendered with a default theme. @@ -29,5 +30,6 @@ class ForceDarkStrategy_ { ///If the metadata is not presented [WebView] content will be darkened by a user agent and `prefers-color-scheme` media query will evaluate to light. /// ///See [specification](https://drafts.csswg.org/css-color-adjust-1/) for more information. - static const PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING = const ForceDarkStrategy_._internal(2); + static const PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING = + const ForceDarkStrategy_._internal(2); } diff --git a/lib/src/types/form_resubmission_action.dart b/lib/src/types/form_resubmission_action.dart index 052f202a..9c807aff 100644 --- a/lib/src/types/form_resubmission_action.dart +++ b/lib/src/types/form_resubmission_action.dart @@ -16,4 +16,4 @@ class FormResubmissionAction_ { ///Don't resend data static const DONT_RESEND = const FormResubmissionAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/frame_info.dart b/lib/src/types/frame_info.dart index ca7c2f01..4d750c7e 100644 --- a/lib/src/types/frame_info.dart +++ b/lib/src/types/frame_info.dart @@ -40,4 +40,4 @@ class IOSWKFrameInfo_ { IOSWKFrameInfo_( {required this.isMainFrame, required this.request, this.securityOrigin}); -} \ No newline at end of file +} diff --git a/lib/src/types/geolocation_permission_show_prompt_response.dart b/lib/src/types/geolocation_permission_show_prompt_response.dart index 623f5f1d..e39fa653 100644 --- a/lib/src/types/geolocation_permission_show_prompt_response.dart +++ b/lib/src/types/geolocation_permission_show_prompt_response.dart @@ -19,4 +19,4 @@ class GeolocationPermissionShowPromptResponse_ { GeolocationPermissionShowPromptResponse_( {required this.origin, required this.allow, this.retain = false}); -} \ No newline at end of file +} diff --git a/lib/src/types/http_auth_response.dart b/lib/src/types/http_auth_response.dart index bf05075f..8e63df22 100644 --- a/lib/src/types/http_auth_response.dart +++ b/lib/src/types/http_auth_response.dart @@ -22,7 +22,7 @@ class HttpAuthResponse_ { HttpAuthResponse_( {this.username = "", - this.password = "", - this.permanentPersistence = false, - this.action = HttpAuthResponseAction_.CANCEL}); -} \ No newline at end of file + this.password = "", + this.permanentPersistence = false, + this.action = HttpAuthResponseAction_.CANCEL}); +} diff --git a/lib/src/types/http_auth_response_action.dart b/lib/src/types/http_auth_response_action.dart index 1e5a8aae..dbd5c587 100644 --- a/lib/src/types/http_auth_response_action.dart +++ b/lib/src/types/http_auth_response_action.dart @@ -10,6 +10,7 @@ class HttpAuthResponseAction_ { // ignore: unused_field final int _value; const HttpAuthResponseAction_._internal(this._value); + ///Instructs the WebView to cancel the authentication request. static const CANCEL = const HttpAuthResponseAction_._internal(0); @@ -18,5 +19,5 @@ class HttpAuthResponseAction_ { ///Uses the credentials stored for the current host. static const USE_SAVED_HTTP_AUTH_CREDENTIALS = - const HttpAuthResponseAction_._internal(2); -} \ No newline at end of file + const HttpAuthResponseAction_._internal(2); +} diff --git a/lib/src/types/http_authentication_challenge.dart b/lib/src/types/http_authentication_challenge.dart index a149191f..d8245251 100644 --- a/lib/src/types/http_authentication_challenge.dart +++ b/lib/src/types/http_authentication_challenge.dart @@ -45,11 +45,11 @@ class HttpAuthenticationChallenge_ extends URLAuthenticationChallenge_ { HttpAuthenticationChallenge_( {required this.previousFailureCount, - required URLProtectionSpace_ protectionSpace, - @Deprecated("Use failureResponse instead") this.iosFailureResponse, - this.failureResponse, - this.proposedCredential, - @Deprecated("Use error instead") this.iosError, - this.error}) + required URLProtectionSpace_ protectionSpace, + @Deprecated("Use failureResponse instead") this.iosFailureResponse, + this.failureResponse, + this.proposedCredential, + @Deprecated("Use error instead") this.iosError, + this.error}) : super(protectionSpace: protectionSpace); -} \ No newline at end of file +} diff --git a/lib/src/types/http_cookie_same_site_policy.dart b/lib/src/types/http_cookie_same_site_policy.dart index b324c1cb..b9bb1d38 100644 --- a/lib/src/types/http_cookie_same_site_policy.dart +++ b/lib/src/types/http_cookie_same_site_policy.dart @@ -27,4 +27,4 @@ class HTTPCookieSameSitePolicy_ { ///Cookies will be sent in all contexts, i.e sending cross-origin is allowed. ///`None` requires the `Secure` attribute in latest browser versions. static const NONE = const HTTPCookieSameSitePolicy_._internal("None"); -} \ No newline at end of file +} diff --git a/lib/src/types/in_app_webview_hit_test_result.dart b/lib/src/types/in_app_webview_hit_test_result.dart index bc5807fb..cd583630 100644 --- a/lib/src/types/in_app_webview_hit_test_result.dart +++ b/lib/src/types/in_app_webview_hit_test_result.dart @@ -14,4 +14,4 @@ class InAppWebViewHitTestResult_ { String? extra; InAppWebViewHitTestResult_({this.type, this.extra}); -} \ No newline at end of file +} diff --git a/lib/src/types/in_app_webview_hit_test_result_type.dart b/lib/src/types/in_app_webview_hit_test_result_type.dart index 1a4d8962..7fc68b5a 100644 --- a/lib/src/types/in_app_webview_hit_test_result_type.dart +++ b/lib/src/types/in_app_webview_hit_test_result_type.dart @@ -26,13 +26,13 @@ class InAppWebViewHitTestResultType_ { ///[InAppWebViewHitTestResult] for hitting a HTML::a tag with src=http. static const SRC_ANCHOR_TYPE = - const InAppWebViewHitTestResultType_._internal(7); + const InAppWebViewHitTestResultType_._internal(7); ///[InAppWebViewHitTestResult] for hitting a HTML::a tag with src=http + HTML::img. static const SRC_IMAGE_ANCHOR_TYPE = - const InAppWebViewHitTestResultType_._internal(8); + const InAppWebViewHitTestResultType_._internal(8); ///[InAppWebViewHitTestResult] for hitting an edit text area. static const EDIT_TEXT_TYPE = - const InAppWebViewHitTestResultType_._internal(9); -} \ No newline at end of file + const InAppWebViewHitTestResultType_._internal(9); +} diff --git a/lib/src/types/in_app_webview_initial_data.dart b/lib/src/types/in_app_webview_initial_data.dart index e5ad2c8d..b1a08ee6 100644 --- a/lib/src/types/in_app_webview_initial_data.dart +++ b/lib/src/types/in_app_webview_initial_data.dart @@ -24,16 +24,14 @@ class InAppWebViewInitialData_ { Uri? androidHistoryUrl; ///The URL to use as the history entry. If `null` defaults to `about:blank`. If non-null, this must be a valid URL. - @SupportedPlatforms(platforms: [ - AndroidPlatform() - ]) + @SupportedPlatforms(platforms: [AndroidPlatform()]) Uri? historyUrl; InAppWebViewInitialData_( {required this.data, - this.mimeType = "text/html", - this.encoding = "utf8", - this.baseUrl, - @Deprecated('Use historyUrl instead') this.androidHistoryUrl, - this.historyUrl}); -} \ No newline at end of file + this.mimeType = "text/html", + this.encoding = "utf8", + this.baseUrl, + @Deprecated('Use historyUrl instead') this.androidHistoryUrl, + this.historyUrl}); +} diff --git a/lib/src/types/in_app_webview_rect.dart b/lib/src/types/in_app_webview_rect.dart index a09dd7aa..e0c4775b 100644 --- a/lib/src/types/in_app_webview_rect.dart +++ b/lib/src/types/in_app_webview_rect.dart @@ -20,9 +20,9 @@ class InAppWebViewRect_ { @ExchangeableObjectConstructor() InAppWebViewRect_( {required this.x, - required this.y, - required this.width, - required this.height}) { + required this.y, + required this.width, + required this.height}) { assert(this.x >= 0 && this.y >= 0 && this.width >= 0 && this.height >= 0); } -} \ No newline at end of file +} diff --git a/lib/src/types/javascript_handler_callback.dart b/lib/src/types/javascript_handler_callback.dart index f1716f35..f2cf3920 100644 --- a/lib/src/types/javascript_handler_callback.dart +++ b/lib/src/types/javascript_handler_callback.dart @@ -12,4 +12,4 @@ import '../in_app_webview/in_app_webview_controller.dart'; /// ///Also, a [JavaScriptHandlerCallback] can return json data to the JavaScript side. ///In this case, simply return data that you want to send and it will be automatically json encoded using [jsonEncode] from the `dart:convert` library. -typedef dynamic JavaScriptHandlerCallback(List arguments); \ No newline at end of file +typedef dynamic JavaScriptHandlerCallback(List arguments); diff --git a/lib/src/types/js_alert_request.dart b/lib/src/types/js_alert_request.dart index addc8a77..a0e7f490 100644 --- a/lib/src/types/js_alert_request.dart +++ b/lib/src/types/js_alert_request.dart @@ -23,7 +23,7 @@ class JsAlertRequest_ { JsAlertRequest_( {this.url, - this.message, - @Deprecated("Use isMainFrame instead") this.iosIsMainFrame, - this.isMainFrame}); -} \ No newline at end of file + this.message, + @Deprecated("Use isMainFrame instead") this.iosIsMainFrame, + this.isMainFrame}); +} diff --git a/lib/src/types/js_alert_response.dart b/lib/src/types/js_alert_response.dart index ca6546f4..41e22fa8 100644 --- a/lib/src/types/js_alert_response.dart +++ b/lib/src/types/js_alert_response.dart @@ -23,7 +23,7 @@ class JsAlertResponse_ { JsAlertResponse_( {this.message = "", - this.handledByClient = false, - this.confirmButtonTitle = "", - this.action = JsAlertResponseAction_.CONFIRM}); -} \ No newline at end of file + this.handledByClient = false, + this.confirmButtonTitle = "", + this.action = JsAlertResponseAction_.CONFIRM}); +} diff --git a/lib/src/types/js_alert_response_action.dart b/lib/src/types/js_alert_response_action.dart index e98cbb06..f7a5bb75 100644 --- a/lib/src/types/js_alert_response_action.dart +++ b/lib/src/types/js_alert_response_action.dart @@ -13,4 +13,4 @@ class JsAlertResponseAction_ { ///Confirm that the user hit confirm button. static const CONFIRM = const JsAlertResponseAction_._internal(0); -} \ No newline at end of file +} diff --git a/lib/src/types/js_before_unload_request.dart b/lib/src/types/js_before_unload_request.dart index 9c40834b..bd5d2c03 100644 --- a/lib/src/types/js_before_unload_request.dart +++ b/lib/src/types/js_before_unload_request.dart @@ -14,4 +14,4 @@ class JsBeforeUnloadRequest_ { String? message; JsBeforeUnloadRequest_({this.url, this.message}); -} \ No newline at end of file +} diff --git a/lib/src/types/js_before_unload_response.dart b/lib/src/types/js_before_unload_response.dart index 1b0bb156..7afd3049 100644 --- a/lib/src/types/js_before_unload_response.dart +++ b/lib/src/types/js_before_unload_response.dart @@ -26,8 +26,8 @@ class JsBeforeUnloadResponse_ { JsBeforeUnloadResponse_( {this.message = "", - this.handledByClient = false, - this.confirmButtonTitle = "", - this.cancelButtonTitle = "", - this.action = JsBeforeUnloadResponseAction_.CONFIRM}); -} \ No newline at end of file + this.handledByClient = false, + this.confirmButtonTitle = "", + this.cancelButtonTitle = "", + this.action = JsBeforeUnloadResponseAction_.CONFIRM}); +} diff --git a/lib/src/types/js_before_unload_response_action.dart b/lib/src/types/js_before_unload_response_action.dart index 99eaa818..ef6e90fa 100644 --- a/lib/src/types/js_before_unload_response_action.dart +++ b/lib/src/types/js_before_unload_response_action.dart @@ -16,4 +16,4 @@ class JsBeforeUnloadResponseAction_ { ///Confirm that the user hit cancel button. static const CANCEL = const JsBeforeUnloadResponseAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/js_confirm_request.dart b/lib/src/types/js_confirm_request.dart index 79f87ce6..f46f3b17 100644 --- a/lib/src/types/js_confirm_request.dart +++ b/lib/src/types/js_confirm_request.dart @@ -23,7 +23,7 @@ class JsConfirmRequest_ { JsConfirmRequest_( {this.url, - this.message, - @Deprecated("Use isMainFrame instead") this.iosIsMainFrame, - this.isMainFrame}); -} \ No newline at end of file + this.message, + @Deprecated("Use isMainFrame instead") this.iosIsMainFrame, + this.isMainFrame}); +} diff --git a/lib/src/types/js_confirm_response.dart b/lib/src/types/js_confirm_response.dart index 5e35640c..12808768 100644 --- a/lib/src/types/js_confirm_response.dart +++ b/lib/src/types/js_confirm_response.dart @@ -26,8 +26,8 @@ class JsConfirmResponse_ { JsConfirmResponse_( {this.message = "", - this.handledByClient = false, - this.confirmButtonTitle = "", - this.cancelButtonTitle = "", - this.action = JsConfirmResponseAction_.CANCEL}); -} \ No newline at end of file + this.handledByClient = false, + this.confirmButtonTitle = "", + this.cancelButtonTitle = "", + this.action = JsConfirmResponseAction_.CANCEL}); +} diff --git a/lib/src/types/js_confirm_response_action.dart b/lib/src/types/js_confirm_response_action.dart index 0b373273..37f0b83a 100644 --- a/lib/src/types/js_confirm_response_action.dart +++ b/lib/src/types/js_confirm_response_action.dart @@ -16,4 +16,4 @@ class JsConfirmResponseAction_ { ///Confirm that the user hit cancel button. static const CANCEL = const JsConfirmResponseAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/js_prompt_request.dart b/lib/src/types/js_prompt_request.dart index d7bff07b..a7230ed8 100644 --- a/lib/src/types/js_prompt_request.dart +++ b/lib/src/types/js_prompt_request.dart @@ -26,8 +26,8 @@ class JsPromptRequest_ { JsPromptRequest_( {this.url, - this.message, - this.defaultValue, - @Deprecated("Use isMainFrame instead") this.iosIsMainFrame, - this.isMainFrame}); -} \ No newline at end of file + this.message, + this.defaultValue, + @Deprecated("Use isMainFrame instead") this.iosIsMainFrame, + this.isMainFrame}); +} diff --git a/lib/src/types/js_prompt_response.dart b/lib/src/types/js_prompt_response.dart index 9f778395..e13c31a9 100644 --- a/lib/src/types/js_prompt_response.dart +++ b/lib/src/types/js_prompt_response.dart @@ -32,10 +32,10 @@ class JsPromptResponse_ { JsPromptResponse_( {this.message = "", - this.defaultValue = "", - this.handledByClient = false, - this.confirmButtonTitle = "", - this.cancelButtonTitle = "", - this.value, - this.action = JsPromptResponseAction_.CANCEL}); -} \ No newline at end of file + this.defaultValue = "", + this.handledByClient = false, + this.confirmButtonTitle = "", + this.cancelButtonTitle = "", + this.value, + this.action = JsPromptResponseAction_.CANCEL}); +} diff --git a/lib/src/types/js_prompt_response_action.dart b/lib/src/types/js_prompt_response_action.dart index 14ffa40a..db7afdfa 100644 --- a/lib/src/types/js_prompt_response_action.dart +++ b/lib/src/types/js_prompt_response_action.dart @@ -16,4 +16,4 @@ class JsPromptResponseAction_ { ///Confirm that the user hit cancel button. static const CANCEL = const JsPromptResponseAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/layout_algorithm.dart b/lib/src/types/layout_algorithm.dart index 5f811029..4212c300 100644 --- a/lib/src/types/layout_algorithm.dart +++ b/lib/src/types/layout_algorithm.dart @@ -20,11 +20,11 @@ class LayoutAlgorithm_ { /// ///**NOTE**: available on Android 19+. static const TEXT_AUTOSIZING = - const LayoutAlgorithm_._internal("TEXT_AUTOSIZING"); + const LayoutAlgorithm_._internal("TEXT_AUTOSIZING"); ///NARROW_COLUMNS makes all columns no wider than the screen if possible. Only use this for API levels prior to `Build.VERSION_CODES.KITKAT`. static const NARROW_COLUMNS = - const LayoutAlgorithm_._internal("NARROW_COLUMNS"); + const LayoutAlgorithm_._internal("NARROW_COLUMNS"); } ///An Android-specific class used to set the underlying layout algorithm. @@ -44,9 +44,9 @@ class AndroidLayoutAlgorithm_ { /// ///**NOTE**: available on Android 19+. static const TEXT_AUTOSIZING = - const AndroidLayoutAlgorithm_._internal("TEXT_AUTOSIZING"); + const AndroidLayoutAlgorithm_._internal("TEXT_AUTOSIZING"); ///NARROW_COLUMNS makes all columns no wider than the screen if possible. Only use this for API levels prior to `Build.VERSION_CODES.KITKAT`. static const NARROW_COLUMNS = - const AndroidLayoutAlgorithm_._internal("NARROW_COLUMNS"); -} \ No newline at end of file + const AndroidLayoutAlgorithm_._internal("NARROW_COLUMNS"); +} diff --git a/lib/src/types/layout_in_display_cutout_mode.dart b/lib/src/types/layout_in_display_cutout_mode.dart index 8d6e5dfa..01a218b4 100644 --- a/lib/src/types/layout_in_display_cutout_mode.dart +++ b/lib/src/types/layout_in_display_cutout_mode.dart @@ -30,7 +30,9 @@ class LayoutInDisplayCutoutMode_ { static const ALWAYS = const LayoutInDisplayCutoutMode_._internal(3); @ExchangeableObjectMethod(ignore: true) - static LayoutInDisplayCutoutMode_? fromNativeValue(int? value) {return null;} + static LayoutInDisplayCutoutMode_? fromNativeValue(int? value) { + return null; + } } ///Android-specific class representing the share state that should be applied to the custom tab. @@ -54,7 +56,7 @@ class AndroidLayoutInDisplayCutoutMode_ { /// ///**NOTE**: available on Android 28+. static const SHORT_EDGES = - const AndroidLayoutInDisplayCutoutMode_._internal(1); + const AndroidLayoutInDisplayCutoutMode_._internal(1); ///Content never renders into the cutout area. /// @@ -68,4 +70,4 @@ class AndroidLayoutInDisplayCutoutMode_ { @ExchangeableObjectMethod(ignore: true) int toNativeValue() => 0; -} \ No newline at end of file +} diff --git a/lib/src/types/loaded_resource.dart b/lib/src/types/loaded_resource.dart index 930e29af..a9feae15 100644 --- a/lib/src/types/loaded_resource.dart +++ b/lib/src/types/loaded_resource.dart @@ -20,5 +20,6 @@ class LoadedResource_ { ///Returns the [DOMHighResTimeStamp](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp) duration to fetch a resource. double? duration; - LoadedResource_({this.initiatorType, this.url, this.startTime, this.duration}); -} \ No newline at end of file + LoadedResource_( + {this.initiatorType, this.url, this.startTime, this.duration}); +} diff --git a/lib/src/types/login_request.dart b/lib/src/types/login_request.dart index 19a036b6..5f137000 100644 --- a/lib/src/types/login_request.dart +++ b/lib/src/types/login_request.dart @@ -18,4 +18,4 @@ class LoginRequest_ { String args; LoginRequest_({required this.realm, this.account, required this.args}); -} \ No newline at end of file +} diff --git a/lib/src/types/main.dart b/lib/src/types/main.dart index 87dcdef6..84cbe04b 100644 --- a/lib/src/types/main.dart +++ b/lib/src/types/main.dart @@ -1,4 +1,5 @@ -export 'action_mode_menu_item.dart' show ActionModeMenuItem, AndroidActionModeMenuItem; +export 'action_mode_menu_item.dart' + show ActionModeMenuItem, AndroidActionModeMenuItem; export 'ajax_request.dart' show AjaxRequest; export 'ajax_request_action.dart' show AjaxRequestAction; export 'ajax_request_event.dart' show AjaxRequestEvent; @@ -6,7 +7,8 @@ export 'ajax_request_event_type.dart' show AjaxRequestEventType; export 'ajax_request_headers.dart' show AjaxRequestHeaders; export 'ajax_request_ready_state.dart' show AjaxRequestReadyState; export 'attributed_string.dart' show AttributedString, IOSNSAttributedString; -export 'attributed_string_text_effect_style.dart' show AttributedStringTextEffectStyle, IOSNSAttributedStringTextEffectStyle; +export 'attributed_string_text_effect_style.dart' + show AttributedStringTextEffectStyle, IOSNSAttributedStringTextEffectStyle; export 'cache_mode.dart' show CacheMode, AndroidCacheMode; export 'call_async_javascript_result.dart' show CallAsyncJavaScriptResult; export 'client_cert_challenge.dart' show ClientCertChallenge; @@ -16,8 +18,10 @@ export 'compress_format.dart' show CompressFormat; export 'console_message.dart' show ConsoleMessage; export 'console_message_level.dart' show ConsoleMessageLevel; export 'content_blocker_action_type.dart' show ContentBlockerActionType; -export 'content_blocker_trigger_load_type.dart' show ContentBlockerTriggerLoadType; -export 'content_blocker_trigger_resource_type.dart' show ContentBlockerTriggerResourceType; +export 'content_blocker_trigger_load_type.dart' + show ContentBlockerTriggerLoadType; +export 'content_blocker_trigger_resource_type.dart' + show ContentBlockerTriggerResourceType; export 'content_world.dart' show ContentWorld; export 'cookie.dart' show Cookie; export 'create_window_action.dart' show CreateWindowAction; @@ -25,27 +29,34 @@ export 'cross_origin.dart' show CrossOrigin; export 'css_link_html_tag_attributes.dart' show CSSLinkHtmlTagAttributes; export 'custom_scheme_response.dart' show CustomSchemeResponse; export 'custom_tabs_share_state.dart' show CustomTabsShareState; -export 'data_detector_types.dart' show DataDetectorTypes, IOSWKDataDetectorTypes; -export 'dismiss_button_style.dart' show DismissButtonStyle, IOSSafariDismissButtonStyle; +export 'data_detector_types.dart' + show DataDetectorTypes, IOSWKDataDetectorTypes; +export 'dismiss_button_style.dart' + show DismissButtonStyle, IOSSafariDismissButtonStyle; export 'download_start_request.dart' show DownloadStartRequest; export 'favicon.dart' show Favicon; export 'fetch_request.dart' show FetchRequest; export 'fetch_request_action.dart' show FetchRequestAction; export 'fetch_request_credential.dart' show FetchRequestCredential; -export 'fetch_request_credential_default.dart' show FetchRequestCredentialDefault; -export 'fetch_request_federated_credential.dart' show FetchRequestFederatedCredential; -export 'fetch_request_password_credential.dart' show FetchRequestPasswordCredential; +export 'fetch_request_credential_default.dart' + show FetchRequestCredentialDefault; +export 'fetch_request_federated_credential.dart' + show FetchRequestFederatedCredential; +export 'fetch_request_password_credential.dart' + show FetchRequestPasswordCredential; export 'force_dark.dart' show ForceDark, AndroidForceDark; export 'force_dark_strategy.dart' show ForceDarkStrategy; export 'form_resubmission_action.dart' show FormResubmissionAction; export 'frame_info.dart' show FrameInfo, IOSWKFrameInfo; -export 'geolocation_permission_show_prompt_response.dart' show GeolocationPermissionShowPromptResponse; +export 'geolocation_permission_show_prompt_response.dart' + show GeolocationPermissionShowPromptResponse; export 'http_auth_response.dart' show HttpAuthResponse; export 'http_auth_response_action.dart' show HttpAuthResponseAction; export 'http_authentication_challenge.dart' show HttpAuthenticationChallenge; export 'http_cookie_same_site_policy.dart' show HTTPCookieSameSitePolicy; export 'in_app_webview_hit_test_result.dart' show InAppWebViewHitTestResult; -export 'in_app_webview_hit_test_result_type.dart' show InAppWebViewHitTestResultType; +export 'in_app_webview_hit_test_result_type.dart' + show InAppWebViewHitTestResultType; export 'in_app_webview_initial_data.dart' show InAppWebViewInitialData; export 'in_app_webview_rect.dart' show InAppWebViewRect; export 'javascript_handler_callback.dart' show JavaScriptHandlerCallback; @@ -54,7 +65,8 @@ export 'js_alert_response.dart' show JsAlertResponse; export 'js_alert_response_action.dart' show JsAlertResponseAction; export 'js_before_unload_request.dart' show JsBeforeUnloadRequest; export 'js_before_unload_response.dart' show JsBeforeUnloadResponse; -export 'js_before_unload_response_action.dart' show JsBeforeUnloadResponseAction; +export 'js_before_unload_response_action.dart' + show JsBeforeUnloadResponseAction; export 'js_confirm_request.dart' show JsConfirmRequest; export 'js_confirm_response.dart' show JsConfirmResponse; export 'js_confirm_response_action.dart' show JsConfirmResponseAction; @@ -62,7 +74,8 @@ export 'js_prompt_request.dart' show JsPromptRequest; export 'js_prompt_response.dart' show JsPromptResponse; export 'js_prompt_response_action.dart' show JsPromptResponseAction; export 'layout_algorithm.dart' show LayoutAlgorithm, AndroidLayoutAlgorithm; -export 'layout_in_display_cutout_mode.dart' show LayoutInDisplayCutoutMode, AndroidLayoutInDisplayCutoutMode; +export 'layout_in_display_cutout_mode.dart' + show LayoutInDisplayCutoutMode, AndroidLayoutInDisplayCutoutMode; export 'loaded_resource.dart' show LoadedResource; export 'login_request.dart' show LoginRequest; export 'media_capture_state.dart' show MediaCaptureState; @@ -70,20 +83,26 @@ export 'media_playback_state.dart' show MediaPlaybackState; export 'meta_tag.dart' show MetaTag; export 'meta_tag_attribute.dart' show MetaTagAttribute; export 'mixed_content_mode.dart' show MixedContentMode, AndroidMixedContentMode; -export 'modal_presentation_style.dart' show ModalPresentationStyle, IOSUIModalPresentationStyle; -export 'modal_transition_style.dart' show ModalTransitionStyle, IOSUIModalTransitionStyle; +export 'modal_presentation_style.dart' + show ModalPresentationStyle, IOSUIModalPresentationStyle; +export 'modal_transition_style.dart' + show ModalTransitionStyle, IOSUIModalTransitionStyle; export 'navigation_action.dart' show NavigationAction; export 'navigation_action_policy.dart' show NavigationActionPolicy; -export 'navigation_response.dart' show NavigationResponse, IOSWKNavigationResponse; -export 'navigation_response_action.dart' show NavigationResponseAction, IOSNavigationResponseAction; +export 'navigation_response.dart' + show NavigationResponse, IOSWKNavigationResponse; +export 'navigation_response_action.dart' + show NavigationResponseAction, IOSNavigationResponseAction; export 'navigation_type.dart' show NavigationType, IOSWKNavigationType; export 'on_post_message_callback.dart' show OnPostMessageCallback; export 'over_scroll_mode.dart' show OverScrollMode, AndroidOverScrollMode; export 'pdf_configuration.dart' show PDFConfiguration, IOSWKPDFConfiguration; export 'permission_request.dart' show PermissionRequest; export 'permission_resource_type.dart' show PermissionResourceType; -export 'permission_response.dart' show PermissionResponse, PermissionRequestResponse; -export 'permission_response_action.dart' show PermissionResponseAction, PermissionRequestResponseAction; +export 'permission_response.dart' + show PermissionResponse, PermissionRequestResponse; +export 'permission_response_action.dart' + show PermissionResponseAction, PermissionRequestResponseAction; export 'print_job_attributes.dart' show PrintJobAttributes; export 'print_job_color_mode.dart' show PrintJobColorMode; export 'print_job_duplex_mode.dart' show PrintJobDuplexMode; @@ -96,7 +115,8 @@ export 'print_job_resolution.dart' show PrintJobResolution; export 'print_job_state.dart' show PrintJobState; export 'proxy_rule.dart' show ProxyRule; export 'proxy_scheme_filter.dart' show ProxySchemeFilter; -export 'pull_to_refresh_size.dart' show PullToRefreshSize, AndroidPullToRefreshSize; +export 'pull_to_refresh_size.dart' + show PullToRefreshSize, AndroidPullToRefreshSize; export 'referrer_policy.dart' show ReferrerPolicy; export 'render_process_gone_detail.dart' show RenderProcessGoneDetail; export 'renderer_priority.dart' show RendererPriority; @@ -110,41 +130,62 @@ export 'sandbox.dart' show Sandbox; export 'screenshot_configuration.dart' show ScreenshotConfiguration; export 'script_html_tag_attributes.dart' show ScriptHtmlTagAttributes; export 'scrollbar_style.dart' show ScrollBarStyle, AndroidScrollBarStyle; -export 'scrollview_content_inset_adjustment_behavior.dart' show ScrollViewContentInsetAdjustmentBehavior, IOSUIScrollViewContentInsetAdjustmentBehavior; -export 'scrollview_deceleration_rate.dart' show ScrollViewDecelerationRate, IOSUIScrollViewDecelerationRate; +export 'scrollview_content_inset_adjustment_behavior.dart' + show + ScrollViewContentInsetAdjustmentBehavior, + IOSUIScrollViewContentInsetAdjustmentBehavior; +export 'scrollview_deceleration_rate.dart' + show ScrollViewDecelerationRate, IOSUIScrollViewDecelerationRate; export 'security_origin.dart' show SecurityOrigin, IOSWKSecurityOrigin; -export 'selection_granularity.dart' show SelectionGranularity, IOSWKSelectionGranularity; +export 'selection_granularity.dart' + show SelectionGranularity, IOSWKSelectionGranularity; export 'server_trust_auth_response.dart' show ServerTrustAuthResponse; -export 'server_trust_auth_response_action.dart' show ServerTrustAuthResponseAction; +export 'server_trust_auth_response_action.dart' + show ServerTrustAuthResponseAction; export 'server_trust_challenge.dart' show ServerTrustChallenge; -export 'should_allow_deprecated_tls_action.dart' show ShouldAllowDeprecatedTLSAction, IOSShouldAllowDeprecatedTLSAction; +export 'should_allow_deprecated_tls_action.dart' + show ShouldAllowDeprecatedTLSAction, IOSShouldAllowDeprecatedTLSAction; export 'ssl_certificate.dart' show SslCertificate; export 'ssl_certificate_dname.dart' show SslCertificateDName; export 'ssl_error.dart' show SslError; export 'ssl_error_type.dart' show SslErrorType, AndroidSslError, IOSSslError; -export 'trusted_web_activity_default_display_mode.dart' show TrustedWebActivityDefaultDisplayMode; -export 'trusted_web_activity_display_mode.dart' show TrustedWebActivityDisplayMode; -export 'trusted_web_activity_immersive_display_mode.dart' show TrustedWebActivityImmersiveDisplayMode; -export 'trusted_web_activity_screen_orientation.dart' show TrustedWebActivityScreenOrientation; +export 'trusted_web_activity_default_display_mode.dart' + show TrustedWebActivityDefaultDisplayMode; +export 'trusted_web_activity_display_mode.dart' + show TrustedWebActivityDisplayMode; +export 'trusted_web_activity_immersive_display_mode.dart' + show TrustedWebActivityImmersiveDisplayMode; +export 'trusted_web_activity_screen_orientation.dart' + show TrustedWebActivityScreenOrientation; export 'underline_style.dart' show UnderlineStyle, IOSNSUnderlineStyle; export 'url_authentication_challenge.dart' show URLAuthenticationChallenge; export 'url_credential.dart' show URLCredential; -export 'url_credential_persistence.dart' show URLCredentialPersistence, IOSURLCredentialPersistence; +export 'url_credential_persistence.dart' + show URLCredentialPersistence, IOSURLCredentialPersistence; export 'url_protection_space.dart' show URLProtectionSpace; -export 'url_protection_space_authentication_method.dart' show URLProtectionSpaceAuthenticationMethod, IOSNSURLProtectionSpaceAuthenticationMethod; -export 'url_protection_space_http_auth_credentials.dart' show URLProtectionSpaceHttpAuthCredentials; -export 'url_protection_space_proxy_type.dart' show URLProtectionSpaceProxyType, IOSNSURLProtectionSpaceProxyType; +export 'url_protection_space_authentication_method.dart' + show + URLProtectionSpaceAuthenticationMethod, + IOSNSURLProtectionSpaceAuthenticationMethod; +export 'url_protection_space_http_auth_credentials.dart' + show URLProtectionSpaceHttpAuthCredentials; +export 'url_protection_space_proxy_type.dart' + show URLProtectionSpaceProxyType, IOSNSURLProtectionSpaceProxyType; export 'url_request.dart' show URLRequest; export 'url_request_attribution.dart' show URLRequestAttribution; -export 'url_request_cache_policy.dart' show URLRequestCachePolicy, IOSURLRequestCachePolicy; -export 'url_request_network_service_type.dart' show URLRequestNetworkServiceType, IOSURLRequestNetworkServiceType; +export 'url_request_cache_policy.dart' + show URLRequestCachePolicy, IOSURLRequestCachePolicy; +export 'url_request_network_service_type.dart' + show URLRequestNetworkServiceType, IOSURLRequestNetworkServiceType; export 'url_response.dart' show URLResponse, IOSURLResponse; export 'user_preferred_content_mode.dart' show UserPreferredContentMode; export 'user_script.dart' show UserScript; export 'user_script_injection_time.dart' show UserScriptInjectionTime; -export 'vertical_scrollbar_position.dart' show VerticalScrollbarPosition, AndroidVerticalScrollbarPosition; +export 'vertical_scrollbar_position.dart' + show VerticalScrollbarPosition, AndroidVerticalScrollbarPosition; export 'web_archive_format.dart' show WebArchiveFormat; -export 'web_authentication_session_error.dart' show WebAuthenticationSessionError; +export 'web_authentication_session_error.dart' + show WebAuthenticationSessionError; export 'web_history.dart' show WebHistory; export 'web_history_item.dart' show WebHistoryItem; export 'web_message_callback.dart' show WebMessageCallback; @@ -154,13 +195,16 @@ export 'web_resource_request.dart' show WebResourceRequest; export 'web_resource_response.dart' show WebResourceResponse; export 'web_storage_origin.dart' show WebStorageOrigin, AndroidWebStorageOrigin; export 'web_storage_type.dart' show WebStorageType; -export 'website_data_record.dart' show WebsiteDataRecord, IOSWKWebsiteDataRecord; +export 'website_data_record.dart' + show WebsiteDataRecord, IOSWKWebsiteDataRecord; export 'website_data_type.dart' show WebsiteDataType, IOSWKWebsiteDataType; export 'webview_implementation.dart' show WebViewImplementation; -export 'webview_package_info.dart' show WebViewPackageInfo, AndroidWebViewPackageInfo; +export 'webview_package_info.dart' + show WebViewPackageInfo, AndroidWebViewPackageInfo; export 'webview_render_process_action.dart' show WebViewRenderProcessAction; export 'window_features.dart' show WindowFeatures, IOSWKWindowFeatures; export 'requested_with_header_mode.dart' show RequestedWithHeaderMode; export 'find_session.dart' show FindSession; export 'search_result_display_style.dart' show SearchResultDisplayStyle; -export 'content_blocker_trigger_load_context.dart' show ContentBlockerTriggerLoadContext; \ No newline at end of file +export 'content_blocker_trigger_load_context.dart' + show ContentBlockerTriggerLoadContext; diff --git a/lib/src/types/media_capture_state.dart b/lib/src/types/media_capture_state.dart index 5ad4a107..f02bf5f2 100644 --- a/lib/src/types/media_capture_state.dart +++ b/lib/src/types/media_capture_state.dart @@ -17,4 +17,4 @@ class MediaCaptureState_ { ///The media device is muted, and not actively capturing audio or video. static const MUTED = const MediaCaptureState_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/media_playback_state.dart b/lib/src/types/media_playback_state.dart index 1a00fac0..26924eda 100644 --- a/lib/src/types/media_playback_state.dart +++ b/lib/src/types/media_playback_state.dart @@ -20,4 +20,4 @@ class MediaPlaybackState_ { ///The media is not playing, and cannot be resumed until the user revokes the suspension. static const SUSPENDED = const MediaPlaybackState_._internal(3); -} \ No newline at end of file +} diff --git a/lib/src/types/meta_tag.dart b/lib/src/types/meta_tag.dart index 1e6100e4..0103245b 100644 --- a/lib/src/types/meta_tag.dart +++ b/lib/src/types/meta_tag.dart @@ -18,4 +18,4 @@ class MetaTag_ { List? attrs; MetaTag_({this.name, this.content, this.attrs}); -} \ No newline at end of file +} diff --git a/lib/src/types/meta_tag_attribute.dart b/lib/src/types/meta_tag_attribute.dart index d5a0144d..35048ed1 100644 --- a/lib/src/types/meta_tag_attribute.dart +++ b/lib/src/types/meta_tag_attribute.dart @@ -14,4 +14,4 @@ class MetaTagAttribute_ { String? value; MetaTagAttribute_({this.name, this.value}); -} \ No newline at end of file +} diff --git a/lib/src/types/mixed_content_mode.dart b/lib/src/types/mixed_content_mode.dart index 1d138aad..086ec250 100644 --- a/lib/src/types/mixed_content_mode.dart +++ b/lib/src/types/mixed_content_mode.dart @@ -11,7 +11,8 @@ class MixedContentMode_ { ///In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure. ///This is the least secure mode of operation for the WebView, and where possible apps should not set this mode. - static const MIXED_CONTENT_ALWAYS_ALLOW = const MixedContentMode_._internal(0); + static const MIXED_CONTENT_ALWAYS_ALLOW = + const MixedContentMode_._internal(0); ///In this mode, the WebView will not allow a secure origin to load content from an insecure origin. ///This is the preferred and most secure mode of operation for the WebView and apps are strongly advised to use this mode. @@ -23,7 +24,7 @@ class MixedContentMode_ { ///This mode is intended to be used by apps that are not in control of the content that they render but desire to operate in a reasonably secure environment. ///For highest security, apps are recommended to use [MixedContentMode.MIXED_CONTENT_NEVER_ALLOW]. static const MIXED_CONTENT_COMPATIBILITY_MODE = - const MixedContentMode_._internal(2); + const MixedContentMode_._internal(2); } ///An Android-specific class used to configure the WebView's behavior when a secure origin attempts to load a resource from an insecure origin. @@ -41,12 +42,12 @@ class AndroidMixedContentMode_ { ///In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure. ///This is the least secure mode of operation for the WebView, and where possible apps should not set this mode. static const MIXED_CONTENT_ALWAYS_ALLOW = - const AndroidMixedContentMode_._internal(0); + const AndroidMixedContentMode_._internal(0); ///In this mode, the WebView will not allow a secure origin to load content from an insecure origin. ///This is the preferred and most secure mode of operation for the WebView and apps are strongly advised to use this mode. static const MIXED_CONTENT_NEVER_ALLOW = - const AndroidMixedContentMode_._internal(1); + const AndroidMixedContentMode_._internal(1); ///In this mode, the WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content. ///Some insecure content may be allowed to be loaded by a secure origin and other types of content will be blocked. @@ -54,5 +55,5 @@ class AndroidMixedContentMode_ { ///This mode is intended to be used by apps that are not in control of the content that they render but desire to operate in a reasonably secure environment. ///For highest security, apps are recommended to use [AndroidMixedContentMode.MIXED_CONTENT_NEVER_ALLOW]. static const MIXED_CONTENT_COMPATIBILITY_MODE = - const AndroidMixedContentMode_._internal(2); -} \ No newline at end of file + const AndroidMixedContentMode_._internal(2); +} diff --git a/lib/src/types/modal_presentation_style.dart b/lib/src/types/modal_presentation_style.dart index 76bce2fc..b3aa4e7a 100644 --- a/lib/src/types/modal_presentation_style.dart +++ b/lib/src/types/modal_presentation_style.dart @@ -28,7 +28,8 @@ class ModalPresentationStyle_ { static const OVER_FULL_SCREEN = const ModalPresentationStyle_._internal(5); ///A presentation style where the content is displayed over another view controller’s content. - static const OVER_CURRENT_CONTEXT = const ModalPresentationStyle_._internal(6); + static const OVER_CURRENT_CONTEXT = + const ModalPresentationStyle_._internal(6); ///A presentation style where the content is displayed in a popover view. static const POPOVER = const ModalPresentationStyle_._internal(7); @@ -61,18 +62,19 @@ class IOSUIModalPresentationStyle_ { static const FORM_SHEET = const IOSUIModalPresentationStyle_._internal(2); ///A presentation style where the content is displayed over another view controller’s content. - static const CURRENT_CONTEXT = const IOSUIModalPresentationStyle_._internal(3); + static const CURRENT_CONTEXT = + const IOSUIModalPresentationStyle_._internal(3); ///A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects. static const CUSTOM = const IOSUIModalPresentationStyle_._internal(4); ///A view presentation style in which the presented view covers the screen. static const OVER_FULL_SCREEN = - const IOSUIModalPresentationStyle_._internal(5); + const IOSUIModalPresentationStyle_._internal(5); ///A presentation style where the content is displayed over another view controller’s content. static const OVER_CURRENT_CONTEXT = - const IOSUIModalPresentationStyle_._internal(6); + const IOSUIModalPresentationStyle_._internal(6); ///A presentation style where the content is displayed in a popover view. static const POPOVER = const IOSUIModalPresentationStyle_._internal(7); @@ -84,4 +86,4 @@ class IOSUIModalPresentationStyle_ { /// ///**NOTE**: available on iOS 13.0+. static const AUTOMATIC = const IOSUIModalPresentationStyle_._internal(9); -} \ No newline at end of file +} diff --git a/lib/src/types/modal_transition_style.dart b/lib/src/types/modal_transition_style.dart index 9f2c669a..f7f1e4c1 100644 --- a/lib/src/types/modal_transition_style.dart +++ b/lib/src/types/modal_transition_style.dart @@ -54,4 +54,4 @@ class IOSUIModalTransitionStyle_ { ///On dismissal, the curled up page unfurls itself back on top of the presented view. ///A view controller presented using this transition is itself prevented from presenting any additional view controllers. static const PARTIAL_CURL = const IOSUIModalTransitionStyle_._internal(3); -} \ No newline at end of file +} diff --git a/lib/src/types/navigation_action.dart b/lib/src/types/navigation_action.dart index 716b42c1..b66e1438 100644 --- a/lib/src/types/navigation_action.dart +++ b/lib/src/types/navigation_action.dart @@ -32,16 +32,14 @@ class NavigationAction_ { ///For security reasons in certain situations this method may return `false` even though ///the sequence of events which caused the request to be created was initiated by a user ///gesture. - @SupportedPlatforms( - platforms: [ - AndroidPlatform( + @SupportedPlatforms(platforms: [ + AndroidPlatform( available: "21", apiName: "WebResourceRequest.hasGesture", - apiUrl: "https://developer.android.com/reference/android/webkit/WebResourceRequest#hasGesture()", - note: "On Android < 21, this is always `false`" - ) - ] - ) + apiUrl: + "https://developer.android.com/reference/android/webkit/WebResourceRequest#hasGesture()", + note: "On Android < 21, this is always `false`") + ]) bool? hasGesture; ///Use [isRedirect] instead. @@ -52,15 +50,13 @@ class NavigationAction_ { /// ///**NOTE**: If the request is associated to the [WebView.onCreateWindow] event, this is always `false`. ///Also, on Android < 21, this is always `false`. - @SupportedPlatforms( - platforms: [ - AndroidPlatform( - available: "21", - apiName: "WebResourceRequest.isRedirect", - apiUrl: "https://developer.android.com/reference/android/webkit/WebResourceRequest#isRedirect()" - ) - ] - ) + @SupportedPlatforms(platforms: [ + AndroidPlatform( + available: "21", + apiName: "WebResourceRequest.isRedirect", + apiUrl: + "https://developer.android.com/reference/android/webkit/WebResourceRequest#isRedirect()") + ]) bool? isRedirect; ///Use [navigationType] instead. @@ -68,14 +64,12 @@ class NavigationAction_ { IOSWKNavigationType_? iosWKNavigationType; ///The type of action triggering the navigation.ì - @SupportedPlatforms( - platforms: [ - IOSPlatform( - apiName: "WKNavigationAction.navigationType", - apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/1401914-navigationtype" - ) - ] - ) + @SupportedPlatforms(platforms: [ + IOSPlatform( + apiName: "WKNavigationAction.navigationType", + apiUrl: + "https://developer.apple.com/documentation/webkit/wknavigationaction/1401914-navigationtype") + ]) NavigationType_? navigationType; ///Use [sourceFrame] instead. @@ -83,14 +77,12 @@ class NavigationAction_ { IOSWKFrameInfo_? iosSourceFrame; ///The frame that requested the navigation. - @SupportedPlatforms( - platforms: [ - IOSPlatform( - apiName: "WKNavigationAction.sourceFrame", - apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/1401926-sourceframe" - ) - ] - ) + @SupportedPlatforms(platforms: [ + IOSPlatform( + apiName: "WKNavigationAction.sourceFrame", + apiUrl: + "https://developer.apple.com/documentation/webkit/wknavigationaction/1401926-sourceframe") + ]) FrameInfo_? sourceFrame; ///Use [targetFrame] instead. @@ -98,40 +90,36 @@ class NavigationAction_ { IOSWKFrameInfo_? iosTargetFrame; ///The frame in which to display the new content. - @SupportedPlatforms( - platforms: [ - IOSPlatform( - apiName: "WKNavigationAction.targetFrame", - apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe" - ) - ] - ) + @SupportedPlatforms(platforms: [ + IOSPlatform( + apiName: "WKNavigationAction.targetFrame", + apiUrl: + "https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe") + ]) FrameInfo_? targetFrame; ///A value indicating whether the web content used a download attribute to indicate that this should be downloaded. - @SupportedPlatforms( - platforms: [ - IOSPlatform( - available: "14.5", - apiName: "WKNavigationAction.shouldPerformDownload", - apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/3727357-shouldperformdownload" - ) - ] - ) + @SupportedPlatforms(platforms: [ + IOSPlatform( + available: "14.5", + apiName: "WKNavigationAction.shouldPerformDownload", + apiUrl: + "https://developer.apple.com/documentation/webkit/wknavigationaction/3727357-shouldperformdownload") + ]) bool? shouldPerformDownload; NavigationAction_( {required this.request, - required this.isForMainFrame, - @Deprecated('Use hasGesture instead') this.androidHasGesture, - this.hasGesture, - @Deprecated('Use isRedirect instead') this.androidIsRedirect, - this.isRedirect, - @Deprecated("Use navigationType instead") this.iosWKNavigationType, - this.navigationType, - @Deprecated("Use sourceFrame instead") this.iosSourceFrame, - this.sourceFrame, - @Deprecated("Use targetFrame instead") this.iosTargetFrame, - this.targetFrame, - this.shouldPerformDownload}); -} \ No newline at end of file + required this.isForMainFrame, + @Deprecated('Use hasGesture instead') this.androidHasGesture, + this.hasGesture, + @Deprecated('Use isRedirect instead') this.androidIsRedirect, + this.isRedirect, + @Deprecated("Use navigationType instead") this.iosWKNavigationType, + this.navigationType, + @Deprecated("Use sourceFrame instead") this.iosSourceFrame, + this.sourceFrame, + @Deprecated("Use targetFrame instead") this.iosTargetFrame, + this.targetFrame, + this.shouldPerformDownload}); +} diff --git a/lib/src/types/navigation_action_policy.dart b/lib/src/types/navigation_action_policy.dart index 698b6ded..4cc954fe 100644 --- a/lib/src/types/navigation_action_policy.dart +++ b/lib/src/types/navigation_action_policy.dart @@ -22,4 +22,4 @@ class NavigationActionPolicy_ { /// ///**NOTE**: available only on iOS 14.5+. It will fallback to [CANCEL]. static const DOWNLOAD = const NavigationActionPolicy_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/navigation_response.dart b/lib/src/types/navigation_response.dart index 5c8c81e8..7f57adde 100644 --- a/lib/src/types/navigation_response.dart +++ b/lib/src/types/navigation_response.dart @@ -19,8 +19,8 @@ class NavigationResponse_ { NavigationResponse_( {this.response, - required this.isForMainFrame, - required this.canShowMIMEType}); + required this.isForMainFrame, + required this.canShowMIMEType}); } ///An iOS-specific Class that represents the navigation response used by the [WebView.onNavigationResponse] event. @@ -39,6 +39,6 @@ class IOSWKNavigationResponse_ { IOSWKNavigationResponse_( {this.response, - required this.isForMainFrame, - required this.canShowMIMEType}); -} \ No newline at end of file + required this.isForMainFrame, + required this.canShowMIMEType}); +} diff --git a/lib/src/types/navigation_response_action.dart b/lib/src/types/navigation_response_action.dart index 3008af55..9a2a4ed0 100644 --- a/lib/src/types/navigation_response_action.dart +++ b/lib/src/types/navigation_response_action.dart @@ -39,4 +39,4 @@ class IOSNavigationResponseAction_ { ///Allow the navigation to continue. static const ALLOW = const IOSNavigationResponseAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/navigation_type.dart b/lib/src/types/navigation_type.dart index 9519421d..82680b97 100644 --- a/lib/src/types/navigation_type.dart +++ b/lib/src/types/navigation_type.dart @@ -56,4 +56,4 @@ class IOSWKNavigationType_ { ///Navigation is taking place for some other reason. static const OTHER = const IOSWKNavigationType_._internal(-1); -} \ No newline at end of file +} diff --git a/lib/src/types/on_post_message_callback.dart b/lib/src/types/on_post_message_callback.dart index c62714eb..53e06516 100644 --- a/lib/src/types/on_post_message_callback.dart +++ b/lib/src/types/on_post_message_callback.dart @@ -2,4 +2,4 @@ import '../web_message/main.dart'; ///The listener for handling [WebMessageListener] events sent by a `postMessage()` on the injected JavaScript object. typedef void OnPostMessageCallback(String? message, Uri? sourceOrigin, - bool isMainFrame, JavaScriptReplyProxy replyProxy); \ No newline at end of file + bool isMainFrame, JavaScriptReplyProxy replyProxy); diff --git a/lib/src/types/over_scroll_mode.dart b/lib/src/types/over_scroll_mode.dart index d12ec21b..b542d292 100644 --- a/lib/src/types/over_scroll_mode.dart +++ b/lib/src/types/over_scroll_mode.dart @@ -16,8 +16,7 @@ class OverScrollMode_ { static const ALWAYS = const OverScrollMode_._internal(0); ///Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll. - static const IF_CONTENT_SCROLLS = - const OverScrollMode_._internal(1); + static const IF_CONTENT_SCROLLS = const OverScrollMode_._internal(1); ///Never allow a user to over-scroll this view. static const NEVER = const OverScrollMode_._internal(2); @@ -38,8 +37,8 @@ class AndroidOverScrollMode_ { ///Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll. static const OVER_SCROLL_IF_CONTENT_SCROLLS = - const AndroidOverScrollMode_._internal(1); + const AndroidOverScrollMode_._internal(1); ///Never allow a user to over-scroll this view. static const OVER_SCROLL_NEVER = const AndroidOverScrollMode_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/pdf_configuration.dart b/lib/src/types/pdf_configuration.dart index abfac410..38fc0d65 100644 --- a/lib/src/types/pdf_configuration.dart +++ b/lib/src/types/pdf_configuration.dart @@ -30,4 +30,4 @@ class IOSWKPDFConfiguration_ { InAppWebViewRect_? rect; IOSWKPDFConfiguration_({this.rect}); -} \ No newline at end of file +} diff --git a/lib/src/types/permission_request.dart b/lib/src/types/permission_request.dart index c38657e2..99bb89cf 100644 --- a/lib/src/types/permission_request.dart +++ b/lib/src/types/permission_request.dart @@ -24,4 +24,4 @@ class PermissionRequest_ { PermissionRequest_( {required this.origin, this.resources = const [], this.frame}); -} \ No newline at end of file +} diff --git a/lib/src/types/permission_resource_type.dart b/lib/src/types/permission_resource_type.dart index e750adb5..b4a662a2 100644 --- a/lib/src/types/permission_resource_type.dart +++ b/lib/src/types/permission_resource_type.dart @@ -15,16 +15,16 @@ class PermissionResourceType_ { ///Resource belongs to audio capture device, like microphone. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( - apiName: 'PermissionRequest.RESOURCE_AUDIO_CAPTURE', - apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_AUDIO_CAPTURE', - value: 'android.webkit.resource.AUDIO_CAPTURE' - ), + apiName: 'PermissionRequest.RESOURCE_AUDIO_CAPTURE', + apiUrl: + 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_AUDIO_CAPTURE', + value: 'android.webkit.resource.AUDIO_CAPTURE'), EnumIOSPlatform( - available: "15.0", - apiName: 'WKMediaCaptureType.microphone', - apiUrl: 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone', - value: 1 - ) + available: "15.0", + apiName: 'WKMediaCaptureType.microphone', + apiUrl: + 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone', + value: 1) ]) static const MICROPHONE = PermissionResourceType_._internal('MICROPHONE'); @@ -34,9 +34,9 @@ class PermissionResourceType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PermissionRequest.RESOURCE_MIDI_SYSEX', - apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_MIDI_SYSEX', - value: 'android.webkit.resource.MIDI_SYSEX' - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_MIDI_SYSEX', + value: 'android.webkit.resource.MIDI_SYSEX'), ]) static const MIDI_SYSEX = PermissionResourceType_._internal('MIDI_SYSEX'); @@ -44,25 +44,26 @@ class PermissionResourceType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID', - apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_PROTECTED_MEDIA_ID', - value: 'android.webkit.resource.PROTECTED_MEDIA_ID' - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_PROTECTED_MEDIA_ID', + value: 'android.webkit.resource.PROTECTED_MEDIA_ID'), ]) - static const PROTECTED_MEDIA_ID = PermissionResourceType_._internal('PROTECTED_MEDIA_ID'); + static const PROTECTED_MEDIA_ID = + PermissionResourceType_._internal('PROTECTED_MEDIA_ID'); ///Resource belongs to video capture device, like camera. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PermissionRequest.RESOURCE_VIDEO_CAPTURE', - apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_VIDEO_CAPTURE', - value: 'android.webkit.resource.VIDEO_CAPTURE' - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_VIDEO_CAPTURE', + value: 'android.webkit.resource.VIDEO_CAPTURE'), EnumIOSPlatform( available: "15.0", apiName: 'WKMediaCaptureType.camera', - apiUrl: 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera', - value: 0 - ) + apiUrl: + 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera', + value: 0) ]) static const CAMERA = PermissionResourceType_._internal('CAMERA'); @@ -71,19 +72,17 @@ class PermissionResourceType_ { EnumIOSPlatform( available: "15.0", apiName: 'WKMediaCaptureType.cameraAndMicrophone', - apiUrl: 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone', - value: 2 - ) + apiUrl: + 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone', + value: 2) ]) - static const CAMERA_AND_MICROPHONE = PermissionResourceType_._internal('CAMERA_AND_MICROPHONE'); + static const CAMERA_AND_MICROPHONE = + PermissionResourceType_._internal('CAMERA_AND_MICROPHONE'); ///Resource belongs to the device’s orientation and motion. @EnumSupportedPlatforms(platforms: [ - EnumIOSPlatform( - available: "15.0", - value: 'deviceOrientationAndMotion' - ) + EnumIOSPlatform(available: "15.0", value: 'deviceOrientationAndMotion') ]) - static const DEVICE_ORIENTATION_AND_MOTION = PermissionResourceType_._internal( - 'DEVICE_ORIENTATION_AND_MOTION'); + static const DEVICE_ORIENTATION_AND_MOTION = + PermissionResourceType_._internal('DEVICE_ORIENTATION_AND_MOTION'); } diff --git a/lib/src/types/permission_response.dart b/lib/src/types/permission_response.dart index 7f959ac9..58538a05 100644 --- a/lib/src/types/permission_response.dart +++ b/lib/src/types/permission_response.dart @@ -18,7 +18,8 @@ class PermissionResponse_ { PermissionResponseAction_? action; PermissionResponse_( - {this.resources = const [], this.action = PermissionResponseAction_.DENY}); + {this.resources = const [], + this.action = PermissionResponseAction_.DENY}); } ///Class that represents the response used by the [WebView.androidOnPermissionRequest] event. @@ -34,5 +35,5 @@ class PermissionRequestResponse_ { PermissionRequestResponse_( {this.resources = const [], - this.action = PermissionRequestResponseAction_.DENY}); -} \ No newline at end of file + this.action = PermissionRequestResponseAction_.DENY}); +} diff --git a/lib/src/types/permission_response_action.dart b/lib/src/types/permission_response_action.dart index dee4e5c1..5b62f667 100644 --- a/lib/src/types/permission_response_action.dart +++ b/lib/src/types/permission_response_action.dart @@ -21,10 +21,9 @@ class PermissionResponseAction_ { ///Prompt the user for permission for the requested resource. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( - available: "15.0", - note: "On iOS < 15.0, it will fallback to [DENY]", - value: 2 - ) + available: "15.0", + note: "On iOS < 15.0, it will fallback to [DENY]", + value: 2) ]) static const PROMPT = const PermissionResponseAction_._internal(2); } @@ -43,4 +42,4 @@ class PermissionRequestResponseAction_ { ///Grants origin the permission to access the given resources. static const GRANT = const PermissionRequestResponseAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/print_job_attributes.dart b/lib/src/types/print_job_attributes.dart index b683c239..800a80cd 100644 --- a/lib/src/types/print_job_attributes.dart +++ b/lib/src/types/print_job_attributes.dart @@ -22,23 +22,18 @@ class PrintJobAttributes_ { ///The duplex mode to use for the print job. @SupportedPlatforms( - platforms: [AndroidPlatform(available: "23"), IOSPlatform()] - ) + platforms: [AndroidPlatform(available: "23"), IOSPlatform()]) PrintJobDuplexMode_? duplex; ///The orientation of the printed content, portrait or landscape. PrintJobOrientation_? orientation; ///The media size. - @SupportedPlatforms( - platforms: [AndroidPlatform()] - ) + @SupportedPlatforms(platforms: [AndroidPlatform()]) PrintJobMediaSize_? mediaSize; ///The supported resolution in DPI (dots per inch). - @SupportedPlatforms( - platforms: [AndroidPlatform()] - ) + @SupportedPlatforms(platforms: [AndroidPlatform()]) PrintJobResolution_? resolution; ///The margins for each printed page. diff --git a/lib/src/types/print_job_media_size.dart b/lib/src/types/print_job_media_size.dart index 04645ca5..2a3dd53f 100644 --- a/lib/src/types/print_job_media_size.dart +++ b/lib/src/types/print_job_media_size.dart @@ -63,8 +63,8 @@ class PrintJobMediaSize_ { id: "ISO_A3", widthMils: 11690, heightMils: 16540); ///ISO A4 media size: 210mm x 297mm (8.27" x 11.69") - static const ISO_A4 = - const PrintJobMediaSize_(id: "ISO_A4", widthMils: 8270, heightMils: 11690); + static const ISO_A4 = const PrintJobMediaSize_( + id: "ISO_A4", widthMils: 8270, heightMils: 11690); ///ISO A5 media size: 148mm x 210mm (5.83" x 8.27") static const ISO_A5 = @@ -87,8 +87,8 @@ class PrintJobMediaSize_ { const PrintJobMediaSize_(id: "ISO_A9", widthMils: 1460, heightMils: 2050); ///ISO A10 media size: 26mm x 37mm (1.02" x 1.46") - static const ISO_A10 = - const PrintJobMediaSize_(id: "ISO_A10", widthMils: 1020, heightMils: 1460); + static const ISO_A10 = const PrintJobMediaSize_( + id: "ISO_A10", widthMils: 1020, heightMils: 1460); ///ISO B0 media size: 1000mm x 1414mm (39.37" x 55.67") static const ISO_B0 = const PrintJobMediaSize_( @@ -107,8 +107,8 @@ class PrintJobMediaSize_ { id: "ISO_B3", widthMils: 13900, heightMils: 19690); ///ISO B4 media size: 250mm x 353mm (9.84" x 13.90") - static const ISO_B4 = - const PrintJobMediaSize_(id: "ISO_B4", widthMils: 9840, heightMils: 13900); + static const ISO_B4 = const PrintJobMediaSize_( + id: "ISO_B4", widthMils: 9840, heightMils: 13900); ///ISO B5 media size: 176mm x 250mm (6.93" x 9.84") static const ISO_B5 = @@ -131,8 +131,8 @@ class PrintJobMediaSize_ { const PrintJobMediaSize_(id: "ISO_B9", widthMils: 1730, heightMils: 2440); ///ISO B10 media size: 31mm x 44mm (1.22" x 1.73") - static const ISO_B10 = - const PrintJobMediaSize_(id: "ISO_B10", widthMils: 1220, heightMils: 1730); + static const ISO_B10 = const PrintJobMediaSize_( + id: "ISO_B10", widthMils: 1220, heightMils: 1730); ///ISO C0 media size: 917mm x 1297mm (36.10" x 51.06") static const ISO_C0 = const PrintJobMediaSize_( @@ -151,8 +151,8 @@ class PrintJobMediaSize_ { id: "ISO_C3", widthMils: 12760, heightMils: 18030); ///ISO C4 media size: 229mm x 324mm (9.02" x 12.76") - static const ISO_C4 = - const PrintJobMediaSize_(id: "ISO_C4", widthMils: 9020, heightMils: 12760); + static const ISO_C4 = const PrintJobMediaSize_( + id: "ISO_C4", widthMils: 9020, heightMils: 12760); ///ISO C5 media size: 162mm x 229mm (6.38" x 9.02") static const ISO_C5 = @@ -175,8 +175,8 @@ class PrintJobMediaSize_ { const PrintJobMediaSize_(id: "ISO_C9", widthMils: 1570, heightMils: 2240); ///ISO C10 media size: 28mm x 40mm (1.10" x 1.57") - static const ISO_C10 = - const PrintJobMediaSize_(id: "ISO_C10", widthMils: 1100, heightMils: 1570); + static const ISO_C10 = const PrintJobMediaSize_( + id: "ISO_C10", widthMils: 1100, heightMils: 1570); // North America @@ -323,8 +323,8 @@ class PrintJobMediaSize_ { id: "PRC_10", widthMils: 12756, heightMils: 18032); ///Chinese PRC 16k media size: 146mm x 215mm (5.749" x 8.465") - static const PRC_16K = - const PrintJobMediaSize_(id: "PRC_16K", widthMils: 5749, heightMils: 8465); + static const PRC_16K = const PrintJobMediaSize_( + id: "PRC_16K", widthMils: 5749, heightMils: 8465); ///Chinese Pa Kai media size: 267mm x 389mm (10.512" x 15.315") static const OM_PA_KAI = const PrintJobMediaSize_( @@ -341,8 +341,8 @@ class PrintJobMediaSize_ { // Japanese ///Japanese JIS B10 media size: 32mm x 45mm (1.259" x 1.772") - static const JIS_B10 = - const PrintJobMediaSize_(id: "JIS_B10", widthMils: 1259, heightMils: 1772); + static const JIS_B10 = const PrintJobMediaSize_( + id: "JIS_B10", widthMils: 1259, heightMils: 1772); ///Japanese JIS B9 media size: 45mm x 64mm (1.772" x 2.52") static const JIS_B9 = @@ -361,8 +361,8 @@ class PrintJobMediaSize_ { const PrintJobMediaSize_(id: "JIS_B6", widthMils: 5049, heightMils: 7165); ///Japanese JIS B5 media size: 182mm x 257mm (7.165" x 10.118") - static const JIS_B5 = - const PrintJobMediaSize_(id: "JIS_B5", widthMils: 7165, heightMils: 10118); + static const JIS_B5 = const PrintJobMediaSize_( + id: "JIS_B5", widthMils: 7165, heightMils: 10118); ///Japanese JIS B4 media size: 257mm x 364mm (10.118" x 14.331") static const JIS_B4 = const PrintJobMediaSize_( diff --git a/lib/src/types/print_job_state.dart b/lib/src/types/print_job_state.dart index d5c8f227..beab9e07 100644 --- a/lib/src/types/print_job_state.dart +++ b/lib/src/types/print_job_state.dart @@ -17,10 +17,10 @@ class PrintJobState_ { ///Next valid states: [QUEUED]. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( - apiName: 'PrintJobInfo.STATE_CREATED', - apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CREATED', - value: 1 - ), + apiName: 'PrintJobInfo.STATE_CREATED', + apiUrl: + 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CREATED', + value: 1), EnumIOSPlatform(value: 1) ]) static const CREATED = const PrintJobState_._internal(1); @@ -31,9 +31,9 @@ class PrintJobState_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PrintJobInfo.STATE_QUEUED', - apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_QUEUED', - value: 2 - ) + apiUrl: + 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_QUEUED', + value: 2) ]) static const QUEUED = const PrintJobState_._internal(2); @@ -43,9 +43,9 @@ class PrintJobState_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PrintJobInfo.STATE_STARTED', - apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_STARTED', - value: 3 - ), + apiUrl: + 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_STARTED', + value: 3), EnumIOSPlatform(value: 3) ]) static const STARTED = const PrintJobState_._internal(3); @@ -56,9 +56,9 @@ class PrintJobState_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PrintJobInfo.STATE_BLOCKED', - apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_BLOCKED', - value: 4 - ) + apiUrl: + 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_BLOCKED', + value: 4) ]) static const BLOCKED = const PrintJobState_._internal(4); @@ -68,23 +68,22 @@ class PrintJobState_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PrintJobInfo.STATE_COMPLETED', - apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_COMPLETED', - value: 5 - ), + apiUrl: + 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_COMPLETED', + value: 5), EnumIOSPlatform(value: 5) ]) static const COMPLETED = const PrintJobState_._internal(5); - ///Print job state: The print job was printing but printing failed. /// ///Next valid states: None. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PrintJobInfo.STATE_FAILED', - apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_FAILED', - value: 6 - ), + apiUrl: + 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_FAILED', + value: 6), EnumIOSPlatform(value: 6) ]) static const FAILED = const PrintJobState_._internal(6); @@ -95,9 +94,9 @@ class PrintJobState_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'PrintJobInfo.STATE_CANCELED', - apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CANCELED', - value: 7 - ), + apiUrl: + 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CANCELED', + value: 7), EnumIOSPlatform(value: 7) ]) static const CANCELED = const PrintJobState_._internal(7); diff --git a/lib/src/types/proxy_scheme_filter.dart b/lib/src/types/proxy_scheme_filter.dart index ed22ad13..fe526e82 100644 --- a/lib/src/types/proxy_scheme_filter.dart +++ b/lib/src/types/proxy_scheme_filter.dart @@ -18,6 +18,5 @@ class ProxySchemeFilter_ { static const MATCH_HTTP = const ProxySchemeFilter_._internal("http"); ///HTTPS scheme. - static const MATCH_HTTPS = - const ProxySchemeFilter_._internal("https"); -} \ No newline at end of file + static const MATCH_HTTPS = const ProxySchemeFilter_._internal("https"); +} diff --git a/lib/src/types/pull_to_refresh_size.dart b/lib/src/types/pull_to_refresh_size.dart index ac7e12a6..ccef1f13 100644 --- a/lib/src/types/pull_to_refresh_size.dart +++ b/lib/src/types/pull_to_refresh_size.dart @@ -30,4 +30,4 @@ class AndroidPullToRefreshSize_ { ///Large size. static const LARGE = const AndroidPullToRefreshSize_._internal(0); -} \ No newline at end of file +} diff --git a/lib/src/types/referrer_policy.dart b/lib/src/types/referrer_policy.dart index c81ffaf2..ff23caab 100644 --- a/lib/src/types/referrer_policy.dart +++ b/lib/src/types/referrer_policy.dart @@ -19,7 +19,7 @@ class ReferrerPolicy_ { ///The Referer header will not be sent to origins without TLS (HTTPS). static const NO_REFERRER_WHEN_DOWNGRADE = - const ReferrerPolicy_._internal("no-referrer-when-downgrade"); + const ReferrerPolicy_._internal("no-referrer-when-downgrade"); ///The sent referrer will be limited to the origin of the referring page: its scheme, host, and port. static const ORIGIN = const ReferrerPolicy_._internal("origin"); @@ -27,7 +27,7 @@ class ReferrerPolicy_ { ///The referrer sent to other origins will be limited to the scheme, the host, and the port. ///Navigations on the same origin will still include the path. static const ORIGIN_WHEN_CROSS_ORIGIN = - const ReferrerPolicy_._internal("origin-when-cross-origin"); + const ReferrerPolicy_._internal("origin-when-cross-origin"); ///A referrer will be sent for same origin, but cross-origin requests will contain no referrer information. static const SAME_ORIGIN = const ReferrerPolicy_._internal("same-origin"); @@ -39,9 +39,9 @@ class ReferrerPolicy_ { ///Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS -> HTTPS), ///and send no header to a less secure destination (e.g. HTTPS -> HTTP). static const STRICT_ORIGIN_WHEN_CROSS_ORIGIN = - const ReferrerPolicy_._internal("strict-origin-when-cross-origin"); + const ReferrerPolicy_._internal("strict-origin-when-cross-origin"); ///The referrer will include the origin and the path (but not the fragment, password, or username). ///This value is unsafe, because it leaks origins and paths from TLS-protected resources to insecure origins. static const UNSAFE_URL = const ReferrerPolicy_._internal("unsafe-url"); -} \ No newline at end of file +} diff --git a/lib/src/types/render_process_gone_detail.dart b/lib/src/types/render_process_gone_detail.dart index aa715e9c..89bf2149 100644 --- a/lib/src/types/render_process_gone_detail.dart +++ b/lib/src/types/render_process_gone_detail.dart @@ -20,4 +20,4 @@ class RenderProcessGoneDetail_ { RenderProcessGoneDetail_( {required this.didCrash, this.rendererPriorityAtExit}); -} \ No newline at end of file +} diff --git a/lib/src/types/renderer_priority.dart b/lib/src/types/renderer_priority.dart index 2090e392..7a1bbb1d 100644 --- a/lib/src/types/renderer_priority.dart +++ b/lib/src/types/renderer_priority.dart @@ -20,5 +20,5 @@ class RendererPriority_ { ///The renderer associated with this WebView is bound with Android `Context#BIND_IMPORTANT`. static const RENDERER_PRIORITY_IMPORTANT = - const RendererPriority_._internal(2); -} \ No newline at end of file + const RendererPriority_._internal(2); +} diff --git a/lib/src/types/renderer_priority_policy.dart b/lib/src/types/renderer_priority_policy.dart index 42ec700f..371f1461 100644 --- a/lib/src/types/renderer_priority_policy.dart +++ b/lib/src/types/renderer_priority_policy.dart @@ -21,5 +21,5 @@ class RendererPriorityPolicy_ { RendererPriorityPolicy_( {required this.rendererRequestedPriority, - required this.waivedWhenNotVisible}); -} \ No newline at end of file + required this.waivedWhenNotVisible}); +} diff --git a/lib/src/types/request_focus_node_href_result.dart b/lib/src/types/request_focus_node_href_result.dart index 6751a33c..6a0acbdf 100644 --- a/lib/src/types/request_focus_node_href_result.dart +++ b/lib/src/types/request_focus_node_href_result.dart @@ -17,4 +17,4 @@ class RequestFocusNodeHrefResult_ { String? src; RequestFocusNodeHrefResult_({this.url, this.title, this.src}); -} \ No newline at end of file +} diff --git a/lib/src/types/request_image_ref_result.dart b/lib/src/types/request_image_ref_result.dart index 122605f5..9c42aef1 100644 --- a/lib/src/types/request_image_ref_result.dart +++ b/lib/src/types/request_image_ref_result.dart @@ -11,4 +11,4 @@ class RequestImageRefResult_ { Uri? url; RequestImageRefResult_({this.url}); -} \ No newline at end of file +} diff --git a/lib/src/types/requested_with_header_mode.dart b/lib/src/types/requested_with_header_mode.dart index 9b868ca9..c1e4fc33 100644 --- a/lib/src/types/requested_with_header_mode.dart +++ b/lib/src/types/requested_with_header_mode.dart @@ -16,4 +16,4 @@ class RequestedWithHeaderMode_ { ///if the application or the loaded webpage has not already set a header value. ///The value of this automatically added header will be the package name of the app. This is the default mode. static const APP_PACKAGE_NAME = const RequestedWithHeaderMode_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/safe_browsing_response.dart b/lib/src/types/safe_browsing_response.dart index 7a7bb842..ce510265 100644 --- a/lib/src/types/safe_browsing_response.dart +++ b/lib/src/types/safe_browsing_response.dart @@ -19,5 +19,5 @@ class SafeBrowsingResponse_ { SafeBrowsingResponse_( {this.report = true, - this.action = SafeBrowsingResponseAction_.SHOW_INTERSTITIAL}); -} \ No newline at end of file + this.action = SafeBrowsingResponseAction_.SHOW_INTERSTITIAL}); +} diff --git a/lib/src/types/safe_browsing_response_action.dart b/lib/src/types/safe_browsing_response_action.dart index e1902668..d9e04911 100644 --- a/lib/src/types/safe_browsing_response_action.dart +++ b/lib/src/types/safe_browsing_response_action.dart @@ -19,5 +19,5 @@ class SafeBrowsingResponseAction_ { ///Display the default interstitial. static const SHOW_INTERSTITIAL = - const SafeBrowsingResponseAction_._internal(2); -} \ No newline at end of file + const SafeBrowsingResponseAction_._internal(2); +} diff --git a/lib/src/types/safe_browsing_threat.dart b/lib/src/types/safe_browsing_threat.dart index aa154d90..844f7c80 100644 --- a/lib/src/types/safe_browsing_threat.dart +++ b/lib/src/types/safe_browsing_threat.dart @@ -11,24 +11,24 @@ class SafeBrowsingThreat_ { ///The resource was blocked for an unknown reason. static const SAFE_BROWSING_THREAT_UNKNOWN = - const SafeBrowsingThreat_._internal(0); + const SafeBrowsingThreat_._internal(0); ///The resource was blocked because it contains malware. static const SAFE_BROWSING_THREAT_MALWARE = - const SafeBrowsingThreat_._internal(1); + const SafeBrowsingThreat_._internal(1); ///The resource was blocked because it contains deceptive content. static const SAFE_BROWSING_THREAT_PHISHING = - const SafeBrowsingThreat_._internal(2); + const SafeBrowsingThreat_._internal(2); ///The resource was blocked because it contains unwanted software. static const SAFE_BROWSING_THREAT_UNWANTED_SOFTWARE = - const SafeBrowsingThreat_._internal(3); + const SafeBrowsingThreat_._internal(3); ///The resource was blocked because it may trick the user into a billing agreement. /// ///This constant is only used when `targetSdkVersion` is at least Android 29. ///Otherwise, [SAFE_BROWSING_THREAT_UNKNOWN] is used instead. static const SAFE_BROWSING_THREAT_BILLING = - const SafeBrowsingThreat_._internal(4); -} \ No newline at end of file + const SafeBrowsingThreat_._internal(4); +} diff --git a/lib/src/types/sandbox.dart b/lib/src/types/sandbox.dart index 4cd8acee..89893c38 100644 --- a/lib/src/types/sandbox.dart +++ b/lib/src/types/sandbox.dart @@ -16,7 +16,8 @@ class Sandbox_ { return Sandbox._NONE; } try { - return Sandbox.values.firstWhere((element) => element.toNativeValue() == value); + return Sandbox.values + .firstWhere((element) => element.toNativeValue() == value); } catch (e) { return null; } @@ -41,10 +42,8 @@ class Sandbox_ { @override String toString() { - if (_value == null) - return 'allow-all'; - if (_value == '') - return 'allow-none'; + if (_value == null) return 'allow-all'; + if (_value == '') return 'allow-none'; return _value ?? ''; } @@ -70,11 +69,11 @@ class Sandbox_ { ///Lets the resource lock the screen orientation. static const ALLOW_ORIENTATION_LOCK = - const Sandbox_._internal("allow-orientation-lock"); + const Sandbox_._internal("allow-orientation-lock"); ///Lets the resource use the Pointer Lock API. static const ALLOW_POINTER_LOCK = - const Sandbox_._internal("allow-pointer-lock"); + const Sandbox_._internal("allow-pointer-lock"); ///Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). ///If this keyword is not used, the popup will silently fail to open. @@ -83,24 +82,25 @@ class Sandbox_ { ///Lets the sandboxed document open new windows without those windows inheriting the sandboxing. ///For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to. static const ALLOW_POPUPS_TO_ESCAPE_SANDBOX = - const Sandbox_._internal("allow-popups-to-escape-sandbox"); + const Sandbox_._internal("allow-popups-to-escape-sandbox"); ///Lets the resource start a presentation session. static const ALLOW_PRESENTATION = - const Sandbox_._internal("allow-presentation"); + const Sandbox_._internal("allow-presentation"); ///If this token is not used, the resource is treated as being from a special origin that always fails the ///same-origin policy (potentially preventing access to data storage/cookies and some JavaScript APIs). - static const ALLOW_SAME_ORIGIN = const Sandbox_._internal("allow-same-origin"); + static const ALLOW_SAME_ORIGIN = + const Sandbox_._internal("allow-same-origin"); ///Lets the resource run scripts (but not create popup windows). static const ALLOW_SCRIPTS = const Sandbox_._internal("allow-scripts"); ///Lets the resource navigate the top-level browsing context (the one named `_top`). static const ALLOW_TOP_NAVIGATION = - const Sandbox_._internal("allow-top-navigation"); + const Sandbox_._internal("allow-top-navigation"); ///Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture. static const ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION = - const Sandbox_._internal("allow-top-navigation-by-user-activation"); -} \ No newline at end of file + const Sandbox_._internal("allow-top-navigation-by-user-activation"); +} diff --git a/lib/src/types/screenshot_configuration.dart b/lib/src/types/screenshot_configuration.dart index 4e860edc..61e13e93 100644 --- a/lib/src/types/screenshot_configuration.dart +++ b/lib/src/types/screenshot_configuration.dart @@ -46,16 +46,16 @@ class ScreenshotConfiguration_ { @ExchangeableObjectConstructor() ScreenshotConfiguration_( {this.rect, - this.snapshotWidth, - this.compressFormat = CompressFormat_.PNG, - this.quality = 100, - @Deprecated("Use afterScreenUpdates instead") this.iosAfterScreenUpdates, - this.afterScreenUpdates = true}) { + this.snapshotWidth, + this.compressFormat = CompressFormat_.PNG, + this.quality = 100, + @Deprecated("Use afterScreenUpdates instead") this.iosAfterScreenUpdates, + this.afterScreenUpdates = true}) { assert(this.quality >= 0); // ignore: deprecated_member_use_from_same_package this.afterScreenUpdates = this.iosAfterScreenUpdates != null - // ignore: deprecated_member_use_from_same_package + // ignore: deprecated_member_use_from_same_package ? this.iosAfterScreenUpdates! : this.afterScreenUpdates; } -} \ No newline at end of file +} diff --git a/lib/src/types/script_html_tag_attributes.dart b/lib/src/types/script_html_tag_attributes.dart index a770f533..589adc76 100644 --- a/lib/src/types/script_html_tag_attributes.dart +++ b/lib/src/types/script_html_tag_attributes.dart @@ -72,19 +72,19 @@ class ScriptHtmlTagAttributes_ { @ExchangeableObjectConstructor() ScriptHtmlTagAttributes_( {this.type = "text/javascript", - this.id, - this.async, - this.defer, - this.crossOrigin, - this.integrity, - this.noModule, - this.nonce, - this.referrerPolicy, - this.onLoad, - this.onError}) { + this.id, + this.async, + this.defer, + this.crossOrigin, + this.integrity, + this.noModule, + this.nonce, + this.referrerPolicy, + this.onLoad, + this.onError}) { if (this.onLoad != null || this.onError != null) { assert(this.id != null, - 'onLoad and onError callbacks require the id property to be set.'); + 'onLoad and onError callbacks require the id property to be set.'); } } -} \ No newline at end of file +} diff --git a/lib/src/types/scrollbar_style.dart b/lib/src/types/scrollbar_style.dart index bb66424a..5ff49ef3 100644 --- a/lib/src/types/scrollbar_style.dart +++ b/lib/src/types/scrollbar_style.dart @@ -22,17 +22,17 @@ class ScrollBarStyle_ { ///The scrollbar style to display the scrollbars inside the padded area, increasing the padding of the view. ///The scrollbars will not overlap the content area of the view. static const SCROLLBARS_INSIDE_INSET = - const ScrollBarStyle_._internal(16777216); + const ScrollBarStyle_._internal(16777216); ///The scrollbar style to display the scrollbars at the edge of the view, without increasing the padding. ///The scrollbars will be overlaid with translucency. static const SCROLLBARS_OUTSIDE_OVERLAY = - const ScrollBarStyle_._internal(33554432); + const ScrollBarStyle_._internal(33554432); ///The scrollbar style to display the scrollbars at the edge of the view, increasing the padding of the view. ///The scrollbars will only overlap the background, if any. static const SCROLLBARS_OUTSIDE_INSET = - const ScrollBarStyle_._internal(50331648); + const ScrollBarStyle_._internal(50331648); } ///An Android-specific class used to configure the style of the scrollbars. @@ -54,20 +54,20 @@ class AndroidScrollBarStyle_ { ///The scrollbar style to display the scrollbars inside the content area, without increasing the padding. ///The scrollbars will be overlaid with translucency on the view's content. static const SCROLLBARS_INSIDE_OVERLAY = - const AndroidScrollBarStyle_._internal(0); + const AndroidScrollBarStyle_._internal(0); ///The scrollbar style to display the scrollbars inside the padded area, increasing the padding of the view. ///The scrollbars will not overlap the content area of the view. static const SCROLLBARS_INSIDE_INSET = - const AndroidScrollBarStyle_._internal(16777216); + const AndroidScrollBarStyle_._internal(16777216); ///The scrollbar style to display the scrollbars at the edge of the view, without increasing the padding. ///The scrollbars will be overlaid with translucency. static const SCROLLBARS_OUTSIDE_OVERLAY = - const AndroidScrollBarStyle_._internal(33554432); + const AndroidScrollBarStyle_._internal(33554432); ///The scrollbar style to display the scrollbars at the edge of the view, increasing the padding of the view. ///The scrollbars will only overlap the background, if any. static const SCROLLBARS_OUTSIDE_INSET = - const AndroidScrollBarStyle_._internal(50331648); -} \ No newline at end of file + const AndroidScrollBarStyle_._internal(50331648); +} diff --git a/lib/src/types/scrollview_content_inset_adjustment_behavior.dart b/lib/src/types/scrollview_content_inset_adjustment_behavior.dart index 51f00d91..39e796b9 100644 --- a/lib/src/types/scrollview_content_inset_adjustment_behavior.dart +++ b/lib/src/types/scrollview_content_inset_adjustment_behavior.dart @@ -11,19 +11,19 @@ class ScrollViewContentInsetAdjustmentBehavior_ { ///Automatically adjust the scroll view insets. static const AUTOMATIC = - const ScrollViewContentInsetAdjustmentBehavior_._internal(0); + const ScrollViewContentInsetAdjustmentBehavior_._internal(0); ///Adjust the insets only in the scrollable directions. static const SCROLLABLE_AXES = - const ScrollViewContentInsetAdjustmentBehavior_._internal(1); + const ScrollViewContentInsetAdjustmentBehavior_._internal(1); ///Do not adjust the scroll view insets. static const NEVER = - const ScrollViewContentInsetAdjustmentBehavior_._internal(2); + const ScrollViewContentInsetAdjustmentBehavior_._internal(2); ///Always include the safe area insets in the content adjustment. static const ALWAYS = - const ScrollViewContentInsetAdjustmentBehavior_._internal(3); + const ScrollViewContentInsetAdjustmentBehavior_._internal(3); } ///An iOS-specific class used to configure how safe area insets are added to the adjusted content inset. @@ -40,17 +40,17 @@ class IOSUIScrollViewContentInsetAdjustmentBehavior_ { ///Automatically adjust the scroll view insets. static const AUTOMATIC = - const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(0); + const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(0); ///Adjust the insets only in the scrollable directions. static const SCROLLABLE_AXES = - const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(1); + const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(1); ///Do not adjust the scroll view insets. static const NEVER = - const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(2); + const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(2); ///Always include the safe area insets in the content adjustment. static const ALWAYS = - const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(3); -} \ No newline at end of file + const IOSUIScrollViewContentInsetAdjustmentBehavior_._internal(3); +} diff --git a/lib/src/types/scrollview_deceleration_rate.dart b/lib/src/types/scrollview_deceleration_rate.dart index 03d5bd36..4349e2c4 100644 --- a/lib/src/types/scrollview_deceleration_rate.dart +++ b/lib/src/types/scrollview_deceleration_rate.dart @@ -27,8 +27,8 @@ class IOSUIScrollViewDecelerationRate_ { ///The default deceleration rate for a scroll view: `0.998`. static const NORMAL = - const IOSUIScrollViewDecelerationRate_._internal("NORMAL"); + const IOSUIScrollViewDecelerationRate_._internal("NORMAL"); ///A fast deceleration rate for a scroll view: `0.99`. static const FAST = const IOSUIScrollViewDecelerationRate_._internal("FAST"); -} \ No newline at end of file +} diff --git a/lib/src/types/search_result_display_style.dart b/lib/src/types/search_result_display_style.dart index 71be3b8a..d709c1f0 100644 --- a/lib/src/types/search_result_display_style.dart +++ b/lib/src/types/search_result_display_style.dart @@ -17,4 +17,4 @@ class SearchResultDisplayStyle_ { ///The find panel doesn’t include the number of results the session reports. static const NONE = const SearchResultDisplayStyle_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/security_origin.dart b/lib/src/types/security_origin.dart index 058ad3f1..958761f0 100644 --- a/lib/src/types/security_origin.dart +++ b/lib/src/types/security_origin.dart @@ -37,4 +37,4 @@ class IOSWKSecurityOrigin_ { IOSWKSecurityOrigin_( {required this.host, required this.port, required this.protocol}); -} \ No newline at end of file +} diff --git a/lib/src/types/selection_granularity.dart b/lib/src/types/selection_granularity.dart index c068eb47..59624190 100644 --- a/lib/src/types/selection_granularity.dart +++ b/lib/src/types/selection_granularity.dart @@ -30,4 +30,4 @@ class IOSWKSelectionGranularity_ { ///Selection endpoints can be placed at any character boundary. static const CHARACTER = const IOSWKSelectionGranularity_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/server_trust_auth_response.dart b/lib/src/types/server_trust_auth_response.dart index 087f181a..2e630fcf 100644 --- a/lib/src/types/server_trust_auth_response.dart +++ b/lib/src/types/server_trust_auth_response.dart @@ -12,5 +12,6 @@ class ServerTrustAuthResponse_ { ///Indicate the [ServerTrustAuthResponseAction] to take in response of the server trust authentication challenge. ServerTrustAuthResponseAction_? action; - ServerTrustAuthResponse_({this.action = ServerTrustAuthResponseAction_.CANCEL}); -} \ No newline at end of file + ServerTrustAuthResponse_( + {this.action = ServerTrustAuthResponseAction_.CANCEL}); +} diff --git a/lib/src/types/server_trust_auth_response_action.dart b/lib/src/types/server_trust_auth_response_action.dart index 6b381926..65e1225d 100644 --- a/lib/src/types/server_trust_auth_response_action.dart +++ b/lib/src/types/server_trust_auth_response_action.dart @@ -16,4 +16,4 @@ class ServerTrustAuthResponseAction_ { ///Instructs the WebView to proceed with the authentication challenge. static const PROCEED = const ServerTrustAuthResponseAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/server_trust_challenge.dart b/lib/src/types/server_trust_challenge.dart index c7030469..0e519dc8 100644 --- a/lib/src/types/server_trust_challenge.dart +++ b/lib/src/types/server_trust_challenge.dart @@ -12,4 +12,4 @@ part 'server_trust_challenge.g.dart'; class ServerTrustChallenge_ extends URLAuthenticationChallenge_ { ServerTrustChallenge_({required URLProtectionSpace_ protectionSpace}) : super(protectionSpace: protectionSpace); -} \ No newline at end of file +} diff --git a/lib/src/types/should_allow_deprecated_tls_action.dart b/lib/src/types/should_allow_deprecated_tls_action.dart index 3d5fdd17..dcf506bb 100644 --- a/lib/src/types/should_allow_deprecated_tls_action.dart +++ b/lib/src/types/should_allow_deprecated_tls_action.dart @@ -34,4 +34,4 @@ class IOSShouldAllowDeprecatedTLSAction_ { ///Allow the navigation to continue. static const ALLOW = const IOSShouldAllowDeprecatedTLSAction_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/ssl_certificate.dart b/lib/src/types/ssl_certificate.dart index 7405a690..c045617c 100644 --- a/lib/src/types/ssl_certificate.dart +++ b/lib/src/types/ssl_certificate.dart @@ -28,10 +28,10 @@ class SslCertificate_ { SslCertificate_( {this.issuedBy, - this.issuedTo, - this.validNotAfterDate, - this.validNotBeforeDate, - this.x509Certificate}); + this.issuedTo, + this.validNotAfterDate, + this.validNotBeforeDate, + this.x509Certificate}); ///Gets a possible [SslCertificate] instance from a [Map] value. static SslCertificate? fromMap(Map? map) { @@ -52,25 +52,25 @@ class SslCertificate_ { return SslCertificate( issuedBy: SslCertificateDName( CName: x509Certificate.issuer( - dn: ASN1DistinguishedNames.COMMON_NAME) ?? + dn: ASN1DistinguishedNames.COMMON_NAME) ?? "", DName: x509Certificate.issuerDistinguishedName ?? "", OName: x509Certificate.issuer( - dn: ASN1DistinguishedNames.ORGANIZATION_NAME) ?? + dn: ASN1DistinguishedNames.ORGANIZATION_NAME) ?? "", UName: x509Certificate.issuer( - dn: ASN1DistinguishedNames.ORGANIZATIONAL_UNIT_NAME) ?? + dn: ASN1DistinguishedNames.ORGANIZATIONAL_UNIT_NAME) ?? ""), issuedTo: SslCertificateDName( CName: x509Certificate.subject( - dn: ASN1DistinguishedNames.COMMON_NAME) ?? + dn: ASN1DistinguishedNames.COMMON_NAME) ?? "", DName: x509Certificate.subjectDistinguishedName ?? "", OName: x509Certificate.subject( - dn: ASN1DistinguishedNames.ORGANIZATION_NAME) ?? + dn: ASN1DistinguishedNames.ORGANIZATION_NAME) ?? "", UName: x509Certificate.subject( - dn: ASN1DistinguishedNames.ORGANIZATIONAL_UNIT_NAME) ?? + dn: ASN1DistinguishedNames.ORGANIZATIONAL_UNIT_NAME) ?? ""), validNotAfterDate: x509Certificate.notAfter, validNotBeforeDate: x509Certificate.notBefore, @@ -82,14 +82,14 @@ class SslCertificate_ { return SslCertificate( issuedBy: - SslCertificateDName.fromMap(map["issuedBy"]?.cast()), + SslCertificateDName.fromMap(map["issuedBy"]?.cast()), issuedTo: - SslCertificateDName.fromMap(map["issuedTo"]?.cast()), + SslCertificateDName.fromMap(map["issuedTo"]?.cast()), validNotAfterDate: - DateTime.fromMillisecondsSinceEpoch(map["validNotAfterDate"]), + DateTime.fromMillisecondsSinceEpoch(map["validNotAfterDate"]), validNotBeforeDate: - DateTime.fromMillisecondsSinceEpoch(map["validNotBeforeDate"]), + DateTime.fromMillisecondsSinceEpoch(map["validNotBeforeDate"]), x509Certificate: x509Certificate, ); } -} \ No newline at end of file +} diff --git a/lib/src/types/ssl_error.dart b/lib/src/types/ssl_error.dart index d22096a8..1971d840 100644 --- a/lib/src/types/ssl_error.dart +++ b/lib/src/types/ssl_error.dart @@ -24,7 +24,7 @@ class SslError_ { SslError_( {@Deprecated('Use code instead') this.androidError, - @Deprecated('Use code instead') this.iosError, - this.code, - this.message}) {} -} \ No newline at end of file + @Deprecated('Use code instead') this.iosError, + this.code, + this.message}) {} +} diff --git a/lib/src/types/ssl_error_type.dart b/lib/src/types/ssl_error_type.dart index 83603717..3b50c9ad 100644 --- a/lib/src/types/ssl_error_type.dart +++ b/lib/src/types/ssl_error_type.dart @@ -20,9 +20,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'SslError.SSL_NOTYETVALID', - apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_NOTYETVALID', - value: 0 - ) + apiUrl: + 'https://developer.android.com/reference/android/net/http/SslError#SSL_NOTYETVALID', + value: 0) ]) static const NOT_YET_VALID = SslErrorType_._internal('NOT_YET_VALID'); @@ -30,9 +30,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'SslError.SSL_EXPIRED', - apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_EXPIRED', - value: 1 - ) + apiUrl: + 'https://developer.android.com/reference/android/net/http/SslError#SSL_EXPIRED', + value: 1) ]) static const EXPIRED = SslErrorType_._internal('EXPIRED'); @@ -40,9 +40,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'SslError.SSL_IDMISMATCH', - apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_IDMISMATCH', - value: 2 - ) + apiUrl: + 'https://developer.android.com/reference/android/net/http/SslError#SSL_IDMISMATCH', + value: 2) ]) static const IDMISMATCH = SslErrorType_._internal('IDMISMATCH'); @@ -50,9 +50,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'SslError.SSL_UNTRUSTED', - apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_UNTRUSTED', - value: 3 - ) + apiUrl: + 'https://developer.android.com/reference/android/net/http/SslError#SSL_UNTRUSTED', + value: 3) ]) static const UNTRUSTED = SslErrorType_._internal('UNTRUSTED'); @@ -60,9 +60,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'SslError.DATE_INVALID', - apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_DATE_INVALID', - value: 4 - ) + apiUrl: + 'https://developer.android.com/reference/android/net/http/SslError#SSL_DATE_INVALID', + value: 4) ]) static const DATE_INVALID = SslErrorType_._internal('DATE_INVALID'); @@ -70,14 +70,14 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'SslError.SSL_INVALID', - apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_INVALID', - value: 5 - ), + apiUrl: + 'https://developer.android.com/reference/android/net/http/SslError#SSL_INVALID', + value: 5), EnumIOSPlatform( apiName: 'SecTrustResultType.invalid', - apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/invalid', - value: 0 - ) + apiUrl: + 'https://developer.apple.com/documentation/security/sectrustresulttype/invalid', + value: 0) ]) static const INVALID = SslErrorType_._internal('INVALID'); @@ -90,9 +90,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'SecTrustResultType.deny', - apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/deny', - value: 3 - ) + apiUrl: + 'https://developer.apple.com/documentation/security/sectrustresulttype/deny', + value: 3) ]) static const DENY = SslErrorType_._internal('DENY'); @@ -107,9 +107,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'SecTrustResultType.unspecified', - apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/unspecified', - value: 4 - ) + apiUrl: + 'https://developer.apple.com/documentation/security/sectrustresulttype/unspecified', + value: 4) ]) static const UNSPECIFIED = SslErrorType_._internal('UNSPECIFIED'); @@ -125,11 +125,12 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'SecTrustResultType.recoverableTrustFailure', - apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/recoverabletrustfailure', - value: 5 - ) + apiUrl: + 'https://developer.apple.com/documentation/security/sectrustresulttype/recoverabletrustfailure', + value: 5) ]) - static const RECOVERABLE_TRUST_FAILURE = SslErrorType_._internal('RECOVERABLE_TRUST_FAILURE'); + static const RECOVERABLE_TRUST_FAILURE = + SslErrorType_._internal('RECOVERABLE_TRUST_FAILURE'); ///Trust is denied and no simple fix is available. /// @@ -140,11 +141,12 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'SecTrustResultType.fatalTrustFailure', - apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/fataltrustfailure', - value: 6 - ) + apiUrl: + 'https://developer.apple.com/documentation/security/sectrustresulttype/fataltrustfailure', + value: 6) ]) - static const FATAL_TRUST_FAILURE = SslErrorType_._internal('FATAL_TRUST_FAILURE'); + static const FATAL_TRUST_FAILURE = + SslErrorType_._internal('FATAL_TRUST_FAILURE'); ///Indicates a failure other than that of trust evaluation. /// @@ -153,9 +155,9 @@ class SslErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'SecTrustResultType.otherError', - apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/othererror', - value: 7 - ) + apiUrl: + 'https://developer.apple.com/documentation/security/sectrustresulttype/othererror', + value: 7) ]) static const OTHER_ERROR = SslErrorType_._internal('OTHER_ERROR'); } diff --git a/lib/src/types/trusted_web_activity_default_display_mode.dart b/lib/src/types/trusted_web_activity_default_display_mode.dart index d0d3b058..ef160eeb 100644 --- a/lib/src/types/trusted_web_activity_default_display_mode.dart +++ b/lib/src/types/trusted_web_activity_default_display_mode.dart @@ -20,4 +20,4 @@ class TrustedWebActivityDefaultDisplayMode_ @override @ExchangeableObjectMethod(ignore: true) dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); -} \ No newline at end of file +} diff --git a/lib/src/types/trusted_web_activity_display_mode.dart b/lib/src/types/trusted_web_activity_display_mode.dart index 26982771..2b7e54ab 100644 --- a/lib/src/types/trusted_web_activity_display_mode.dart +++ b/lib/src/types/trusted_web_activity_display_mode.dart @@ -4,6 +4,4 @@ part 'trusted_web_activity_display_mode.g.dart'; ///Class that represents display mode of a Trusted Web Activity. @ExchangeableObject(fromMapFactory: false) -abstract class TrustedWebActivityDisplayMode_ { - -} \ No newline at end of file +abstract class TrustedWebActivityDisplayMode_ {} diff --git a/lib/src/types/trusted_web_activity_screen_orientation.dart b/lib/src/types/trusted_web_activity_screen_orientation.dart index 363be199..3e0488f6 100644 --- a/lib/src/types/trusted_web_activity_screen_orientation.dart +++ b/lib/src/types/trusted_web_activity_screen_orientation.dart @@ -12,31 +12,32 @@ class TrustedWebActivityScreenOrientation_ { /// The default screen orientation is the set of orientations to which the screen is locked when /// there is no current orientation lock. - static const DEFAULT = const TrustedWebActivityScreenOrientation_._internal(0); + static const DEFAULT = + const TrustedWebActivityScreenOrientation_._internal(0); /// Portrait-primary is an orientation where the screen width is less than or equal to the /// screen height. If the device's natural orientation is portrait, then it is in /// portrait-primary when held in that position. static const PORTRAIT_PRIMARY = - const TrustedWebActivityScreenOrientation_._internal(1); + const TrustedWebActivityScreenOrientation_._internal(1); /// Portrait-secondary is an orientation where the screen width is less than or equal to the /// screen height. If the device's natural orientation is portrait, then it is in /// portrait-secondary when rotated 180° from its natural position. static const PORTRAIT_SECONDARY = - const TrustedWebActivityScreenOrientation_._internal(2); + const TrustedWebActivityScreenOrientation_._internal(2); /// Landscape-primary is an orientation where the screen width is greater than the screen height. /// If the device's natural orientation is landscape, then it is in landscape-primary when held /// in that position. static const LANDSCAPE_PRIMARY = - const TrustedWebActivityScreenOrientation_._internal(3); + const TrustedWebActivityScreenOrientation_._internal(3); /// Landscape-secondary is an orientation where the screen width is greater than the /// screen height. If the device's natural orientation is landscape, it is in /// landscape-secondary when rotated 180° from its natural orientation. static const LANDSCAPE_SECONDARY = - const TrustedWebActivityScreenOrientation_._internal(4); + const TrustedWebActivityScreenOrientation_._internal(4); /// Any is an orientation that means the screen can be locked to any one of portrait-primary, /// portrait-secondary, landscape-primary and landscape-secondary. @@ -46,16 +47,17 @@ class TrustedWebActivityScreenOrientation_ { /// depending on platform convention locking the screen to landscape can represent /// landscape-primary, landscape-secondary or both. static const LANDSCAPE = - const TrustedWebActivityScreenOrientation_._internal(6); + const TrustedWebActivityScreenOrientation_._internal(6); /// Portrait is an orientation where the screen width is less than or equal to the screen height /// and depending on platform convention locking the screen to portrait can represent /// portrait-primary, portrait-secondary or both. static const PORTRAIT = - const TrustedWebActivityScreenOrientation_._internal(7); + const TrustedWebActivityScreenOrientation_._internal(7); /// Natural is an orientation that refers to either portrait-primary or landscape-primary /// depending on the device's usual orientation. This orientation is usually provided by /// the underlying operating system. - static const NATURAL = const TrustedWebActivityScreenOrientation_._internal(8); -} \ No newline at end of file + static const NATURAL = + const TrustedWebActivityScreenOrientation_._internal(8); +} diff --git a/lib/src/types/underline_style.dart b/lib/src/types/underline_style.dart index ad1b4df4..ef6088d6 100644 --- a/lib/src/types/underline_style.dart +++ b/lib/src/types/underline_style.dart @@ -68,8 +68,9 @@ class IOSNSUnderlineStyle_ { static const PATTERN_DASH_DOT = const IOSNSUnderlineStyle_._internal(768); ///Draw a line of alternating dashes and two dots. - static const PATTERN_DASH_DOT_DOT = const IOSNSUnderlineStyle_._internal(1024); + static const PATTERN_DASH_DOT_DOT = + const IOSNSUnderlineStyle_._internal(1024); ///Draw the line only beneath or through words, not whitespace. static const BY_WORD = const IOSNSUnderlineStyle_._internal(32768); -} \ No newline at end of file +} diff --git a/lib/src/types/url_authentication_challenge.dart b/lib/src/types/url_authentication_challenge.dart index b800d883..aefb1df0 100644 --- a/lib/src/types/url_authentication_challenge.dart +++ b/lib/src/types/url_authentication_challenge.dart @@ -14,4 +14,4 @@ class URLAuthenticationChallenge_ { URLAuthenticationChallenge_({ required this.protectionSpace, }); -} \ No newline at end of file +} diff --git a/lib/src/types/url_credential.dart b/lib/src/types/url_credential.dart index 1cc4936f..485b4074 100644 --- a/lib/src/types/url_credential.dart +++ b/lib/src/types/url_credential.dart @@ -11,8 +11,7 @@ List? _certificatesDeserializer(dynamic value) { List? certificates; if (value != null) { certificates = []; - (value.cast() as List) - .forEach((data) { + (value.cast() as List).forEach((data) { try { certificates!.add(X509Certificate.fromData(data: data)); } catch (e, stacktrace) { @@ -41,11 +40,7 @@ class URLCredential_ { ///The intermediate certificates of the credential, if it is a client certificate credential. @ExchangeableObjectProperty(deserializer: _certificatesDeserializer) - @SupportedPlatforms( - platforms: [ - IOSPlatform() - ] - ) + @SupportedPlatforms(platforms: [IOSPlatform()]) List? certificates; ///Use [persistence] instead. @@ -53,18 +48,14 @@ class URLCredential_ { IOSURLCredentialPersistence_? iosPersistence; ///The credential’s persistence setting. - @SupportedPlatforms( - platforms: [ - IOSPlatform() - ] - ) + @SupportedPlatforms(platforms: [IOSPlatform()]) URLCredentialPersistence_? persistence; URLCredential_( {this.username, - this.password, - @Deprecated("Use certificates instead") this.iosPersistence, - this.persistence, - @Deprecated("Use persistence instead") this.iosCertificates, - this.certificates}); -} \ No newline at end of file + this.password, + @Deprecated("Use certificates instead") this.iosPersistence, + this.persistence, + @Deprecated("Use persistence instead") this.iosCertificates, + this.certificates}); +} diff --git a/lib/src/types/url_credential_persistence.dart b/lib/src/types/url_credential_persistence.dart index 0328854a..c5e68452 100644 --- a/lib/src/types/url_credential_persistence.dart +++ b/lib/src/types/url_credential_persistence.dart @@ -44,4 +44,4 @@ class IOSURLCredentialPersistence_ { ///The credential should be stored permanently in the keychain, ///and in addition should be distributed to other devices based on the owning Apple ID. static const SYNCHRONIZABLE = const IOSURLCredentialPersistence_._internal(3); -} \ No newline at end of file +} diff --git a/lib/src/types/url_protection_space.dart b/lib/src/types/url_protection_space.dart index 30ca3473..e3c56a95 100644 --- a/lib/src/types/url_protection_space.dart +++ b/lib/src/types/url_protection_space.dart @@ -14,8 +14,7 @@ List? _distinguishedNamesDeserializer(dynamic value) { List? distinguishedNames; if (value != null) { distinguishedNames = []; - (value.cast() as List) - .forEach((data) { + (value.cast() as List).forEach((data) { try { distinguishedNames!.add(X509Certificate.fromData(data: data)); } catch (e, stacktrace) { @@ -58,29 +57,25 @@ class URLProtectionSpace_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLProtectionSpace.authenticationMethod", - apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1415028-authenticationmethod" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlprotectionspace/1415028-authenticationmethod") ]) URLProtectionSpaceAuthenticationMethod_? authenticationMethod; ///Use [distinguishedNames] instead. @Deprecated("Use distinguishedNames instead") - @ExchangeableObjectProperty( - deserializer: _distinguishedNamesDeserializer - ) + @ExchangeableObjectProperty(deserializer: _distinguishedNamesDeserializer) List? iosDistinguishedNames; ///The acceptable certificate-issuing authorities for client certificate authentication. ///This value is `null` if the authentication method of the protection space is not client certificate. ///The returned issuing authorities are encoded with Distinguished Encoding Rules (DER). - @ExchangeableObjectProperty( - deserializer: _distinguishedNamesDeserializer - ) + @ExchangeableObjectProperty(deserializer: _distinguishedNamesDeserializer) @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLProtectionSpace.distinguishedNames", - apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1417061-distinguishednames" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlprotectionspace/1417061-distinguishednames") ]) List? distinguishedNames; @@ -93,8 +88,8 @@ class URLProtectionSpace_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLProtectionSpace.receivesCredentialSecurely", - apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1415176-receivescredentialsecurely" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlprotectionspace/1415176-receivescredentialsecurely") ]) bool? receivesCredentialSecurely; @@ -108,28 +103,28 @@ class URLProtectionSpace_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLProtectionSpace.proxyType", - apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1411924-proxytype" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlprotectionspace/1411924-proxytype") ]) URLProtectionSpaceProxyType_? proxyType; URLProtectionSpace_( {required this.host, - this.protocol, - this.realm, - this.port, - this.sslCertificate, - this.sslError, - @Deprecated("Use authenticationMethod instead") - this.iosAuthenticationMethod, - this.authenticationMethod, - @Deprecated("Use distinguishedNames instead") - this.iosDistinguishedNames, - this.distinguishedNames, - @Deprecated("Use receivesCredentialSecurely instead") - this.iosReceivesCredentialSecurely, - this.receivesCredentialSecurely, - @Deprecated("Use proxyType instead") - this.iosProxyType, - this.proxyType}); -} \ No newline at end of file + this.protocol, + this.realm, + this.port, + this.sslCertificate, + this.sslError, + @Deprecated("Use authenticationMethod instead") + this.iosAuthenticationMethod, + this.authenticationMethod, + @Deprecated("Use distinguishedNames instead") + this.iosDistinguishedNames, + this.distinguishedNames, + @Deprecated("Use receivesCredentialSecurely instead") + this.iosReceivesCredentialSecurely, + this.receivesCredentialSecurely, + @Deprecated("Use proxyType instead") + this.iosProxyType, + this.proxyType}); +} diff --git a/lib/src/types/url_protection_space_authentication_method.dart b/lib/src/types/url_protection_space_authentication_method.dart index 680e6f66..f92233b8 100644 --- a/lib/src/types/url_protection_space_authentication_method.dart +++ b/lib/src/types/url_protection_space_authentication_method.dart @@ -13,23 +13,23 @@ class URLProtectionSpaceAuthenticationMethod_ { ///Use client certificate authentication for this protection space. static const NSURL_AUTHENTICATION_METHOD_CLIENT_CERTIFICATE = - const URLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodClientCertificate"); + const URLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodClientCertificate"); ///Negotiate whether to use Kerberos or NTLM authentication for this protection space. static const NSURL_AUTHENTICATION_METHOD_NEGOTIATE = - const URLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodNegotiate"); + const URLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodNegotiate"); ///Use NTLM authentication for this protection space. static const NSURL_AUTHENTICATION_METHOD_NTLM = - const URLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodNTLM"); + const URLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodNTLM"); ///Perform server trust authentication (certificate validation) for this protection space. static const NSURL_AUTHENTICATION_METHOD_SERVER_TRUST = - const URLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodServerTrust"); + const URLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodServerTrust"); } ///An iOS-specific Class that represents the constants describing known values of the [URLProtectionSpace.authenticationMethod] property. @@ -43,21 +43,21 @@ class IOSNSURLProtectionSpaceAuthenticationMethod_ { ///Use client certificate authentication for this protection space. static const NSURL_AUTHENTICATION_METHOD_CLIENT_CERTIFICATE = - const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodClientCertificate"); + const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodClientCertificate"); ///Negotiate whether to use Kerberos or NTLM authentication for this protection space. static const NSURL_AUTHENTICATION_METHOD_NEGOTIATE = - const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodNegotiate"); + const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodNegotiate"); ///Use NTLM authentication for this protection space. static const NSURL_AUTHENTICATION_METHOD_NTLM = - const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodNTLM"); + const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodNTLM"); ///Perform server trust authentication (certificate validation) for this protection space. static const NSURL_AUTHENTICATION_METHOD_SERVER_TRUST = - const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( - "NSURLAuthenticationMethodServerTrust"); -} \ No newline at end of file + const IOSNSURLProtectionSpaceAuthenticationMethod_._internal( + "NSURLAuthenticationMethodServerTrust"); +} diff --git a/lib/src/types/url_protection_space_http_auth_credentials.dart b/lib/src/types/url_protection_space_http_auth_credentials.dart index fff3e99f..fcdc0c3a 100644 --- a/lib/src/types/url_protection_space_http_auth_credentials.dart +++ b/lib/src/types/url_protection_space_http_auth_credentials.dart @@ -18,4 +18,4 @@ class URLProtectionSpaceHttpAuthCredentials_ { URLProtectionSpaceHttpAuthCredentials_( {this.protectionSpace, this.credentials}); -} \ No newline at end of file +} diff --git a/lib/src/types/url_protection_space_proxy_type.dart b/lib/src/types/url_protection_space_proxy_type.dart index ae96956e..34f819ba 100644 --- a/lib/src/types/url_protection_space_proxy_type.dart +++ b/lib/src/types/url_protection_space_proxy_type.dart @@ -11,23 +11,23 @@ class URLProtectionSpaceProxyType_ { ///The proxy type for HTTP proxies. static const URL_PROTECTION_SPACE_HTTP_PROXY = - const URLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceHTTPProxy"); + const URLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceHTTPProxy"); ///The proxy type for HTTPS proxies. static const URL_PROTECTION_SPACE_HTTPS_PROXY = - const URLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceHTTPSProxy"); + const URLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceHTTPSProxy"); ///The proxy type for FTP proxies. static const URL_PROTECTION_SPACE_FTP_PROXY = - const URLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceFTPProxy"); + const URLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceFTPProxy"); ///The proxy type for SOCKS proxies. static const URL_PROTECTION_SPACE_SOCKS_PROXY = - const URLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceSOCKSProxy"); + const URLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceSOCKSProxy"); } ///An iOS-specific Class that represents the supported proxy types. @@ -41,21 +41,21 @@ class IOSNSURLProtectionSpaceProxyType_ { ///The proxy type for HTTP proxies. static const NSUR_PROTECTION_SPACE_HTTP_PROXY = - const IOSNSURLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceHTTPProxy"); + const IOSNSURLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceHTTPProxy"); ///The proxy type for HTTPS proxies. static const NSURL_PROTECTION_SPACE_HTTPS_PROXY = - const IOSNSURLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceHTTPSProxy"); + const IOSNSURLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceHTTPSProxy"); ///The proxy type for FTP proxies. static const NSURL_PROTECTION_SPACE_FTP_PROXY = - const IOSNSURLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceFTPProxy"); + const IOSNSURLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceFTPProxy"); ///The proxy type for SOCKS proxies. static const NSURL_PROTECTION_SPACE_SOCKS_PROXY = - const IOSNSURLProtectionSpaceProxyType_._internal( - "NSURLProtectionSpaceSOCKSProxy"); -} \ No newline at end of file + const IOSNSURLProtectionSpaceProxyType_._internal( + "NSURLProtectionSpaceSOCKSProxy"); +} diff --git a/lib/src/types/url_request.dart b/lib/src/types/url_request.dart index 444a69b8..9341d260 100644 --- a/lib/src/types/url_request.dart +++ b/lib/src/types/url_request.dart @@ -31,9 +31,9 @@ class URLRequest_ { ///A Boolean value indicating whether the request is allowed to use the built-in cellular radios to satisfy the request. @SupportedPlatforms(platforms: [ IOSPlatform( - apiName: "URLRequest.allowsCellularAccess", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011607-allowscellularaccess/" - ) + apiName: "URLRequest.allowsCellularAccess", + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/2011607-allowscellularaccess/") ]) bool? allowsCellularAccess; @@ -46,8 +46,8 @@ class URLRequest_ { IOSPlatform( available: "13.0", apiName: "URLRequest.allowsConstrainedNetworkAccess", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3358304-allowsconstrainednetworkaccess" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/3358304-allowsconstrainednetworkaccess") ]) bool? allowsConstrainedNetworkAccess; @@ -60,8 +60,8 @@ class URLRequest_ { IOSPlatform( available: "13.0", apiName: "URLRequest.allowsExpensiveNetworkAccess", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3358305-allowsexpensivenetworkaccess" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/3358305-allowsexpensivenetworkaccess") ]) bool? allowsExpensiveNetworkAccess; @@ -73,8 +73,8 @@ class URLRequest_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLRequest.cachePolicy", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011593-cachepolicy" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/2011593-cachepolicy") ]) URLRequestCachePolicy_? cachePolicy; @@ -86,8 +86,8 @@ class URLRequest_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLRequest.httpShouldHandleCookies", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011548-httpshouldhandlecookies" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/2011548-httpshouldhandlecookies") ]) bool? httpShouldHandleCookies; @@ -99,8 +99,8 @@ class URLRequest_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLRequest.httpShouldUsePipelining", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011508-httpshouldusepipelining" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/2011508-httpshouldusepipelining") ]) bool? httpShouldUsePipelining; @@ -112,8 +112,8 @@ class URLRequest_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLRequest.networkServiceType", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype") ]) URLRequestNetworkServiceType_? networkServiceType; @@ -125,8 +125,8 @@ class URLRequest_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLRequest.timeoutInterval", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011509-timeoutinterval" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/2011509-timeoutinterval") ]) double? timeoutInterval; @@ -139,8 +139,8 @@ class URLRequest_ { @SupportedPlatforms(platforms: [ IOSPlatform( apiName: "URLRequest.mainDocumentURL", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011552-maindocumenturl" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/2011552-maindocumenturl") ]) Uri? mainDocumentURL; @@ -151,8 +151,8 @@ class URLRequest_ { IOSPlatform( available: "14.5", apiName: "URLRequest.assumesHTTP3Capable", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3738175-assumeshttp3capable" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/3738175-assumeshttp3capable") ]) bool? assumesHTTP3Capable; @@ -163,40 +163,43 @@ class URLRequest_ { IOSPlatform( available: "15.0", apiName: "URLRequest.attribution", - apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3767318-attribution" - ) + apiUrl: + "https://developer.apple.com/documentation/foundation/urlrequest/3767318-attribution") ]) URLRequestAttribution_? attribution; - URLRequest_({ - required this.url, - this.method, - this.headers, - this.body, - @Deprecated("Use allowsCellularAccess instead") - this.iosAllowsCellularAccess, - this.allowsCellularAccess, - @Deprecated("Use allowsConstrainedNetworkAccess instead") - this.iosAllowsConstrainedNetworkAccess, - this.allowsConstrainedNetworkAccess, - @Deprecated("Use allowsExpensiveNetworkAccess instead") - this.iosAllowsExpensiveNetworkAccess, - this.allowsExpensiveNetworkAccess, - @Deprecated("Use cachePolicy instead") this.iosCachePolicy, - this.cachePolicy, - @Deprecated("Use httpShouldHandleCookies instead") - this.iosHttpShouldHandleCookies, - this.httpShouldHandleCookies, - @Deprecated("Use httpShouldUsePipelining instead") - this.iosHttpShouldUsePipelining, - this.httpShouldUsePipelining, - @Deprecated("Use networkServiceType instead") this.iosNetworkServiceType, - this.networkServiceType, - @Deprecated("Use timeoutInterval instead") this.iosTimeoutInterval, - this.timeoutInterval, - @Deprecated("Use mainDocumentURL instead") this.iosMainDocumentURL, - this.mainDocumentURL, - this.assumesHTTP3Capable, - this.attribution - }); -} \ No newline at end of file + URLRequest_( + {required this.url, + this.method, + this.headers, + this.body, + @Deprecated("Use allowsCellularAccess instead") + this.iosAllowsCellularAccess, + this.allowsCellularAccess, + @Deprecated("Use allowsConstrainedNetworkAccess instead") + this.iosAllowsConstrainedNetworkAccess, + this.allowsConstrainedNetworkAccess, + @Deprecated("Use allowsExpensiveNetworkAccess instead") + this.iosAllowsExpensiveNetworkAccess, + this.allowsExpensiveNetworkAccess, + @Deprecated("Use cachePolicy instead") + this.iosCachePolicy, + this.cachePolicy, + @Deprecated("Use httpShouldHandleCookies instead") + this.iosHttpShouldHandleCookies, + this.httpShouldHandleCookies, + @Deprecated("Use httpShouldUsePipelining instead") + this.iosHttpShouldUsePipelining, + this.httpShouldUsePipelining, + @Deprecated("Use networkServiceType instead") + this.iosNetworkServiceType, + this.networkServiceType, + @Deprecated("Use timeoutInterval instead") + this.iosTimeoutInterval, + this.timeoutInterval, + @Deprecated("Use mainDocumentURL instead") + this.iosMainDocumentURL, + this.mainDocumentURL, + this.assumesHTTP3Capable, + this.attribution}); +} diff --git a/lib/src/types/url_request_attribution.dart b/lib/src/types/url_request_attribution.dart index 5eb68c49..54e4e9a8 100644 --- a/lib/src/types/url_request_attribution.dart +++ b/lib/src/types/url_request_attribution.dart @@ -17,11 +17,9 @@ class URLRequestAttribution_ { ///This includes requests that your app makes to get user data. This is the default value. /// ///For cases where the user enters a URL, like in the navigation bar of a web browser, or taps or clicks a URL to load the content it represents, use the [URLRequestAttribution.USER] value instead. - static const DEVELOPER = - const URLRequestAttribution_._internal(0); + static const DEVELOPER = const URLRequestAttribution_._internal(0); ///Use this value for the attribution parameter of a [URLRequest] that satisfies a user request to access an explicit, unmodified URL. ///In all other cases, use the [URLRequestAttribution.DEVELOPER] value instead. - static const USER = - const URLRequestAttribution_._internal(1); -} \ No newline at end of file + static const USER = const URLRequestAttribution_._internal(1); +} diff --git a/lib/src/types/url_request_cache_policy.dart b/lib/src/types/url_request_cache_policy.dart index 86228720..88e19524 100644 --- a/lib/src/types/url_request_cache_policy.dart +++ b/lib/src/types/url_request_cache_policy.dart @@ -12,18 +12,18 @@ class URLRequestCachePolicy_ { ///Use the caching logic defined in the protocol implementation, if any, for a particular URL load request. ///This is the default policy for URL load requests. static const USE_PROTOCOL_CACHE_POLICY = - const URLRequestCachePolicy_._internal(0); + const URLRequestCachePolicy_._internal(0); ///The URL load should be loaded only from the originating source. ///This policy specifies that no existing cache data should be used to satisfy a URL load request. /// ///**NOTE**: Always use this policy if you are making HTTP or HTTPS byte-range requests. static const RELOAD_IGNORING_LOCAL_CACHE_DATA = - const URLRequestCachePolicy_._internal(1); + const URLRequestCachePolicy_._internal(1); ///Use existing cache data, regardless or age or expiration date, loading from originating source only if there is no cached data. static const RETURN_CACHE_DATA_ELSE_LOAD = - const URLRequestCachePolicy_._internal(2); + const URLRequestCachePolicy_._internal(2); ///Use existing cache data, regardless or age or expiration date, and fail if no cached data is available. /// @@ -31,19 +31,19 @@ class URLRequestCachePolicy_ { ///no attempt is made to load the data from the originating source, and the load is considered to have failed. ///This constant specifies a behavior that is similar to an “offline” mode. static const RETURN_CACHE_DATA_DONT_LOAD = - const URLRequestCachePolicy_._internal(3); + const URLRequestCachePolicy_._internal(3); ///Ignore local cache data, and instruct proxies and other intermediates to disregard their caches so far as the protocol allows. /// ///**NOTE**: Versions earlier than macOS 15, iOS 13, watchOS 6, and tvOS 13 don’t implement this constant. static const RELOAD_IGNORING_LOCAL_AND_REMOTE_CACHE_DATA = - const URLRequestCachePolicy_._internal(4); + const URLRequestCachePolicy_._internal(4); ///Use cache data if the origin source can validate it; otherwise, load from the origin. /// ///**NOTE**: Versions earlier than macOS 15, iOS 13, watchOS 6, and tvOS 13 don’t implement this constant. static const RELOAD_REVALIDATING_CACHE_DATA = - const URLRequestCachePolicy_._internal(5); + const URLRequestCachePolicy_._internal(5); } ///An iOS-specific Class that represents the constants used to specify interaction with the cached responses. @@ -58,18 +58,18 @@ class IOSURLRequestCachePolicy_ { ///Use the caching logic defined in the protocol implementation, if any, for a particular URL load request. ///This is the default policy for URL load requests. static const USE_PROTOCOL_CACHE_POLICY = - const IOSURLRequestCachePolicy_._internal(0); + const IOSURLRequestCachePolicy_._internal(0); ///The URL load should be loaded only from the originating source. ///This policy specifies that no existing cache data should be used to satisfy a URL load request. /// ///**NOTE**: Always use this policy if you are making HTTP or HTTPS byte-range requests. static const RELOAD_IGNORING_LOCAL_CACHE_DATA = - const IOSURLRequestCachePolicy_._internal(1); + const IOSURLRequestCachePolicy_._internal(1); ///Use existing cache data, regardless or age or expiration date, loading from originating source only if there is no cached data. static const RETURN_CACHE_DATA_ELSE_LOAD = - const IOSURLRequestCachePolicy_._internal(2); + const IOSURLRequestCachePolicy_._internal(2); ///Use existing cache data, regardless or age or expiration date, and fail if no cached data is available. /// @@ -77,17 +77,17 @@ class IOSURLRequestCachePolicy_ { ///no attempt is made to load the data from the originating source, and the load is considered to have failed. ///This constant specifies a behavior that is similar to an “offline” mode. static const RETURN_CACHE_DATA_DONT_LOAD = - const IOSURLRequestCachePolicy_._internal(3); + const IOSURLRequestCachePolicy_._internal(3); ///Ignore local cache data, and instruct proxies and other intermediates to disregard their caches so far as the protocol allows. /// ///**NOTE**: Versions earlier than macOS 15, iOS 13, watchOS 6, and tvOS 13 don’t implement this constant. static const RELOAD_IGNORING_LOCAL_AND_REMOTE_CACHE_DATA = - const IOSURLRequestCachePolicy_._internal(4); + const IOSURLRequestCachePolicy_._internal(4); ///Use cache data if the origin source can validate it; otherwise, load from the origin. /// ///**NOTE**: Versions earlier than macOS 15, iOS 13, watchOS 6, and tvOS 13 don’t implement this constant. static const RELOAD_REVALIDATING_CACHE_DATA = - const IOSURLRequestCachePolicy_._internal(5); -} \ No newline at end of file + const IOSURLRequestCachePolicy_._internal(5); +} diff --git a/lib/src/types/url_request_network_service_type.dart b/lib/src/types/url_request_network_service_type.dart index 17010fb0..f5d0b15b 100644 --- a/lib/src/types/url_request_network_service_type.dart +++ b/lib/src/types/url_request_network_service_type.dart @@ -28,7 +28,7 @@ class URLRequestNetworkServiceType_ { /// ///Use this service type for interactive situations where the user is anticipating a quick response, like instant messaging or completing a purchase. static const RESPONSIVE_DATA = - const URLRequestNetworkServiceType_._internal(6); + const URLRequestNetworkServiceType_._internal(6); ///A service type for streaming audio/video data. static const AV_STREAMING = const URLRequestNetworkServiceType_._internal(8); @@ -40,7 +40,7 @@ class URLRequestNetworkServiceType_ { /// ///Use this service type with network traffic that establishes, maintains, or tears down a VoIP call. static const CALL_SIGNALING = - const URLRequestNetworkServiceType_._internal(11); + const URLRequestNetworkServiceType_._internal(11); } ///An iOS-specific Class that represents the constants that specify how a request uses network resources. @@ -71,19 +71,19 @@ class IOSURLRequestNetworkServiceType_ { /// ///Use this service type for interactive situations where the user is anticipating a quick response, like instant messaging or completing a purchase. static const RESPONSIVE_DATA = - const IOSURLRequestNetworkServiceType_._internal(6); + const IOSURLRequestNetworkServiceType_._internal(6); ///A service type for streaming audio/video data. static const AV_STREAMING = - const IOSURLRequestNetworkServiceType_._internal(8); + const IOSURLRequestNetworkServiceType_._internal(8); ///A service type for responsive (time-sensitive) audio/video data. static const RESPONSIVE_AV = - const IOSURLRequestNetworkServiceType_._internal(9); + const IOSURLRequestNetworkServiceType_._internal(9); ///A service type for call signaling. /// ///Use this service type with network traffic that establishes, maintains, or tears down a VoIP call. static const CALL_SIGNALING = - const IOSURLRequestNetworkServiceType_._internal(11); -} \ No newline at end of file + const IOSURLRequestNetworkServiceType_._internal(11); +} diff --git a/lib/src/types/url_response.dart b/lib/src/types/url_response.dart index be768b24..5ecfad23 100644 --- a/lib/src/types/url_response.dart +++ b/lib/src/types/url_response.dart @@ -28,12 +28,12 @@ class URLResponse_ { URLResponse_( {this.url, - required this.expectedContentLength, - this.mimeType, - this.suggestedFilename, - this.textEncodingName, - this.headers, - this.statusCode}); + required this.expectedContentLength, + this.mimeType, + this.suggestedFilename, + this.textEncodingName, + this.headers, + this.statusCode}); } ///Use [URLResponse] instead. @@ -63,10 +63,10 @@ class IOSURLResponse_ { IOSURLResponse_( {this.url, - required this.expectedContentLength, - this.mimeType, - this.suggestedFilename, - this.textEncodingName, - this.headers, - this.statusCode}); -} \ No newline at end of file + required this.expectedContentLength, + this.mimeType, + this.suggestedFilename, + this.textEncodingName, + this.headers, + this.statusCode}); +} diff --git a/lib/src/types/user_preferred_content_mode.dart b/lib/src/types/user_preferred_content_mode.dart index 0c4afd15..7b697a17 100644 --- a/lib/src/types/user_preferred_content_mode.dart +++ b/lib/src/types/user_preferred_content_mode.dart @@ -17,4 +17,4 @@ class UserPreferredContentMode_ { ///Represents content targeting desktop browsers. static const DESKTOP = const UserPreferredContentMode_._internal(2); -} \ No newline at end of file +} diff --git a/lib/src/types/user_script.dart b/lib/src/types/user_script.dart index b01ecaab..8836dbaa 100644 --- a/lib/src/types/user_script.dart +++ b/lib/src/types/user_script.dart @@ -42,19 +42,19 @@ class UserScript_ { @ExchangeableObjectConstructor() UserScript_( {this.groupName, - required this.source, - required this.injectionTime, - @Deprecated("Use forMainFrameOnly instead") this.iosForMainFrameOnly, - this.forMainFrameOnly = true, - Set? allowedOriginRules, - ContentWorld? contentWorld}) { - this.allowedOriginRules = allowedOriginRules != null ? - allowedOriginRules : Set.from(["*"]); + required this.source, + required this.injectionTime, + @Deprecated("Use forMainFrameOnly instead") this.iosForMainFrameOnly, + this.forMainFrameOnly = true, + Set? allowedOriginRules, + ContentWorld? contentWorld}) { + this.allowedOriginRules = + allowedOriginRules != null ? allowedOriginRules : Set.from(["*"]); this.contentWorld = contentWorld ?? ContentWorld.PAGE; // ignore: deprecated_member_use_from_same_package this.forMainFrameOnly = this.iosForMainFrameOnly != null - // ignore: deprecated_member_use_from_same_package + // ignore: deprecated_member_use_from_same_package ? this.iosForMainFrameOnly! : this.forMainFrameOnly; } -} \ No newline at end of file +} diff --git a/lib/src/types/user_script_injection_time.dart b/lib/src/types/user_script_injection_time.dart index ef4d731e..6ecb4ea7 100644 --- a/lib/src/types/user_script_injection_time.dart +++ b/lib/src/types/user_script_injection_time.dart @@ -21,4 +21,4 @@ class UserScriptInjectionTime_ { /// ///**NOTE for Android**: A constant to inject the script as soon as the page finishes loading. static const AT_DOCUMENT_END = const UserScriptInjectionTime_._internal(1); -} \ No newline at end of file +} diff --git a/lib/src/types/vertical_scrollbar_position.dart b/lib/src/types/vertical_scrollbar_position.dart index 4c01cd28..a0dd872e 100644 --- a/lib/src/types/vertical_scrollbar_position.dart +++ b/lib/src/types/vertical_scrollbar_position.dart @@ -11,15 +11,15 @@ class VerticalScrollbarPosition_ { ///Position the scroll bar at the default position as determined by the system. static const SCROLLBAR_POSITION_DEFAULT = - const VerticalScrollbarPosition_._internal(0); + const VerticalScrollbarPosition_._internal(0); ///Position the scroll bar along the left edge. static const SCROLLBAR_POSITION_LEFT = - const VerticalScrollbarPosition_._internal(1); + const VerticalScrollbarPosition_._internal(1); ///Position the scroll bar along the right edge. static const SCROLLBAR_POSITION_RIGHT = - const VerticalScrollbarPosition_._internal(2); + const VerticalScrollbarPosition_._internal(2); } ///An Android-specific class used to configure the position of the vertical scroll bar. @@ -33,13 +33,13 @@ class AndroidVerticalScrollbarPosition_ { ///Position the scroll bar at the default position as determined by the system. static const SCROLLBAR_POSITION_DEFAULT = - const AndroidVerticalScrollbarPosition_._internal(0); + const AndroidVerticalScrollbarPosition_._internal(0); ///Position the scroll bar along the left edge. static const SCROLLBAR_POSITION_LEFT = - const AndroidVerticalScrollbarPosition_._internal(1); + const AndroidVerticalScrollbarPosition_._internal(1); ///Position the scroll bar along the right edge. static const SCROLLBAR_POSITION_RIGHT = - const AndroidVerticalScrollbarPosition_._internal(2); -} \ No newline at end of file + const AndroidVerticalScrollbarPosition_._internal(2); +} diff --git a/lib/src/types/web_archive_format.dart b/lib/src/types/web_archive_format.dart index c4a89b41..762f1428 100644 --- a/lib/src/types/web_archive_format.dart +++ b/lib/src/types/web_archive_format.dart @@ -14,4 +14,4 @@ class WebArchiveFormat_ { ///Web Archive format used only by iOS. static const WEBARCHIVE = const WebArchiveFormat_._internal("webarchive"); -} \ No newline at end of file +} diff --git a/lib/src/types/web_authentication_session_error.dart b/lib/src/types/web_authentication_session_error.dart index 92b00806..5e7ec670 100644 --- a/lib/src/types/web_authentication_session_error.dart +++ b/lib/src/types/web_authentication_session_error.dart @@ -13,8 +13,10 @@ class WebAuthenticationSessionError_ { static const CANCELED_LOGIN = WebAuthenticationSessionError_._internal(1); ///A context wasn’t provided. - static const PRESENTATION_CONTEXT_NOT_PROVIDED = WebAuthenticationSessionError_._internal(2); + static const PRESENTATION_CONTEXT_NOT_PROVIDED = + WebAuthenticationSessionError_._internal(2); ///The context was invalid. - static const PRESENTATION_CONTEXT_INVALID = WebAuthenticationSessionError_._internal(3); + static const PRESENTATION_CONTEXT_INVALID = + WebAuthenticationSessionError_._internal(3); } diff --git a/lib/src/types/web_history.dart b/lib/src/types/web_history.dart index fde131bb..fe764ebb 100644 --- a/lib/src/types/web_history.dart +++ b/lib/src/types/web_history.dart @@ -16,4 +16,4 @@ class WebHistory_ { int? currentIndex; WebHistory_({this.list, this.currentIndex}); -} \ No newline at end of file +} diff --git a/lib/src/types/web_history_item.dart b/lib/src/types/web_history_item.dart index c7cc0c58..d8f3227f 100644 --- a/lib/src/types/web_history_item.dart +++ b/lib/src/types/web_history_item.dart @@ -27,4 +27,4 @@ class WebHistoryItem_ { WebHistoryItem_( {this.originalUrl, this.title, this.url, this.index, this.offset}); -} \ No newline at end of file +} diff --git a/lib/src/types/web_message_callback.dart b/lib/src/types/web_message_callback.dart index 90ebc4e9..cc1a1afa 100644 --- a/lib/src/types/web_message_callback.dart +++ b/lib/src/types/web_message_callback.dart @@ -2,4 +2,4 @@ import '../web_message/main.dart'; ///The listener for handling [WebMessagePort] events. ///The message callback methods are called on the main thread. -typedef void WebMessageCallback(String? message); \ No newline at end of file +typedef void WebMessageCallback(String? message); diff --git a/lib/src/types/web_resource_error.dart b/lib/src/types/web_resource_error.dart index 58773c36..de20e8c1 100644 --- a/lib/src/types/web_resource_error.dart +++ b/lib/src/types/web_resource_error.dart @@ -14,4 +14,4 @@ class WebResourceError_ { String description; WebResourceError_({required this.type, required this.description}); -} \ No newline at end of file +} diff --git a/lib/src/types/web_resource_error_type.dart b/lib/src/types/web_resource_error_type.dart index 25a2f1ef..b29daf8c 100644 --- a/lib/src/types/web_resource_error_type.dart +++ b/lib/src/types/web_resource_error_type.dart @@ -17,24 +17,25 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_AUTHENTICATION', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_AUTHENTICATION', - value: -4 - ) + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_AUTHENTICATION', + value: -4) ]) - static const USER_AUTHENTICATION_FAILED = WebResourceErrorType_._internal("USER_AUTHENTICATION_FAILED"); + static const USER_AUTHENTICATION_FAILED = + WebResourceErrorType_._internal("USER_AUTHENTICATION_FAILED"); ///A malformed URL prevented a URL request from being initiated. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_BAD_URL', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_BAD_URL', - value: -12 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_BAD_URL', + value: -12), EnumIOSPlatform( apiName: 'URLError.badURL', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293516-badurl', - value: -1000 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293516-badurl', + value: -1000) ]) static const BAD_URL = WebResourceErrorType_._internal("BAD_URL"); @@ -42,64 +43,68 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_CONNECT', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_CONNECT', - value: -6 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_CONNECT', + value: -6), EnumIOSPlatform( apiName: 'URLError.cannotConnectToHost', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883001-cannotconnecttohost', - value: -1004 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883001-cannotconnecttohost', + value: -1004) ]) - static const CANNOT_CONNECT_TO_HOST = WebResourceErrorType_._internal("CANNOT_CONNECT_TO_HOST"); + static const CANNOT_CONNECT_TO_HOST = + WebResourceErrorType_._internal("CANNOT_CONNECT_TO_HOST"); ///Failed to perform SSL handshake. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_FAILED_SSL_HANDSHAKE', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FAILED_SSL_HANDSHAKE', - value: -11 - ) + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FAILED_SSL_HANDSHAKE', + value: -11) ]) - static const FAILED_SSL_HANDSHAKE = WebResourceErrorType_._internal("FAILED_SSL_HANDSHAKE"); + static const FAILED_SSL_HANDSHAKE = + WebResourceErrorType_._internal("FAILED_SSL_HANDSHAKE"); ///Generic file error. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_FILE', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE', - value: -13 - ) + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE', + value: -13) ]) - static const GENERIC_FILE_ERROR = WebResourceErrorType_._internal("GENERIC_FILE_ERROR"); + static const GENERIC_FILE_ERROR = + WebResourceErrorType_._internal("GENERIC_FILE_ERROR"); ///File not found. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_FILE_NOT_FOUND', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE_NOT_FOUND', - value: -14 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE_NOT_FOUND', + value: -14), EnumIOSPlatform( apiName: 'URLError.fileDoesNotExist', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883074-filedoesnotexist', - value: -1100 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883074-filedoesnotexist', + value: -1100) ]) - static const FILE_NOT_FOUND = WebResourceErrorType_._internal("FILE_NOT_FOUND"); + static const FILE_NOT_FOUND = + WebResourceErrorType_._internal("FILE_NOT_FOUND"); ///Server or proxy hostname lookup failed. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_HOST_LOOKUP', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_HOST_LOOKUP', - value: -2 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_HOST_LOOKUP', + value: -2), EnumIOSPlatform( apiName: 'URLError.cannotFindHost', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883157-cannotfindhost', - value: -1003 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883157-cannotfindhost', + value: -1003) ]) static const HOST_LOOKUP = WebResourceErrorType_._internal("HOST_LOOKUP"); @@ -107,9 +112,9 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_IO', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_IO', - value: -7 - ) + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_IO', + value: -7) ]) static const IO = WebResourceErrorType_._internal("IO"); @@ -117,39 +122,41 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_PROXY_AUTHENTICATION', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_PROXY_AUTHENTICATION', - value: -5 - ) + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_PROXY_AUTHENTICATION', + value: -5) ]) - static const PROXY_AUTHENTICATION = WebResourceErrorType_._internal("PROXY_AUTHENTICATION"); + static const PROXY_AUTHENTICATION = + WebResourceErrorType_._internal("PROXY_AUTHENTICATION"); ///A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently `16` on iOS). @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_REDIRECT_LOOP', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_REDIRECT_LOOP', - value: -9 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_REDIRECT_LOOP', + value: -9), EnumIOSPlatform( apiName: 'URLError.httpTooManyRedirects', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883099-httptoomanyredirects', - value: -1007 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883099-httptoomanyredirects', + value: -1007) ]) - static const TOO_MANY_REDIRECTS = WebResourceErrorType_._internal("TOO_MANY_REDIRECTS"); + static const TOO_MANY_REDIRECTS = + WebResourceErrorType_._internal("TOO_MANY_REDIRECTS"); ///Connection timed out. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_TIMEOUT', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TIMEOUT', - value: -8 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TIMEOUT', + value: -8), EnumIOSPlatform( apiName: 'URLError.timedOut', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883027-timedout', - value: -1001 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883027-timedout', + value: -1001) ]) static const TIMEOUT = WebResourceErrorType_._internal("TIMEOUT"); @@ -157,24 +164,25 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_TOO_MANY_REQUESTS', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TOO_MANY_REQUESTS', - value: -15 - ) + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TOO_MANY_REQUESTS', + value: -15) ]) - static const TOO_MANY_REQUESTS = WebResourceErrorType_._internal("TOO_MANY_REQUESTS"); + static const TOO_MANY_REQUESTS = + WebResourceErrorType_._internal("TOO_MANY_REQUESTS"); ///The URL Loading System encountered an error that it can’t interpret. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_UNKNOWN', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNKNOWN', - value: -1 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNKNOWN', + value: -1), EnumIOSPlatform( apiName: 'URLError.unknown', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293357-unknown', - value: -1 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293357-unknown', + value: -1) ]) static const UNKNOWN = WebResourceErrorType_._internal("UNKNOWN"); @@ -182,45 +190,48 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_UNSAFE_RESOURCE', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSAFE_RESOURCE', - value: -16 - ) + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSAFE_RESOURCE', + value: -16) ]) - static const UNSAFE_RESOURCE = WebResourceErrorType_._internal("UNSAFE_RESOURCE"); + static const UNSAFE_RESOURCE = + WebResourceErrorType_._internal("UNSAFE_RESOURCE"); ///Unsupported authentication scheme (not basic or digest). @EnumSupportedPlatforms(platforms: [ - EnumAndroidPlatform( - apiName: 'WebViewClient.ERROR_UNSUPPORTED_AUTH_SCHEME', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_AUTH_SCHEME', - value: -3 - ) + EnumAndroidPlatform( + apiName: 'WebViewClient.ERROR_UNSUPPORTED_AUTH_SCHEME', + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_AUTH_SCHEME', + value: -3) ]) - static const UNSUPPORTED_AUTH_SCHEME = WebResourceErrorType_._internal("UNSUPPORTED_AUTH_SCHEME"); + static const UNSUPPORTED_AUTH_SCHEME = + WebResourceErrorType_._internal("UNSUPPORTED_AUTH_SCHEME"); ///Unsupported URI scheme. ///Typically this occurs when there is no available protocol handler for the URL. @EnumSupportedPlatforms(platforms: [ EnumAndroidPlatform( apiName: 'WebViewClient.ERROR_UNSUPPORTED_SCHEME', - apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_SCHEME', - value: -10 - ), + apiUrl: + 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_SCHEME', + value: -10), EnumIOSPlatform( apiName: 'URLError.unsupportedURL', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883043-unsupportedurl', - value: -1002 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883043-unsupportedurl', + value: -1002) ]) - static const UNSUPPORTED_SCHEME = WebResourceErrorType_._internal("UNSUPPORTED_SCHEME"); + static const UNSUPPORTED_SCHEME = + WebResourceErrorType_._internal("UNSUPPORTED_SCHEME"); ///An asynchronous load has been canceled. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cancelled', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883178-cancelled', - value: -999 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883178-cancelled', + value: -999) ]) static const CANCELLED = WebResourceErrorType_._internal("CANCELLED"); @@ -228,40 +239,43 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.networkConnectionLost', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293759-networkconnectionlost', - value: -1005 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293759-networkconnectionlost', + value: -1005) ]) - static const NETWORK_CONNECTION_LOST = WebResourceErrorType_._internal("NETWORK_CONNECTION_LOST"); + static const NETWORK_CONNECTION_LOST = + WebResourceErrorType_._internal("NETWORK_CONNECTION_LOST"); ///A requested resource couldn't be retrieved. ///This error can indicate a file-not-found situation, or decoding problems that prevent data from being processed correctly. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.resourceUnavailable', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293555-resourceunavailable', - value: -1008 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293555-resourceunavailable', + value: -1008) ]) - static const RESOURCE_UNAVAILABLE = WebResourceErrorType_._internal("RESOURCE_UNAVAILABLE"); + static const RESOURCE_UNAVAILABLE = + WebResourceErrorType_._internal("RESOURCE_UNAVAILABLE"); ///A network resource was requested, but an internet connection hasn’t been established and can’t be established automatically. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.notConnectedToInternet', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293104-notconnectedtointernet', - value: -1009 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293104-notconnectedtointernet', + value: -1009) ]) - static const NOT_CONNECTED_TO_INTERNET = WebResourceErrorType_._internal("NOT_CONNECTED_TO_INTERNET"); + static const NOT_CONNECTED_TO_INTERNET = + WebResourceErrorType_._internal("NOT_CONNECTED_TO_INTERNET"); ///A redirect was specified by way of server response code, but the server didn’t accompany this code with a redirect URL. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.redirectToNonExistentLocation', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293066-redirecttononexistentlocation', - value: -1010 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293066-redirecttononexistentlocation', + value: -1010) ]) static const REDIRECT_TO_NON_EXISTENT_LOCATION = WebResourceErrorType_._internal("REDIRECT_TO_NON_EXISTENT_LOCATION"); @@ -270,72 +284,79 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.badServerResponse', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293606-badserverresponse', - value: -1011 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293606-badserverresponse', + value: -1011) ]) - static const BAD_SERVER_RESPONSE = WebResourceErrorType_._internal("BAD_SERVER_RESPONSE"); + static const BAD_SERVER_RESPONSE = + WebResourceErrorType_._internal("BAD_SERVER_RESPONSE"); ///An asynchronous request for authentication has been canceled by the user. ///This error typically occurs when a user clicks a "Cancel" button in a username/password dialog, rather than attempting to authenticate. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.userCancelledAuthentication', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293330-usercancelledauthentication', - value: -1012 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293330-usercancelledauthentication', + value: -1012) ]) - static const USER_CANCELLED_AUTHENTICATION = WebResourceErrorType_._internal("USER_CANCELLED_AUTHENTICATION"); + static const USER_CANCELLED_AUTHENTICATION = + WebResourceErrorType_._internal("USER_CANCELLED_AUTHENTICATION"); ///Authentication is required to access a resource. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.userAuthenticationRequired', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293560-userauthenticationrequired', - value: -1013 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293560-userauthenticationrequired', + value: -1013) ]) - static const USER_AUTHENTICATION_REQUIRED = WebResourceErrorType_._internal("USER_AUTHENTICATION_REQUIRED"); + static const USER_AUTHENTICATION_REQUIRED = + WebResourceErrorType_._internal("USER_AUTHENTICATION_REQUIRED"); ///A server reported that a URL has a non-zero content length, but terminated the network connection gracefully without sending any data. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.zeroByteResource', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293773-zerobyteresource', - value: -1014 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293773-zerobyteresource', + value: -1014) ]) - static const ZERO_BYTE_RESOURCE = WebResourceErrorType_._internal("ZERO_BYTE_RESOURCE"); + static const ZERO_BYTE_RESOURCE = + WebResourceErrorType_._internal("ZERO_BYTE_RESOURCE"); ///Content data received during a connection request couldn’t be decoded for a known content encoding. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotDecodeRawData', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293573-cannotdecoderawdata', - value: -1015 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2293573-cannotdecoderawdata', + value: -1015) ]) - static const CANNOT_DECODE_RAW_DATA = WebResourceErrorType_._internal("CANNOT_DECODE_RAW_DATA"); + static const CANNOT_DECODE_RAW_DATA = + WebResourceErrorType_._internal("CANNOT_DECODE_RAW_DATA"); ///Content data received during a connection request couldn’t be decoded for a known content encoding. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotDecodeContentData', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2292983-cannotdecodecontentdata', - value: -1016 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/2292983-cannotdecodecontentdata', + value: -1016) ]) - static const CANNOT_DECODE_CONTENT_DATA = WebResourceErrorType_._internal("CANNOT_DECODE_CONTENT_DATA"); + static const CANNOT_DECODE_CONTENT_DATA = + WebResourceErrorType_._internal("CANNOT_DECODE_CONTENT_DATA"); ///A task could not parse a response. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotParseResponse', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882919-cannotparseresponse', - value: -1017 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882919-cannotparseresponse', + value: -1017) ]) - static const CANNOT_PARSE_RESPONSE = WebResourceErrorType_._internal("CANNOT_PARSE_RESPONSE"); + static const CANNOT_PARSE_RESPONSE = + WebResourceErrorType_._internal("CANNOT_PARSE_RESPONSE"); ///App Transport Security disallowed a connection because there is no secure network connection. /// @@ -344,72 +365,79 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.appTransportSecurityRequiresSecureConnection', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882980-apptransportsecurityrequiressecu', - value: -1022 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882980-apptransportsecurityrequiressecu', + value: -1022) ]) static const APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION = - WebResourceErrorType_._internal("APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION"); + WebResourceErrorType_._internal( + "APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION"); ///A request for an FTP file resulted in the server responding that the file is not a plain file, but a directory. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.fileIsDirectory', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883220-fileisdirectory', - value: -1101 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883220-fileisdirectory', + value: -1101) ]) - static const FILE_IS_DIRECTORY = WebResourceErrorType_._internal("FILE_IS_DIRECTORY"); + static const FILE_IS_DIRECTORY = + WebResourceErrorType_._internal("FILE_IS_DIRECTORY"); ///A resource couldn’t be read because of insufficient permissions. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.noPermissionsToReadFile', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882941-nopermissionstoreadfile', - value: -1102 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882941-nopermissionstoreadfile', + value: -1102) ]) - static const NO_PERMISSIONS_TO_READ_FILE = WebResourceErrorType_._internal("NO_PERMISSIONS_TO_READ_FILE"); + static const NO_PERMISSIONS_TO_READ_FILE = + WebResourceErrorType_._internal("NO_PERMISSIONS_TO_READ_FILE"); ///The length of the resource data exceeds the maximum allowed. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.dataLengthExceedsMaximum', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882930-datalengthexceedsmaximum', - value: -1103 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882930-datalengthexceedsmaximum', + value: -1103) ]) - static const DATA_LENGTH_EXCEEDS_MAXIMUM = WebResourceErrorType_._internal("DATA_LENGTH_EXCEEDS_MAXIMUM"); + static const DATA_LENGTH_EXCEEDS_MAXIMUM = + WebResourceErrorType_._internal("DATA_LENGTH_EXCEEDS_MAXIMUM"); ///An attempt to establish a secure connection failed for reasons that can’t be expressed more specifically. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.secureConnectionFailed', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883122-secureconnectionfailed', - value: -1200 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883122-secureconnectionfailed', + value: -1200) ]) - static const SECURE_CONNECTION_FAILED = WebResourceErrorType_._internal("SECURE_CONNECTION_FAILED"); + static const SECURE_CONNECTION_FAILED = + WebResourceErrorType_._internal("SECURE_CONNECTION_FAILED"); ///A server certificate had a date which indicates it has expired, or is not yet valid. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.serverCertificateHasBadDate', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883088-servercertificatehasbaddate', - value: -1201 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883088-servercertificatehasbaddate', + value: -1201) ]) - static const SERVER_CERTIFICATE_HAS_BAD_DATE = WebResourceErrorType_._internal("SERVER_CERTIFICATE_HAS_BAD_DATE"); + static const SERVER_CERTIFICATE_HAS_BAD_DATE = + WebResourceErrorType_._internal("SERVER_CERTIFICATE_HAS_BAD_DATE"); ///A server certificate was signed by a root server that isn’t trusted. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.serverCertificateUntrusted', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882976-servercertificateuntrusted', - value: -1202 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882976-servercertificateuntrusted', + value: -1202) ]) - static const SERVER_CERTIFICATE_UNTRUSTED = WebResourceErrorType_._internal("SERVER_CERTIFICATE_UNTRUSTED"); + static const SERVER_CERTIFICATE_UNTRUSTED = + WebResourceErrorType_._internal("SERVER_CERTIFICATE_UNTRUSTED"); ///A server certificate was not signed by any root server. /// @@ -418,9 +446,9 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.serverCertificateHasUnknownRoot', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883085-servercertificatehasunknownroot', - value: -1203 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883085-servercertificatehasunknownroot', + value: -1203) ]) static const SERVER_CERTIFICATE_HAS_UNKNOWN_ROOT = WebResourceErrorType_._internal("SERVER_CERTIFICATE_HAS_UNKNOWN_ROOT"); @@ -432,9 +460,9 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.serverCertificateNotYetValid', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882991-servercertificatenotyetvalid', - value: -1204 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882991-servercertificatenotyetvalid', + value: -1204) ]) static const SERVER_CERTIFICATE_NOT_YET_VALID = WebResourceErrorType_._internal("SERVER_CERTIFICATE_NOT_YET_VALID"); @@ -443,91 +471,100 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.clientCertificateRejected', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883091-clientcertificaterejected', - value: -1205 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883091-clientcertificaterejected', + value: -1205) ]) - static const CLIENT_CERTIFICATE_REJECTED = WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REJECTED"); + static const CLIENT_CERTIFICATE_REJECTED = + WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REJECTED"); ///A client certificate was required to authenticate an SSL connection during a request. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.clientCertificateRequired', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883199-clientcertificaterequired', - value: -1206 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883199-clientcertificaterequired', + value: -1206) ]) - static const CLIENT_CERTIFICATE_REQUIRED = WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REQUIRED"); + static const CLIENT_CERTIFICATE_REQUIRED = + WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REQUIRED"); ///A request to load an item only from the cache could not be satisfied. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotLoadFromNetwork', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882968-cannotloadfromnetwork', - value: -2000 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882968-cannotloadfromnetwork', + value: -2000) ]) - static const CANNOT_LOAD_FROM_NETWORK = WebResourceErrorType_._internal("CANNOT_LOAD_FROM_NETWORK"); + static const CANNOT_LOAD_FROM_NETWORK = + WebResourceErrorType_._internal("CANNOT_LOAD_FROM_NETWORK"); ///A download task couldn’t create the downloaded file on disk because of an I/O failure. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotCreateFile', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883204-cannotcreatefile', - value: -3000 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883204-cannotcreatefile', + value: -3000) ]) - static const CANNOT_CREATE_FILE = WebResourceErrorType_._internal("CANNOT_CREATE_FILE"); + static const CANNOT_CREATE_FILE = + WebResourceErrorType_._internal("CANNOT_CREATE_FILE"); ///A download task was unable to open the downloaded file on disk. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotOpenFile', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883034-cannotopenfile', - value: -3001 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883034-cannotopenfile', + value: -3001) ]) - static const CANNOT_OPEN_FILE = WebResourceErrorType_._internal("CANNOT_OPEN_FILE"); + static const CANNOT_OPEN_FILE = + WebResourceErrorType_._internal("CANNOT_OPEN_FILE"); ///A download task couldn’t close the downloaded file on disk. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotCloseFile', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883215-cannotclosefile', - value: -3002 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883215-cannotclosefile', + value: -3002) ]) - static const CANNOT_CLOSE_FILE = WebResourceErrorType_._internal("CANNOT_CLOSE_FILE"); + static const CANNOT_CLOSE_FILE = + WebResourceErrorType_._internal("CANNOT_CLOSE_FILE"); ///A download task was unable to write to the downloaded file on disk. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotWriteToFile', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883098-cannotwritetofile', - value: -3003 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883098-cannotwritetofile', + value: -3003) ]) - static const CANNOT_WRITE_TO_FILE = WebResourceErrorType_._internal("CANNOT_WRITE_TO_FILE"); + static const CANNOT_WRITE_TO_FILE = + WebResourceErrorType_._internal("CANNOT_WRITE_TO_FILE"); ///A download task was unable to remove a downloaded file from disk. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotRemoveFile', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883202-cannotremovefile', - value: -3004 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883202-cannotremovefile', + value: -3004) ]) - static const CANNOT_REMOVE_FILE = WebResourceErrorType_._internal("CANNOT_REMOVE_FILE"); + static const CANNOT_REMOVE_FILE = + WebResourceErrorType_._internal("CANNOT_REMOVE_FILE"); ///A download task was unable to move a downloaded file on disk. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.cannotMoveFile', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883180-cannotmovefile', - value: -3005 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883180-cannotmovefile', + value: -3005) ]) - static const CANNOT_MOVE_FILE = WebResourceErrorType_._internal("CANNOT_MOVE_FILE"); + static const CANNOT_MOVE_FILE = + WebResourceErrorType_._internal("CANNOT_MOVE_FILE"); ///A download task failed to decode an encoded file during the download. /// @@ -536,9 +573,9 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.downloadDecodingFailedMidStream', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883224-downloaddecodingfailedmidstream', - value: -3006 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883224-downloaddecodingfailedmidstream', + value: -3006) ]) static const DOWNLOAD_DECODING_FAILED_MID_STREAM = WebResourceErrorType_._internal("DOWNLOAD_DECODING_FAILED_MID_STREAM"); @@ -550,9 +587,9 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.downloadDecodingFailedToComplete', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882936-downloaddecodingfailedtocomplete', - value: -3007 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882936-downloaddecodingfailedtocomplete', + value: -3007) ]) static const DOWNLOAD_DECODING_FAILED_TO_COMPLETE = WebResourceErrorType_._internal("DOWNLOAD_DECODING_FAILED_TO_COMPLETE"); @@ -561,41 +598,45 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.internationalRoamingOff', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883134-internationalroamingoff', - value: -1018 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883134-internationalroamingoff', + value: -1018) ]) - static const INTERNATIONAL_ROAMING_OFF = WebResourceErrorType_._internal("INTERNATIONAL_ROAMING_OFF"); + static const INTERNATIONAL_ROAMING_OFF = + WebResourceErrorType_._internal("INTERNATIONAL_ROAMING_OFF"); ///A connection was attempted while a phone call is active on a network that does not support simultaneous phone and data communication (EDGE or GPRS). @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.callIsActive', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883170-callisactive', - value: -1019 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883170-callisactive', + value: -1019) ]) - static const CALL_IS_ACTIVE = WebResourceErrorType_._internal("CALL_IS_ACTIVE"); + static const CALL_IS_ACTIVE = + WebResourceErrorType_._internal("CALL_IS_ACTIVE"); ///The cellular network disallowed a connection. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.dataNotAllowed', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883217-datanotallowed', - value: -1020 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883217-datanotallowed', + value: -1020) ]) - static const DATA_NOT_ALLOWED = WebResourceErrorType_._internal("DATA_NOT_ALLOWED"); + static const DATA_NOT_ALLOWED = + WebResourceErrorType_._internal("DATA_NOT_ALLOWED"); ///A body stream is needed but the client did not provide one. @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.requestBodyStreamExhausted', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883176-requestbodystreamexhausted', - value: -1021 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883176-requestbodystreamexhausted', + value: -1021) ]) - static const REQUEST_BODY_STREAM_EXHAUSTED = WebResourceErrorType_._internal("REQUEST_BODY_STREAM_EXHAUSTED"); + static const REQUEST_BODY_STREAM_EXHAUSTED = + WebResourceErrorType_._internal("REQUEST_BODY_STREAM_EXHAUSTED"); ///The shared container identifier of the URL session configuration is needed but has not been set. /// @@ -604,12 +645,13 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.backgroundSessionRequiresSharedContainer', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883169-backgroundsessionrequiressharedc', - value: -995 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883169-backgroundsessionrequiressharedc', + value: -995) ]) static const BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER = - WebResourceErrorType_._internal("BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER"); + WebResourceErrorType_._internal( + "BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER"); ///An app or app extension attempted to connect to a background session that is already connected to a process. /// @@ -618,12 +660,13 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.backgroundSessionInUseByAnotherProcess', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882923-backgroundsessioninusebyanotherp', - value: -996 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2882923-backgroundsessioninusebyanotherp', + value: -996) ]) static const BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS = - WebResourceErrorType_._internal("BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS"); + WebResourceErrorType_._internal( + "BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS"); ///The app is suspended or exits while a background data task is processing. /// @@ -632,9 +675,9 @@ class WebResourceErrorType_ { @EnumSupportedPlatforms(platforms: [ EnumIOSPlatform( apiName: 'URLError.backgroundSessionWasDisconnected', - apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883075-backgroundsessionwasdisconnected', - value: -997 - ) + apiUrl: + 'https://developer.apple.com/documentation/foundation/urlerror/code/2883075-backgroundsessionwasdisconnected', + value: -997) ]) static const BACKGROUND_SESSION_WAS_DISCONNECTED = WebResourceErrorType_._internal("BACKGROUND_SESSION_WAS_DISCONNECTED"); diff --git a/lib/src/types/web_resource_request.dart b/lib/src/types/web_resource_request.dart index 265d3d9d..c66eaa7a 100644 --- a/lib/src/types/web_resource_request.dart +++ b/lib/src/types/web_resource_request.dart @@ -40,9 +40,9 @@ class WebResourceRequest_ { WebResourceRequest_( {required this.url, - this.headers, - this.method, - this.hasGesture, - this.isForMainFrame, - this.isRedirect}); -} \ No newline at end of file + this.headers, + this.method, + this.hasGesture, + this.isForMainFrame, + this.isRedirect}); +} diff --git a/lib/src/types/web_storage_origin.dart b/lib/src/types/web_storage_origin.dart index e5b990d9..9cb3cf22 100644 --- a/lib/src/types/web_storage_origin.dart +++ b/lib/src/types/web_storage_origin.dart @@ -37,4 +37,4 @@ class AndroidWebStorageOrigin_ { int? usage; AndroidWebStorageOrigin_({this.origin, this.quota, this.usage}); -} \ No newline at end of file +} diff --git a/lib/src/types/web_storage_type.dart b/lib/src/types/web_storage_type.dart index 61e0fe4e..9facc9fa 100644 --- a/lib/src/types/web_storage_type.dart +++ b/lib/src/types/web_storage_type.dart @@ -18,5 +18,5 @@ class WebStorageType_ { ///`window.sessionStorage`: maintains a separate storage area for each given origin that's available for the duration ///of the page session (as long as the browser is open, including page reloads and restores). static const SESSION_STORAGE = - const WebStorageType_._internal("sessionStorage"); -} \ No newline at end of file + const WebStorageType_._internal("sessionStorage"); +} diff --git a/lib/src/types/website_data_record.dart b/lib/src/types/website_data_record.dart index aa1da95e..90ed353c 100644 --- a/lib/src/types/website_data_record.dart +++ b/lib/src/types/website_data_record.dart @@ -31,4 +31,4 @@ class IOSWKWebsiteDataRecord_ { Set? dataTypes; IOSWKWebsiteDataRecord_({this.displayName, this.dataTypes}); -} \ No newline at end of file +} diff --git a/lib/src/types/website_data_type.dart b/lib/src/types/website_data_type.dart index 26fc5f36..b7f51347 100644 --- a/lib/src/types/website_data_type.dart +++ b/lib/src/types/website_data_type.dart @@ -13,47 +13,47 @@ class WebsiteDataType_ { /// ///**NOTE**: available on iOS 11.3+. static const WKWebsiteDataTypeFetchCache = - const WebsiteDataType_._internal("WKWebsiteDataTypeFetchCache"); + const WebsiteDataType_._internal("WKWebsiteDataTypeFetchCache"); ///On-disk caches. static const WKWebsiteDataTypeDiskCache = - const WebsiteDataType_._internal("WKWebsiteDataTypeDiskCache"); + const WebsiteDataType_._internal("WKWebsiteDataTypeDiskCache"); ///In-memory caches. static const WKWebsiteDataTypeMemoryCache = - const WebsiteDataType_._internal("WKWebsiteDataTypeMemoryCache"); + const WebsiteDataType_._internal("WKWebsiteDataTypeMemoryCache"); ///HTML offline web application caches. static const WKWebsiteDataTypeOfflineWebApplicationCache = - const WebsiteDataType_._internal( - "WKWebsiteDataTypeOfflineWebApplicationCache"); + const WebsiteDataType_._internal( + "WKWebsiteDataTypeOfflineWebApplicationCache"); ///Cookies. static const WKWebsiteDataTypeCookies = - const WebsiteDataType_._internal("WKWebsiteDataTypeCookies"); + const WebsiteDataType_._internal("WKWebsiteDataTypeCookies"); ///HTML session storage. static const WKWebsiteDataTypeSessionStorage = - const WebsiteDataType_._internal("WKWebsiteDataTypeSessionStorage"); + const WebsiteDataType_._internal("WKWebsiteDataTypeSessionStorage"); ///HTML local storage. static const WKWebsiteDataTypeLocalStorage = - const WebsiteDataType_._internal("WKWebsiteDataTypeLocalStorage"); + const WebsiteDataType_._internal("WKWebsiteDataTypeLocalStorage"); ///WebSQL databases. static const WKWebsiteDataTypeWebSQLDatabases = - const WebsiteDataType_._internal("WKWebsiteDataTypeWebSQLDatabases"); + const WebsiteDataType_._internal("WKWebsiteDataTypeWebSQLDatabases"); ///IndexedDB databases. static const WKWebsiteDataTypeIndexedDBDatabases = - const WebsiteDataType_._internal("WKWebsiteDataTypeIndexedDBDatabases"); + const WebsiteDataType_._internal("WKWebsiteDataTypeIndexedDBDatabases"); ///Service worker registrations. /// ///**NOTE**: available on iOS 11.3+. static const WKWebsiteDataTypeServiceWorkerRegistrations = - const WebsiteDataType_._internal( - "WKWebsiteDataTypeServiceWorkerRegistrations"); + const WebsiteDataType_._internal( + "WKWebsiteDataTypeServiceWorkerRegistrations"); ///Returns a set of all available website data types. @ExchangeableEnumCustomValue() @@ -88,48 +88,48 @@ class IOSWKWebsiteDataType_ { /// ///**NOTE**: available on iOS 11.3+. static const WKWebsiteDataTypeFetchCache = - const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeFetchCache"); + const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeFetchCache"); ///On-disk caches. static const WKWebsiteDataTypeDiskCache = - const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeDiskCache"); + const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeDiskCache"); ///In-memory caches. static const WKWebsiteDataTypeMemoryCache = - const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeMemoryCache"); + const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeMemoryCache"); ///HTML offline web application caches. static const WKWebsiteDataTypeOfflineWebApplicationCache = - const IOSWKWebsiteDataType_._internal( - "WKWebsiteDataTypeOfflineWebApplicationCache"); + const IOSWKWebsiteDataType_._internal( + "WKWebsiteDataTypeOfflineWebApplicationCache"); ///Cookies. static const WKWebsiteDataTypeCookies = - const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeCookies"); + const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeCookies"); ///HTML session storage. static const WKWebsiteDataTypeSessionStorage = - const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeSessionStorage"); + const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeSessionStorage"); ///HTML local storage. static const WKWebsiteDataTypeLocalStorage = - const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeLocalStorage"); + const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeLocalStorage"); ///WebSQL databases. static const WKWebsiteDataTypeWebSQLDatabases = - const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeWebSQLDatabases"); + const IOSWKWebsiteDataType_._internal("WKWebsiteDataTypeWebSQLDatabases"); ///IndexedDB databases. static const WKWebsiteDataTypeIndexedDBDatabases = - const IOSWKWebsiteDataType_._internal( - "WKWebsiteDataTypeIndexedDBDatabases"); + const IOSWKWebsiteDataType_._internal( + "WKWebsiteDataTypeIndexedDBDatabases"); ///Service worker registrations. /// ///**NOTE**: available on iOS 11.3+. static const WKWebsiteDataTypeServiceWorkerRegistrations = - const IOSWKWebsiteDataType_._internal( - "WKWebsiteDataTypeServiceWorkerRegistrations"); + const IOSWKWebsiteDataType_._internal( + "WKWebsiteDataTypeServiceWorkerRegistrations"); ///Returns a set of all available website data types. @ExchangeableEnumCustomValue() @@ -146,4 +146,4 @@ class IOSWKWebsiteDataType_ { IOSWKWebsiteDataType_.WKWebsiteDataTypeIndexedDBDatabases, IOSWKWebsiteDataType_.WKWebsiteDataTypeServiceWorkerRegistrations ].toSet(); -} \ No newline at end of file +} diff --git a/lib/src/types/webview_implementation.dart b/lib/src/types/webview_implementation.dart index 7cfe0013..91d4fb6e 100644 --- a/lib/src/types/webview_implementation.dart +++ b/lib/src/types/webview_implementation.dart @@ -13,4 +13,4 @@ class WebViewImplementation_ { ///Default native implementation, such as `WKWebView` for iOS and `android.webkit.WebView` for Android. static const NATIVE = const WebViewImplementation_._internal(0); -} \ No newline at end of file +} diff --git a/lib/src/types/webview_package_info.dart b/lib/src/types/webview_package_info.dart index 6f1757e3..f88f22c2 100644 --- a/lib/src/types/webview_package_info.dart +++ b/lib/src/types/webview_package_info.dart @@ -28,4 +28,4 @@ class AndroidWebViewPackageInfo_ { String? packageName; AndroidWebViewPackageInfo_({this.versionName, this.packageName}); -} \ No newline at end of file +} diff --git a/lib/src/types/webview_render_process_action.dart b/lib/src/types/webview_render_process_action.dart index e95177f8..79df074f 100644 --- a/lib/src/types/webview_render_process_action.dart +++ b/lib/src/types/webview_render_process_action.dart @@ -17,4 +17,4 @@ class WebViewRenderProcessAction_ { ///Cause this renderer to terminate. static const TERMINATE = const WebViewRenderProcessAction_._internal(0); -} \ No newline at end of file +} diff --git a/lib/src/types/window_features.dart b/lib/src/types/window_features.dart index a6b65e91..9b72119f 100644 --- a/lib/src/types/window_features.dart +++ b/lib/src/types/window_features.dart @@ -31,13 +31,13 @@ class WindowFeatures_ { WindowFeatures_( {this.allowsResizing, - this.height, - this.menuBarVisibility, - this.statusBarVisibility, - this.toolbarsVisibility, - this.width, - this.x, - this.y}); + this.height, + this.menuBarVisibility, + this.statusBarVisibility, + this.toolbarsVisibility, + this.width, + this.x, + this.y}); } ///An iOS-specific class that specifies optional attributes for the containing window when a new web view is requested. @@ -71,11 +71,11 @@ class IOSWKWindowFeatures_ { IOSWKWindowFeatures_( {this.allowsResizing, - this.height, - this.menuBarVisibility, - this.statusBarVisibility, - this.toolbarsVisibility, - this.width, - this.x, - this.y}); -} \ No newline at end of file + this.height, + this.menuBarVisibility, + this.statusBarVisibility, + this.toolbarsVisibility, + this.width, + this.x, + this.y}); +} diff --git a/lib/src/web/headless_in_app_web_view_web_element.dart b/lib/src/web/headless_in_app_web_view_web_element.dart index dd1c9757..7d6e07c5 100644 --- a/lib/src/web/headless_in_app_web_view_web_element.dart +++ b/lib/src/web/headless_in_app_web_view_web_element.dart @@ -39,7 +39,8 @@ class HeadlessInAppWebViewWebElement implements Disposable { dispose(); break; case "setSize": - Size size = MapSize.fromMap(call.arguments['size'].cast())!; + Size size = + MapSize.fromMap(call.arguments['size'].cast())!; setSize(size); break; case "getSize": diff --git a/lib/src/web/headless_inappwebview_manager.dart b/lib/src/web/headless_inappwebview_manager.dart index bb373ec2..173b0d4a 100644 --- a/lib/src/web/headless_inappwebview_manager.dart +++ b/lib/src/web/headless_inappwebview_manager.dart @@ -20,7 +20,8 @@ class HeadlessInAppWebViewManager { const StandardMethodCodec(), _messenger, ); - HeadlessInAppWebViewManager._sharedChannel.setMethodCallHandler((call) async { + HeadlessInAppWebViewManager._sharedChannel + .setMethodCallHandler((call) async { try { return await handleMethod(call); } on Error catch (e) { @@ -62,7 +63,7 @@ class HeadlessInAppWebViewManager { webView.iframe.style.height = initialSize["height"].toString() + 'px'; } Map initialSettings = - params["initialSettings"].cast(); + params["initialSettings"].cast(); if (initialSettings.isEmpty) { webView.initialSettings = InAppWebViewSettings(); } else { diff --git a/lib/src/web/in_app_web_view_web_element.dart b/lib/src/web/in_app_web_view_web_element.dart index 98e5f3f9..5284dde0 100644 --- a/lib/src/web/in_app_web_view_web_element.dart +++ b/lib/src/web/in_app_web_view_web_element.dart @@ -110,8 +110,10 @@ class InAppWebViewWebElement implements Disposable { return await postUrl(url: url, postData: postData); case "injectJavascriptFileFromUrl": String urlFile = call.arguments["urlFile"]; - Map scriptHtmlTagAttributes = call.arguments["scriptHtmlTagAttributes"].cast(); - await injectJavascriptFileFromUrl(urlFile: urlFile, scriptHtmlTagAttributes: scriptHtmlTagAttributes); + Map scriptHtmlTagAttributes = + call.arguments["scriptHtmlTagAttributes"].cast(); + await injectJavascriptFileFromUrl( + urlFile: urlFile, scriptHtmlTagAttributes: scriptHtmlTagAttributes); break; case "injectCSSCode": String source = call.arguments["source"]; @@ -119,8 +121,11 @@ class InAppWebViewWebElement implements Disposable { break; case "injectCSSFileFromUrl": String urlFile = call.arguments["urlFile"]; - Map cssLinkHtmlTagAttributes = call.arguments["cssLinkHtmlTagAttributes"].cast(); - await injectCSSFileFromUrl(urlFile: urlFile, cssLinkHtmlTagAttributes: cssLinkHtmlTagAttributes); + Map cssLinkHtmlTagAttributes = + call.arguments["cssLinkHtmlTagAttributes"].cast(); + await injectCSSFileFromUrl( + urlFile: urlFile, + cssLinkHtmlTagAttributes: cssLinkHtmlTagAttributes); break; case "scrollTo": int x = call.arguments["x"]; @@ -185,12 +190,13 @@ class InAppWebViewWebElement implements Disposable { if (settings.iframeSandbox != null && settings.iframeSandbox != Sandbox.ALLOW_ALL) { - iframe.setAttribute( - "sandbox", settings.iframeSandbox!.map((e) => e.toNativeValue()).join(" ")); + iframe.setAttribute("sandbox", + settings.iframeSandbox!.map((e) => e.toNativeValue()).join(" ")); } else if (settings.iframeSandbox == Sandbox.ALLOW_ALL) { iframe.removeAttribute("sandbox"); } else if (sandbox != Sandbox.values) { - iframe.setAttribute("sandbox", sandbox.map((e) => e.toNativeValue()).join(" ")); + iframe.setAttribute( + "sandbox", sandbox.map((e) => e.toNativeValue()).join(" ")); settings.iframeSandbox = sandbox; } @@ -296,33 +302,46 @@ class InAppWebViewWebElement implements Disposable { return _callMethod("getTitle"); } - Future postUrl({required String url, required Uint8List postData}) async { - await loadUrl(urlRequest: URLRequest(url: Uri.parse(url), method: "POST", body: postData)); + Future postUrl( + {required String url, required Uint8List postData}) async { + await loadUrl( + urlRequest: + URLRequest(url: Uri.parse(url), method: "POST", body: postData)); } - Future injectJavascriptFileFromUrl({required String urlFile, - Map? scriptHtmlTagAttributes}) async { - _callMethod("injectJavascriptFileFromUrl", - [urlFile, scriptHtmlTagAttributes != null ? - js.JsObject.jsify(scriptHtmlTagAttributes) : null]); + Future injectJavascriptFileFromUrl( + {required String urlFile, + Map? scriptHtmlTagAttributes}) async { + _callMethod("injectJavascriptFileFromUrl", [ + urlFile, + scriptHtmlTagAttributes != null + ? js.JsObject.jsify(scriptHtmlTagAttributes) + : null + ]); } Future injectCSSCode({required String source}) async { _callMethod("injectCSSCode", [source]); } - Future injectCSSFileFromUrl({required String urlFile, - Map? cssLinkHtmlTagAttributes}) async { - _callMethod("injectCSSFileFromUrl", - [urlFile, cssLinkHtmlTagAttributes != null ? - js.JsObject.jsify(cssLinkHtmlTagAttributes) : null]); + Future injectCSSFileFromUrl( + {required String urlFile, + Map? cssLinkHtmlTagAttributes}) async { + _callMethod("injectCSSFileFromUrl", [ + urlFile, + cssLinkHtmlTagAttributes != null + ? js.JsObject.jsify(cssLinkHtmlTagAttributes) + : null + ]); } - Future scrollTo({required int x, required int y, bool animated = false}) async { + Future scrollTo( + {required int x, required int y, bool animated = false}) async { _callMethod('scrollTo', [x, y, animated]); } - Future scrollBy({required int x, required int y, bool animated = false}) async { + Future scrollBy( + {required int x, required int y, bool animated = false}) async { _callMethod('scrollBy', [x, y, animated]); } @@ -417,7 +436,8 @@ class InAppWebViewWebElement implements Disposable { iframe.removeAttribute("sandbox"); } } else if (sandbox != Sandbox.values) { - iframe.setAttribute("sandbox", sandbox.map((e) => e.toNativeValue()).join(" ")); + iframe.setAttribute( + "sandbox", sandbox.map((e) => e.toNativeValue()).join(" ")); } newSettings.iframeSandbox = sandbox; @@ -510,10 +530,7 @@ class InAppWebViewWebElement implements Disposable { } void onPrintRequest(String? url) async { - var obj = { - "url": url, - "printJobId": null - }; + var obj = {"url": url, "printJobId": null}; await _channel?.invokeMethod("onPrintRequest", obj); } diff --git a/lib/src/web/main_stub.dart b/lib/src/web/main_stub.dart index a1d823b0..c33f7f2c 100644 --- a/lib/src/web/main_stub.dart +++ b/lib/src/web/main_stub.dart @@ -1,6 +1,4 @@ ///Stub for web support. class FlutterInAppWebViewWebPlatform { - static void registerWith(dynamic registrar) { - - } -} \ No newline at end of file + static void registerWith(dynamic registrar) {} +} diff --git a/lib/src/web_authentication_session/web_authenticate_session.dart b/lib/src/web_authentication_session/web_authenticate_session.dart index 96142893..d920ca1f 100755 --- a/lib/src/web_authentication_session/web_authenticate_session.dart +++ b/lib/src/web_authentication_session/web_authenticate_session.dart @@ -11,7 +11,8 @@ import '../types/disposable.dart'; import 'web_authenticate_session_settings.dart'; ///A completion handler for the [WebAuthenticationSession]. -typedef WebAuthenticationSessionCompletionHandler = Future Function(Uri? url, WebAuthenticationSessionError? error)?; +typedef WebAuthenticationSessionCompletionHandler = Future Function( + Uri? url, WebAuthenticationSessionError? error)?; ///A session that an app uses to authenticate a user through a web service. /// diff --git a/package.json b/package.json index f4e5f331..95db49e7 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "build": "flutter pub run build_runner build --delete-conflicting-outputs", "watch": "flutter pub run build_runner watch --delete-conflicting-outputs", "publish:dry": "npm run build && flutter pub publish --dry-run", - "publish": "npm run build && flutter pub publish" + "publish": "npm run build && flutter pub publish", + "format": "flutter format lib example/integration_test" }, "repository": { "type": "git",