Fixed dart_analyzer warnings