prefer_initializing_formals (#8797)

This commit is contained in:
Alexandre Ardhuin
2017-03-15 18:30:55 +01:00
committed by GitHub
parent f8238185cc
commit a9ba0e2f88
27 changed files with 66 additions and 97 deletions

View File

@@ -23,9 +23,8 @@ Iterable<Element> collectAllElementsFrom(Element rootElement, {
}
class _DepthFirstChildIterator implements Iterator<Element> {
_DepthFirstChildIterator(Element rootElement, bool skipOffstage)
: skipOffstage = skipOffstage,
_stack = _reverseChildrenOf(rootElement, skipOffstage).toList();
_DepthFirstChildIterator(Element rootElement, this.skipOffstage)
: _stack = _reverseChildrenOf(rootElement, skipOffstage).toList();
final bool skipOffstage;

View File

@@ -829,10 +829,9 @@ const int _kPointerDecay = -2;
class _LiveTestPointerRecord {
_LiveTestPointerRecord(
int pointer,
this.pointer,
this.position
) : pointer = pointer,
color = new HSVColor.fromAHSV(0.8, (35.0 * pointer) % 360.0, 1.0, 1.0).toColor(),
) : color = new HSVColor.fromAHSV(0.8, (35.0 * pointer) % 360.0, 1.0, 1.0).toColor(),
decay = 1;
final int pointer;
final Color color;