Trying to use Gradient.sweep() and but the analyzer error appears no matter how I import it Dart VM version: 2.0.0-dev.58.0.flutter-f981f09760 (Sat May 26 03:16:14 2018 +0000) on "windows_x64" similar to #28023 and #28226