{"action":"created","issue":{"url":"https://api.github.com/repos/pauldemarco/flutter_blue/issues/51","repository_url":"https://api.github.com/repos/pauldemarco/flutter_blue","labels_url":"https://api.github.com/repos/pauldemarco/flutter_blue/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/pauldemarco/flutter_blue/issues/51/comments","events_url":"https://api.github.com/repos/pauldemarco/flutter_blue/issues/51/events","html_url":"https://github.com/pauldemarco/flutter_blue/issues/51","id":306181438,"node_id":"MDU6SXNzdWUzMDYxODE0Mzg=","number":51,"title":"Dart 2 invokeMethod compatibility","user":{"login":"xqwzts","id":798935,"node_id":"MDQ6VXNlcjc5ODkzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/798935?v=4","gravatar_id":"","url":"https://api.github.com/users/xqwzts","html_url":"https://github.com/xqwzts","followers_url":"https://api.github.com/users/xqwzts/followers","following_url":"https://api.github.com/users/xqwzts/following{/other_user}","gists_url":"https://api.github.com/users/xqwzts/gists{/gist_id}","starred_url":"https://api.github.com/users/xqwzts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xqwzts/subscriptions","organizations_url":"https://api.github.com/users/xqwzts/orgs","repos_url":"https://api.github.com/users/xqwzts/repos","events_url":"https://api.github.com/users/xqwzts/events{/privacy}","received_events_url":"https://api.github.com/users/xqwzts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"pauldemarco","id":16725750,"node_id":"MDQ6VXNlcjE2NzI1NzUw","avatar_url":"https://avatars2.githubusercontent.com/u/16725750?v=4","gravatar_id":"","url":"https://api.github.com/users/pauldemarco","html_url":"https://github.com/pauldemarco","followers_url":"https://api.github.com/users/pauldemarco/followers","following_url":"https://api.github.com/users/pauldemarco/following{/other_user}","gists_url":"https://api.github.com/users/pauldemarco/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldemarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldemarco/subscriptions","organizations_url":"https://api.github.com/users/pauldemarco/orgs","repos_url":"https://api.github.com/users/pauldemarco/repos","events_url":"https://api.github.com/users/pauldemarco/events{/privacy}","received_events_url":"https://api.github.com/users/pauldemarco/received_events","type":"User","site_admin":false},"assignees":[{"login":"pauldemarco","id":16725750,"node_id":"MDQ6VXNlcjE2NzI1NzUw","avatar_url":"https://avatars2.githubusercontent.com/u/16725750?v=4","gravatar_id":"","url":"https://api.github.com/users/pauldemarco","html_url":"https://github.com/pauldemarco","followers_url":"https://api.github.com/users/pauldemarco/followers","following_url":"https://api.github.com/users/pauldemarco/following{/other_user}","gists_url":"https://api.github.com/users/pauldemarco/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldemarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldemarco/subscriptions","organizations_url":"https://api.github.com/users/pauldemarco/orgs","repos_url":"https://api.github.com/users/pauldemarco/repos","events_url":"https://api.github.com/users/pauldemarco/events{/privacy}","received_events_url":"https://api.github.com/users/pauldemarco/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-17T18:59:15Z","updated_at":"2018-10-08T15:58:31Z","closed_at":"2018-04-02T15:34:07Z","author_association":"NONE","body":"With the upcoming Dart 2 changes we will run into errors when returning anything other than `Future<dynamic>` from `invokeMethod` calls.\r\n\r\nCalls like:\r\n```dart\r\nFuture<bool> get isOn => _channel.invokeMethod('isOn');\r\n```\r\n\r\nNeed to be updated to:\r\n```dart\r\nFuture<bool> get isOn async {\r\n final bool isOn = await _channel.invokeMethod('isOn');\r\n return isOn;\r\n}\r\n```\r\n\r\nMore details in this issue: https://github.com/flutter/flutter/issues/15654"},"comment":{"url":"https://api.github.com/repos/pauldemarco/flutter_blue/issues/comments/427888607","html_url":"https://github.com/pauldemarco/flutter_blue/issues/51#issuecomment-427888607","issue_url":"https://api.github.com/repos/pauldemarco/flutter_blue/issues/51","id":427888607,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzg4ODYwNw==","user":{"login":"itavero","id":203398,"node_id":"MDQ6VXNlcjIwMzM5OA==","avatar_url":"https://avatars1.githubusercontent.com/u/203398?v=4","gravatar_id":"","url":"https://api.github.com/users/itavero","html_url":"https://github.com/itavero","followers_url":"https://api.github.com/users/itavero/followers","following_url":"https://api.github.com/users/itavero/following{/other_user}","gists_url":"https://api.github.com/users/itavero/gists{/gist_id}","starred_url":"https://api.github.com/users/itavero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itavero/subscriptions","organizations_url":"https://api.github.com/users/itavero/orgs","repos_url":"https://api.github.com/users/itavero/repos","events_url":"https://api.github.com/users/itavero/events{/privacy}","received_events_url":"https://api.github.com/users/itavero/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T15:58:31Z","updated_at":"2018-10-08T15:58:31Z","author_association":"NONE","body":"I think this issue needs to be reopened, as I am still getting errors when using `isOn` or `isAvailable` in v0.4.0."}}
{"actor":{"display_login":"itavero"}}