Custom Function Removes Necessary Import Upon Saving ?

I'm trying to create a custom function that returns data based on the app mode, whether it's in release or debug mode, using "kReleaseMode" from "package:flutter/foundation.dart". However, when I try to save the function, it removes the "package:flutter/foundation.dart" import, which prevents me from saving or creating the function.

custom_function_removing_imports.webm
10.84MB

1 reply