@@ -14,12 +14,18 @@ enum ChirpState {
1414
1515class ChirpSDK {
1616 static const MethodChannel _methods = const MethodChannel ('chirp.io/methods' );
17- static const EventChannel _stateEvents = const EventChannel ('chirp.io/events/state' );
18- static const EventChannel _sendingEvents = const EventChannel ('chirp.io/events/sending' );
19- static const EventChannel _sentEvents = const EventChannel ('chirp.io/events/sent' );
20- static const EventChannel _receivingEvents = const EventChannel ('chirp.io/events/receiving' );
21- static const EventChannel _receivedEvents = const EventChannel ('chirp.io/events/received' );
22- static const EventChannel _errorEvents = const EventChannel ('chirp.io/events/errors' );
17+ static const EventChannel _stateEvents =
18+ const EventChannel ('chirp.io/events/state' );
19+ static const EventChannel _sendingEvents =
20+ const EventChannel ('chirp.io/events/sending' );
21+ static const EventChannel _sentEvents =
22+ const EventChannel ('chirp.io/events/sent' );
23+ static const EventChannel _receivingEvents =
24+ const EventChannel ('chirp.io/events/receiving' );
25+ static const EventChannel _receivedEvents =
26+ const EventChannel ('chirp.io/events/received' );
27+ static const EventChannel _errorEvents =
28+ const EventChannel ('chirp.io/events/errors' );
2329
2430 /// Initialise the ChirpSDK
2531 ///
@@ -28,7 +34,7 @@ class ChirpSDK {
2834 ///
2935 /// [1] : https://developers.chirp.io
3036 static Future <void > init (String key, String secret) async {
31- var parameters = { 'key' : key, 'secret' : secret };
37+ var parameters = {'key' : key, 'secret' : secret};
3238 await _methods.invokeMethod ('init' , new Map .from (parameters));
3339 }
3440
@@ -140,7 +146,7 @@ class ChirpSDK {
140146 static ChirpStateEvent _stateEvent (dynamic map) {
141147 if (map is Map ) {
142148 return new ChirpStateEvent (ChirpState .values[map['previous' ]],
143- ChirpState .values[map['current' ]]);
149+ ChirpState .values[map['current' ]]);
144150 }
145151 return null ;
146152 }
0 commit comments