diff --git a/example/lib/main.dart b/example/lib/main.dart index 30c0021..273db2a 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -89,7 +89,8 @@ class _MyAppState extends State { ), const SizedBox(height: 15), ElevatedButton( - onPressed: _configuration != null ? () => PlaidLink.open() : null, + onPressed: + _configuration != null ? () => PlaidLink.open() : null, child: const Text("Open"), ), const SizedBox(height: 10), diff --git a/lib/src/core/link_configuration.dart b/lib/src/core/link_configuration.dart index ff3ad19..55898fb 100644 --- a/lib/src/core/link_configuration.dart +++ b/lib/src/core/link_configuration.dart @@ -32,10 +32,14 @@ class LinkTokenConfiguration { @override bool operator ==(Object other) => - identical(this, other) || other is LinkTokenConfiguration && runtimeType == other.runtimeType && hashCode == other.hashCode; + identical(this, other) || + other is LinkTokenConfiguration && + runtimeType == other.runtimeType && + hashCode == other.hashCode; @override - int get hashCode => Object.hash(token.hashCode, noLoadingState.hashCode, receivedRedirectUri.hashCode); + int get hashCode => Object.hash( + token.hashCode, noLoadingState.hashCode, receivedRedirectUri.hashCode); } /// Data to submit during a Link session. diff --git a/lib/src/platform/plaid_flutter_web.dart b/lib/src/platform/plaid_flutter_web.dart index ac93ee3..910f21d 100644 --- a/lib/src/platform/plaid_flutter_web.dart +++ b/lib/src/platform/plaid_flutter_web.dart @@ -58,7 +58,9 @@ class PlaidFlutterPlugin extends PlaidPlatformInterface { /// onExit handler options.onExit = allowInterop((error, metadata) { - Map data = {'metadata': mapFromExitMetadata(jsToMap(metadata))}; + Map data = { + 'metadata': mapFromExitMetadata(jsToMap(metadata)) + }; if (error != null) { data["error"] = mapFromError(jsToMap(error)); @@ -134,7 +136,10 @@ class PlaidFlutterPlugin extends PlaidPlatformInterface { Map institutionMap = jsToMap(data["institution"]); - result["institution"] = {"id": institutionMap["institution_id"] ?? "", "name": institutionMap["name"] ?? ""}; + result["institution"] = { + "id": institutionMap["institution_id"] ?? "", + "name": institutionMap["name"] ?? "" + }; result["linkSessionId"] = data["link_session_id"] ?? ""; List accountsList = []; @@ -168,7 +173,10 @@ class PlaidFlutterPlugin extends PlaidPlatformInterface { if (data["institution"] != null) { Map institutionMap = jsToMap(data["institution"]); - result["institution"] = {"id": institutionMap["institution_id"] ?? "", "name": institutionMap["name"] ?? ""}; + result["institution"] = { + "id": institutionMap["institution_id"] ?? "", + "name": institutionMap["name"] ?? "" + }; } return result;