observe/polymer: Uppercase and refactor annotation names #52
Description
<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="96" height="96"hspace="10"> Issue by seaneagan
Originally opened as dart-lang/sdk#15159
issue dart-lang/sdk#0 argued for upper casing the dart:core annotations, but looks like there just wasn't enough time to make that change before 1.0. However, it's not too late to make the same change for observe/polymer:
@observable
@reflectable
@published
->
@observed()
@Reflected()
@published()
and then hopefully later fix issue dart-lang/sdk#2 shortening them to:
@observed
@Reflected
@published
Removing the 'Property' suffix from PublishedProperty and ObservableProperty makes them consistent with the current Reflectable, which could allow them to also be used at the class level to mark all properties as such. And since @Observable doesn't work, the 'able' suffix doesn't work, but the 'ed' suffix seems to work in all cases, and (FWIW) matches Deprecated.