From 786a5449633e1c195b675fb5878fb9e36a36be97 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Wed, 19 Oct 2022 16:54:54 +0200 Subject: [PATCH] flutter format --- .../custom_menu_item.dart | 6 +-- .../chrome_safari_browser/open_and_close.dart | 6 +-- lib/flutter_inappwebview.dart | 2 +- .../in_app_browser_settings.dart | 6 ++- lib/src/in_app_webview/in_app_webview.dart | 4 +- .../in_app_webview_controller.dart | 2 +- .../in_app_webview_settings.dart | 3 +- lib/src/types/main.dart | 2 +- lib/src/types/permission_resource_type.dart | 6 +-- lib/src/types/print_job_attributes.dart | 7 ++- lib/src/types/print_job_color_mode.dart | 12 +++-- lib/src/types/print_job_disposition.dart | 16 ++---- lib/src/types/print_job_duplex_mode.dart | 21 +++++--- lib/src/types/print_job_info.dart | 4 +- lib/src/types/print_job_orientation.dart | 12 ++--- lib/src/types/print_job_page_order.dart | 16 ++---- lib/src/types/print_job_pagination_mode.dart | 12 ++--- .../types/print_job_rendering_quality.dart | 12 ++--- lib/src/types/window_style_mask.dart | 50 +++++++++---------- .../window_titlebar_separator_style.dart | 2 +- lib/src/web/in_app_web_view_web_element.dart | 6 ++- 21 files changed, 98 insertions(+), 109 deletions(-) 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 83c994a4..3f002f76 100644 --- a/example/integration_test/chrome_safari_browser/custom_menu_item.dart +++ b/example/integration_test/chrome_safari_browser/custom_menu_item.dart @@ -8,10 +8,8 @@ import '../util.dart'; void customMenuItem() { final shouldSkip = kIsWeb ? true - : ![ - TargetPlatform.android, - TargetPlatform.iOS - ].contains(defaultTargetPlatform); + : ![TargetPlatform.android, TargetPlatform.iOS] + .contains(defaultTargetPlatform); test('add custom menu item', () async { var chromeSafariBrowser = MyChromeSafariBrowser(); diff --git a/example/integration_test/chrome_safari_browser/open_and_close.dart b/example/integration_test/chrome_safari_browser/open_and_close.dart index 54898cca..7ebdb5dd 100644 --- a/example/integration_test/chrome_safari_browser/open_and_close.dart +++ b/example/integration_test/chrome_safari_browser/open_and_close.dart @@ -8,10 +8,8 @@ import '../util.dart'; void openAndClose() { final shouldSkip = kIsWeb ? true - : ![ - TargetPlatform.android, - TargetPlatform.iOS - ].contains(defaultTargetPlatform); + : ![TargetPlatform.android, TargetPlatform.iOS] + .contains(defaultTargetPlatform); test('open and close', () async { var chromeSafariBrowser = MyChromeSafariBrowser(); diff --git a/lib/flutter_inappwebview.dart b/lib/flutter_inappwebview.dart index 722846d4..3c2152ee 100755 --- a/lib/flutter_inappwebview.dart +++ b/lib/flutter_inappwebview.dart @@ -22,4 +22,4 @@ library flutter_inappwebview; export 'src/main.dart'; -export 'src/web/main_stub.dart' if (dart.library.html) 'src/web/main.dart'; \ No newline at end of file +export 'src/web/main_stub.dart' if (dart.library.html) 'src/web/main.dart'; diff --git a/lib/src/in_app_browser/in_app_browser_settings.dart b/lib/src/in_app_browser/in_app_browser_settings.dart index c89336ac..57cb6dcc 100755 --- a/lib/src/in_app_browser/in_app_browser_settings.dart +++ b/lib/src/in_app_browser/in_app_browser_settings.dart @@ -59,8 +59,10 @@ class InAppBrowserClassSettings { if (instance == null) { instance = InAppBrowserClassSettings(); } - instance.browserSettings = InAppBrowserSettings.fromMap(options) ?? InAppBrowserSettings(); - instance.webViewSettings = InAppWebViewSettings.fromMap(options) ?? InAppWebViewSettings(); + instance.browserSettings = + InAppBrowserSettings.fromMap(options) ?? InAppBrowserSettings(); + instance.webViewSettings = + InAppWebViewSettings.fromMap(options) ?? InAppWebViewSettings(); return instance; } diff --git a/lib/src/in_app_webview/in_app_webview.dart b/lib/src/in_app_webview/in_app_webview.dart index f60ea6ec..b4166445 100755 --- a/lib/src/in_app_webview/in_app_webview.dart +++ b/lib/src/in_app_webview/in_app_webview.dart @@ -688,7 +688,9 @@ class _InAppWebViewState extends State { creationParamsCodec: const StandardMessageCodec(), ); } - } else if (defaultTargetPlatform == TargetPlatform.iOS/* || defaultTargetPlatform == TargetPlatform.macOS*/) { + } else if (defaultTargetPlatform == + TargetPlatform + .iOS /* || defaultTargetPlatform == TargetPlatform.macOS*/) { return UiKitView( viewType: 'com.pichillilorenzo/flutter_inappwebview', onPlatformViewCreated: _onPlatformViewCreated, 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 d486450d..0698c35b 100644 --- a/lib/src/in_app_webview/in_app_webview_controller.dart +++ b/lib/src/in_app_webview/in_app_webview_controller.dart @@ -113,7 +113,7 @@ class InAppWebViewController { _debugLog(String method, dynamic args) { debugLog( className: this.runtimeType.toString(), - name: _inAppBrowser == null ? "WebView" : "InAppBrowser", + name: _inAppBrowser == null ? "WebView" : "InAppBrowser", id: (getViewId() ?? _inAppBrowser?.id).toString(), debugLoggingSettings: WebView.debugLoggingSettings, method: method, 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 c398fc6b..36520c28 100755 --- a/lib/src/in_app_webview/in_app_webview_settings.dart +++ b/lib/src/in_app_webview/in_app_webview_settings.dart @@ -33,7 +33,8 @@ import '../context_menu.dart'; part 'in_app_webview_settings.g.dart'; -List _deserializeContentBlockers(List? contentBlockersMapList) { +List _deserializeContentBlockers( + List? contentBlockersMapList) { List contentBlockers = []; if (contentBlockersMapList != null) { contentBlockersMapList.forEach((contentBlocker) { diff --git a/lib/src/types/main.dart b/lib/src/types/main.dart index 28ff5f51..a1e3078c 100644 --- a/lib/src/types/main.dart +++ b/lib/src/types/main.dart @@ -214,4 +214,4 @@ export 'print_job_disposition.dart' show PrintJobDisposition; export 'printer.dart' show Printer; export 'window_type.dart' show WindowType; export 'window_style_mask.dart' show WindowStyleMask; -export 'window_titlebar_separator_style.dart' show WindowTitlebarSeparatorStyle; \ No newline at end of file +export 'window_titlebar_separator_style.dart' show WindowTitlebarSeparatorStyle; diff --git a/lib/src/types/permission_resource_type.dart b/lib/src/types/permission_resource_type.dart index b072fd6e..4c5837cc 100644 --- a/lib/src/types/permission_resource_type.dart +++ b/lib/src/types/permission_resource_type.dart @@ -29,7 +29,7 @@ class PermissionResourceType_ { available: "12.0", apiName: 'WKMediaCaptureType.microphone', apiUrl: - 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone', + 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone', value: 1) ]) static const MICROPHONE = PermissionResourceType_._internal('MICROPHONE'); @@ -74,7 +74,7 @@ class PermissionResourceType_ { available: "12.0", apiName: 'WKMediaCaptureType.camera', apiUrl: - 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera', + 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera', value: 0) ]) static const CAMERA = PermissionResourceType_._internal('CAMERA'); @@ -91,7 +91,7 @@ class PermissionResourceType_ { available: "12.0", apiName: 'WKMediaCaptureType.cameraAndMicrophone', apiUrl: - 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone', + 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone', value: 2) ]) static const CAMERA_AND_MICROPHONE = diff --git a/lib/src/types/print_job_attributes.dart b/lib/src/types/print_job_attributes.dart index 4ca454e6..18d5fd87 100644 --- a/lib/src/types/print_job_attributes.dart +++ b/lib/src/types/print_job_attributes.dart @@ -23,8 +23,11 @@ class PrintJobAttributes_ { PrintJobColorMode_? colorMode; ///The duplex mode to use for the print job. - @SupportedPlatforms( - platforms: [AndroidPlatform(available: "23"), IOSPlatform(), MacOSPlatform()]) + @SupportedPlatforms(platforms: [ + AndroidPlatform(available: "23"), + IOSPlatform(), + MacOSPlatform() + ]) PrintJobDuplexMode_? duplex; ///The orientation of the printed content, portrait or landscape. diff --git a/lib/src/types/print_job_color_mode.dart b/lib/src/types/print_job_color_mode.dart index 7edcf5a9..76693bfb 100644 --- a/lib/src/types/print_job_color_mode.dart +++ b/lib/src/types/print_job_color_mode.dart @@ -15,12 +15,16 @@ class PrintJobColorMode_ { const PrintJobColorMode_._internal(this._value); ///Monochrome color scheme, for example one color is used. - @EnumSupportedPlatforms( - platforms: [EnumAndroidPlatform(value: 1), EnumMacOSPlatform(value: "Gray")]) + @EnumSupportedPlatforms(platforms: [ + EnumAndroidPlatform(value: 1), + EnumMacOSPlatform(value: "Gray") + ]) static const MONOCHROME = const PrintJobColorMode_._internal(1); ///Color color scheme, for example many colors are used. - @EnumSupportedPlatforms( - platforms: [EnumAndroidPlatform(value: 1), EnumMacOSPlatform(value: "RGB")]) + @EnumSupportedPlatforms(platforms: [ + EnumAndroidPlatform(value: 1), + EnumMacOSPlatform(value: "RGB") + ]) static const COLOR = const PrintJobColorMode_._internal(2); } diff --git a/lib/src/types/print_job_disposition.dart b/lib/src/types/print_job_disposition.dart index 7f788009..645e2fac 100644 --- a/lib/src/types/print_job_disposition.dart +++ b/lib/src/types/print_job_disposition.dart @@ -13,26 +13,18 @@ class PrintJobDisposition_ { const PrintJobDisposition_._internal(this._value); ///Normal print job. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 'spool') - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 'spool')]) static const SPOOL = const PrintJobDisposition_._internal('SPOOL'); ///Send to Preview application. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 'preview') - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 'preview')]) static const PREVIEW = const PrintJobDisposition_._internal("PREVIEW"); ///Save to a file. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 'save') - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 'save')]) static const SAVE = const PrintJobDisposition_._internal("SAVE"); ///Cancel print job. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 'cancel') - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 'cancel')]) static const CANCEL = const PrintJobDisposition_._internal("CANCEL"); } diff --git a/lib/src/types/print_job_duplex_mode.dart b/lib/src/types/print_job_duplex_mode.dart index 724c157b..e6e29d2e 100644 --- a/lib/src/types/print_job_duplex_mode.dart +++ b/lib/src/types/print_job_duplex_mode.dart @@ -16,19 +16,28 @@ class PrintJobDuplexMode_ { const PrintJobDuplexMode_._internal(this._value); ///No double-sided (duplex) printing; single-sided printing only. - @EnumSupportedPlatforms( - platforms: [EnumAndroidPlatform(value: 1), EnumIOSPlatform(value: 0), EnumMacOSPlatform(value: 1)]) + @EnumSupportedPlatforms(platforms: [ + EnumAndroidPlatform(value: 1), + EnumIOSPlatform(value: 0), + EnumMacOSPlatform(value: 1) + ]) static const NONE = PrintJobDuplexMode_._internal('NONE'); ///Duplex printing that flips the back page along the long edge of the paper. ///Pages are turned sideways along the long edge - like a book. - @EnumSupportedPlatforms( - platforms: [EnumAndroidPlatform(value: 2), EnumIOSPlatform(value: 1), EnumMacOSPlatform(value: 2)]) + @EnumSupportedPlatforms(platforms: [ + EnumAndroidPlatform(value: 2), + EnumIOSPlatform(value: 1), + EnumMacOSPlatform(value: 2) + ]) static const LONG_EDGE = PrintJobDuplexMode_._internal('LONG_EDGE'); ///Duplex print that flips the back page along the short edge of the paper. ///Pages are turned upwards along the short edge - like a notepad. - @EnumSupportedPlatforms( - platforms: [EnumAndroidPlatform(value: 4), EnumIOSPlatform(value: 2), EnumMacOSPlatform(value: 3)]) + @EnumSupportedPlatforms(platforms: [ + EnumAndroidPlatform(value: 4), + EnumIOSPlatform(value: 2), + EnumMacOSPlatform(value: 3) + ]) static const SHORT_EDGE = PrintJobDuplexMode_._internal('SHORT_EDGE'); } diff --git a/lib/src/types/print_job_info.dart b/lib/src/types/print_job_info.dart index c544d02d..572f5711 100644 --- a/lib/src/types/print_job_info.dart +++ b/lib/src/types/print_job_info.dart @@ -139,7 +139,7 @@ class PrintJobInfo_ { this.canSpawnSeparateThread, this.isCopyingOperation, this.currentPage, - this.firstPage, - this.lastPage, + this.firstPage, + this.lastPage, this.attributes}); } diff --git a/lib/src/types/print_job_orientation.dart b/lib/src/types/print_job_orientation.dart index b43d7d26..28713342 100644 --- a/lib/src/types/print_job_orientation.dart +++ b/lib/src/types/print_job_orientation.dart @@ -13,16 +13,12 @@ class PrintJobOrientation_ { const PrintJobOrientation_._internal(this._value); ///Pages are printed in portrait orientation. - @EnumSupportedPlatforms(platforms: [ - EnumIOSPlatform(value: 0), - EnumMacOSPlatform(value: 0) - ]) + @EnumSupportedPlatforms( + platforms: [EnumIOSPlatform(value: 0), EnumMacOSPlatform(value: 0)]) static const PORTRAIT = const PrintJobOrientation_._internal(0); ///Pages are printed in landscape orientation. - @EnumSupportedPlatforms(platforms: [ - EnumIOSPlatform(value: 1), - EnumMacOSPlatform(value: 1) - ]) + @EnumSupportedPlatforms( + platforms: [EnumIOSPlatform(value: 1), EnumMacOSPlatform(value: 1)]) static const LANDSCAPE = const PrintJobOrientation_._internal(1); } diff --git a/lib/src/types/print_job_page_order.dart b/lib/src/types/print_job_page_order.dart index 386dfe6d..8b1630eb 100644 --- a/lib/src/types/print_job_page_order.dart +++ b/lib/src/types/print_job_page_order.dart @@ -13,26 +13,18 @@ class PrintJobPageOrder_ { const PrintJobPageOrder_._internal(this._value); ///Descending (front to back) page order. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: -1) - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: -1)]) static const DESCENDING = const PrintJobPageOrder_._internal(-1); ///The spooler does not rearrange pages—they are printed in the order received by the spooler. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 0) - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 0)]) static const SPECIAL = const PrintJobPageOrder_._internal(0); ///Ascending (back to front) page order. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 1) - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 1)]) static const ASCENDING = const PrintJobPageOrder_._internal(1); ///No page order specified. - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 2) - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 2)]) static const UNKNOWN = const PrintJobPageOrder_._internal(2); } diff --git a/lib/src/types/print_job_pagination_mode.dart b/lib/src/types/print_job_pagination_mode.dart index 90bfad7d..31c9bafa 100644 --- a/lib/src/types/print_job_pagination_mode.dart +++ b/lib/src/types/print_job_pagination_mode.dart @@ -15,20 +15,14 @@ class PrintJobPaginationMode_ { const PrintJobPaginationMode_._internal(this._value); /// - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 0) - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 0)]) static const AUTOMATIC = const PrintJobPaginationMode_._internal('AUTOMATIC'); /// - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 1) - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 1)]) static const FIT = const PrintJobPaginationMode_._internal("FIT"); /// - @EnumSupportedPlatforms(platforms: [ - EnumMacOSPlatform(value: 2) - ]) + @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 2)]) static const CLIP = const PrintJobPaginationMode_._internal("CLIP"); } diff --git a/lib/src/types/print_job_rendering_quality.dart b/lib/src/types/print_job_rendering_quality.dart index e765a3dc..da41dd9f 100644 --- a/lib/src/types/print_job_rendering_quality.dart +++ b/lib/src/types/print_job_rendering_quality.dart @@ -13,17 +13,13 @@ class PrintJobRenderingQuality_ { const PrintJobRenderingQuality_._internal(this._value); ///Renders the printing at the best possible quality, regardless of speed. - @EnumSupportedPlatforms(platforms: [ - EnumIOSPlatform(value: 0), - EnumMacOSPlatform(value: 0) - ]) + @EnumSupportedPlatforms( + platforms: [EnumIOSPlatform(value: 0), EnumMacOSPlatform(value: 0)]) static const BEST = const PrintJobRenderingQuality_._internal(0); ///Sacrifices the least possible amount of rendering quality for speed to maintain a responsive user interface. ///This option should be used only after establishing that best quality rendering does indeed make the user interface unresponsive. - @EnumSupportedPlatforms(platforms: [ - EnumIOSPlatform(value: 1), - EnumMacOSPlatform(value: 1) - ]) + @EnumSupportedPlatforms( + platforms: [EnumIOSPlatform(value: 1), EnumMacOSPlatform(value: 1)]) static const RESPONSIVE = const PrintJobRenderingQuality_._internal(1); } diff --git a/lib/src/types/window_style_mask.dart b/lib/src/types/window_style_mask.dart index c957a5ca..afe25d9f 100644 --- a/lib/src/types/window_style_mask.dart +++ b/lib/src/types/window_style_mask.dart @@ -15,10 +15,10 @@ class WindowStyleMask_ { ///The window displays none of the usual peripheral elements. Useful only for display or caching purposes. @EnumSupportedPlatforms(platforms: [ EnumMacOSPlatform( - value: 0, - apiName: "NSWindow.StyleMask.borderless", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644698-borderless" - ) + value: 0, + apiName: "NSWindow.StyleMask.borderless", + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644698-borderless") ]) static const BORDERLESS = const WindowStyleMask_._internal(0); @@ -27,8 +27,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 1, apiName: "NSWindow.StyleMask.titled", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644724-titled" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644724-titled") ]) static const TITLED = const WindowStyleMask_._internal(1); @@ -37,8 +37,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 2, apiName: "NSWindow.StyleMask.closable", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644610-closable" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644610-closable") ]) static const CLOSABLE = const WindowStyleMask_._internal(2); @@ -47,8 +47,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 4, apiName: "NSWindow.StyleMask.miniaturizable", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644650-miniaturizable" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644650-miniaturizable") ]) static const MINIATURIZABLE = const WindowStyleMask_._internal(4); @@ -57,8 +57,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 8, apiName: "NSWindow.StyleMask.miniaturizable", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644717-resizable" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644717-resizable") ]) static const RESIZABLE = const WindowStyleMask_._internal(8); @@ -67,8 +67,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 16384, apiName: "NSWindow.StyleMask.fullScreen", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644530-fullscreen" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644530-fullscreen") ]) static const FULLSCREEN = const WindowStyleMask_._internal(16384); @@ -79,8 +79,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 32768, apiName: "NSWindow.StyleMask.fullSizeContentView", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644646-fullsizecontentview" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644646-fullsizecontentview") ]) static const FULL_SIZE_CONTENT_VIEW = const WindowStyleMask_._internal(32768); @@ -89,8 +89,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 16, apiName: "NSWindow.StyleMask.utilityWindow", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644672-utilitywindow" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644672-utilitywindow") ]) static const UTILITY_WINDOW = const WindowStyleMask_._internal(16); @@ -99,8 +99,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 64, apiName: "NSWindow.StyleMask.docModalWindow", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644253-docmodalwindow" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644253-docmodalwindow") ]) static const DOC_MODAL_WINDOW = const WindowStyleMask_._internal(64); @@ -109,8 +109,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 128, apiName: "NSWindow.StyleMask.nonactivatingPanel", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644696-nonactivatingpanel" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644696-nonactivatingpanel") ]) static const NONACTIVATING_PANEL = const WindowStyleMask_._internal(128); @@ -119,8 +119,8 @@ class WindowStyleMask_ { EnumMacOSPlatform( value: 8192, apiName: "NSWindow.StyleMask.hudWindow", - apiUrl: "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644653-hudwindow" - ) + apiUrl: + "https://developer.apple.com/documentation/appkit/nswindow/stylemask/1644653-hudwindow") ]) static const HUD_WINDOW = const WindowStyleMask_._internal(8192); -} \ No newline at end of file +} diff --git a/lib/src/types/window_titlebar_separator_style.dart b/lib/src/types/window_titlebar_separator_style.dart index bbe87aad..4ace3805 100644 --- a/lib/src/types/window_titlebar_separator_style.dart +++ b/lib/src/types/window_titlebar_separator_style.dart @@ -27,4 +27,4 @@ class WindowTitlebarSeparatorStyle_ { ///A style indicating that the title bar separator is a shadow. @EnumSupportedPlatforms(platforms: [EnumMacOSPlatform(value: 3)]) static const SHADOW = const WindowTitlebarSeparatorStyle_._internal(3); -} \ No newline at end of file +} 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 a3217f70..687d92ec 100644 --- a/lib/src/web/in_app_web_view_web_element.dart +++ b/lib/src/web/in_app_web_view_web_element.dart @@ -97,7 +97,8 @@ class InAppWebViewWebElement implements Disposable { return await getSettings(); case "setSettings": InAppWebViewSettings newSettings = InAppWebViewSettings.fromMap( - call.arguments["settings"].cast()) ?? InAppWebViewSettings(); + call.arguments["settings"].cast()) ?? + InAppWebViewSettings(); await setSettings(newSettings); break; case "getUrl": @@ -403,7 +404,8 @@ class InAppWebViewWebElement implements Disposable { Future setSettings(InAppWebViewSettings newSettings) async { Set sandbox = getSandbox(); - if (newSettings.javaScriptEnabled != null && settings.javaScriptEnabled != newSettings.javaScriptEnabled) { + if (newSettings.javaScriptEnabled != null && + settings.javaScriptEnabled != newSettings.javaScriptEnabled) { if (!newSettings.javaScriptEnabled!) { sandbox.remove(Sandbox.ALLOW_SCRIPTS); } else {