code format

This commit is contained in:
Lorenzo Pichilli 2023-12-04 04:33:02 +01:00
parent df678091e9
commit 3d66ec0882
2 changed files with 22 additions and 22 deletions

View File

@ -35,14 +35,14 @@ class ChromeSafariBrowser implements PlatformChromeSafariBrowserEvents {
///{@macro flutter_inappwebview_platform_interface.PlatformChromeSafariBrowser.open} ///{@macro flutter_inappwebview_platform_interface.PlatformChromeSafariBrowser.open}
Future<void> open( Future<void> open(
{WebUri? url, {WebUri? url,
Map<String, String>? headers, Map<String, String>? headers,
List<WebUri>? otherLikelyURLs, List<WebUri>? otherLikelyURLs,
WebUri? referrer, WebUri? referrer,
@Deprecated('Use settings instead') @Deprecated('Use settings instead')
// ignore: deprecated_member_use_from_same_package // ignore: deprecated_member_use_from_same_package
ChromeSafariBrowserClassOptions? options, ChromeSafariBrowserClassOptions? options,
ChromeSafariBrowserSettings? settings}) { ChromeSafariBrowserSettings? settings}) {
this.platform.eventHandler = this; this.platform.eventHandler = this;
return platform.open( return platform.open(
url: url, url: url,

View File

@ -93,9 +93,9 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openUrlRequest} ///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openUrlRequest}
Future<void> openUrlRequest( Future<void> openUrlRequest(
{required URLRequest urlRequest, {required URLRequest urlRequest,
@Deprecated('Use settings instead') InAppBrowserClassOptions? options, @Deprecated('Use settings instead') InAppBrowserClassOptions? options,
InAppBrowserClassSettings? settings}) { InAppBrowserClassSettings? settings}) {
this.platform.eventHandler = this; this.platform.eventHandler = this;
return platform.openUrlRequest( return platform.openUrlRequest(
urlRequest: urlRequest, options: options, settings: settings); urlRequest: urlRequest, options: options, settings: settings);
@ -103,9 +103,9 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openFile} ///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openFile}
Future<void> openFile( Future<void> openFile(
{required String assetFilePath, {required String assetFilePath,
@Deprecated('Use settings instead') InAppBrowserClassOptions? options, @Deprecated('Use settings instead') InAppBrowserClassOptions? options,
InAppBrowserClassSettings? settings}) { InAppBrowserClassSettings? settings}) {
this.platform.eventHandler = this; this.platform.eventHandler = this;
return platform.openFile( return platform.openFile(
assetFilePath: assetFilePath, options: options, settings: settings); assetFilePath: assetFilePath, options: options, settings: settings);
@ -113,14 +113,14 @@ class InAppBrowser implements PlatformInAppBrowserEvents {
///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openData} ///{@macro flutter_inappwebview_platform_interface.PlatformInAppBrowser.openData}
Future<void> openData( Future<void> openData(
{required String data, {required String data,
String mimeType = "text/html", String mimeType = "text/html",
String encoding = "utf8", String encoding = "utf8",
WebUri? baseUrl, WebUri? baseUrl,
@Deprecated("Use historyUrl instead") Uri? androidHistoryUrl, @Deprecated("Use historyUrl instead") Uri? androidHistoryUrl,
WebUri? historyUrl, WebUri? historyUrl,
@Deprecated('Use settings instead') InAppBrowserClassOptions? options, @Deprecated('Use settings instead') InAppBrowserClassOptions? options,
InAppBrowserClassSettings? settings}) { InAppBrowserClassSettings? settings}) {
this.platform.eventHandler = this; this.platform.eventHandler = this;
return platform.openData( return platform.openData(
data: data, data: data,