Use installed Flutter version for building, instead of downloading afresh

When snapcraft command, the Flutter channel specified in snapcraft.yaml will be downloaded and installed, regardless if it’s already present on a system or not

Is it considered wrong to use the existing version instead of downloading a new one?

It seems ideal to specify path to the installed Flutter in extensions section in snapcraft.yaml

Something along

apps:
  flutter-example:
    command: flutter_example
    extensions: [/path/to/flutter]

Perhaps, there is an alternative option to use the existing Flutter version

The background issue. In CI/CD environment Flutter comes pre-installed, I am trying to save some time during the build

The extension sets up the environment, you can “snapcraft expand-extensions” and copy that into your snapcraft.yaml and make the appropriate modifications