{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/386","labels_url":"https://api.github.com/repos/dart-lang/dart_style/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dart_style/issues/386/comments","events_url":"https://api.github.com/repos/dart-lang/dart_style/issues/386/events","html_url":"https://github.com/dart-lang/dart_style/issues/386","id":95228409,"number":386,"title":"When parameters span lines, each should get own line","user":{"login":"seaneagan","id":444270,"avatar_url":"https://avatars.githubusercontent.com/u/444270?v=3","gravatar_id":"","url":"https://api.github.com/users/seaneagan","html_url":"https://github.com/seaneagan","followers_url":"https://api.github.com/users/seaneagan/followers","following_url":"https://api.github.com/users/seaneagan/following{/other_user}","gists_url":"https://api.github.com/users/seaneagan/gists{/gist_id}","starred_url":"https://api.github.com/users/seaneagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seaneagan/subscriptions","organizations_url":"https://api.github.com/users/seaneagan/orgs","repos_url":"https://api.github.com/users/seaneagan/repos","events_url":"https://api.github.com/users/seaneagan/events{/privacy}","received_events_url":"https://api.github.com/users/seaneagan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T15:53:50Z","updated_at":"2015-07-15T15:53:50Z","closed_at":null,"body":"Actual (as of e845f631cb9d2f5c5011e0ede186a3aea662ae77):\r\n\r\n```dart\r\nwithNamed(List<String> required1, bool required2,\r\n    {int named1: 0, bool named2: false, String named3}) {}\r\n\r\nwithOptionalPositionals(List<String> required1, bool required2,\r\n    [int named1 = 0, bool named2 = false, String named3]) {}\r\n```\r\n\r\nExpected:\r\n\r\n```dart\r\nwithNamed(\r\n    List<String> required1,\r\n    bool required2,\r\n    {int named1: 0,\r\n     bool named2: false,\r\n     String named3}) {}\r\n\r\nwithOptionalPositionals(\r\n    List<String> required1,\r\n    bool required2,\r\n    [int named1 = 0,\r\n     bool named2 = false,\r\n     String named3]) {}\r\n```\r\n\r\nAlso note the extra one character indent for optional parameters to account for the opening delimiter (\"{\" or \"[\")."}}