Enable lint prefer asserts in initializer lists (#12903)

* enable lint prefer_asserts_in_initializer_lists

* enable --assert-initializer
This commit is contained in:
Alexandre Ardhuin
2017-11-08 22:59:49 +01:00
committed by GitHub
parent a75f003b9c
commit 15601fe55c
25 changed files with 82 additions and 88 deletions

View File

@@ -33,9 +33,8 @@ final EnumIndex<HealthStatus> _healthStatusIndex =
/// [FlutterDriver.checkHealth] test.
class Health extends Result {
/// Creates a [Health] object with the given [status].
Health(this.status) {
assert(status != null);
}
Health(this.status)
: assert(status != null);
/// The status represented by this object.
///