Skip to content

Commit

Permalink
Corrected dart types
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir committed Oct 20, 2018
1 parent cbda712 commit ee1f234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flutter_billing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class BillingProduct {
}

/// A billing error callback to be called when any of billing operations fail.
typedef void BillingErrorCallback(Exception e);
typedef void BillingErrorCallback(dynamic e);

/// Billing plugin to enable communication with billing API in iOS and Android.
class Billing {
Expand Down Expand Up @@ -112,7 +112,7 @@ class Billing {
}
return _lock.synchronized(() async {
try {
final products = Map.fromIterable(
final products = Map<String, BillingProduct>.fromIterable(
await _channel.invokeMethod(method, {'identifiers': identifiers}),
key: (product) => product['identifier'],
value: (product) => BillingProduct(
Expand Down

0 comments on commit ee1f234

Please sign in to comment.