Open cgarciae opened 9 years ago
They are "protected", not private. Dart doesn't support protected properties, so I just added _
suffix to make it possible to reuse them when overriding data
setter, for example:
class LineView extends Component<RichLine> {
List<VNode> _fragments;
set data(RichLine newData) {
if (identical(data, newData)) {
if (data.isNewer(this)) {
invalidate();
}
} else {
data_ = newData;
invalidate();
}
}
...
}
This
should be like this
Wrong side of the underscore for private fields.