updated tests

This commit is contained in:
Lorenzo Pichilli 2023-11-12 20:25:36 +01:00
parent 8ee618101b
commit 6119d58951
2 changed files with 3 additions and 2 deletions

View File

@ -159,7 +159,7 @@ class MyChromeSafariBrowser extends ChromeSafariBrowser {
@override
void onPostMessage(String message) {
if (!postMessageReceived.isCompleted) {
postMessageReceived.complete();
postMessageReceived.complete(message);
}
}

View File

@ -504,7 +504,8 @@ class ChromeSafariBrowser extends ChannelController {
///
///**Supported Platforms/Implementations**:
///- Android ([Official API - CustomTabsClient.getPackageName](https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsClient#getPackageName(android.content.Context,java.util.List%3Cjava.lang.String%3E,boolean))))
static Future<String?> getPackageName({List<String>? packages, bool ignoreDefault = false}) async {
static Future<String?> getPackageName(
{List<String>? packages, bool ignoreDefault = false}) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent("packages", () => packages);
args.putIfAbsent("ignoreDefault", () => ignoreDefault);