FlutterVersionManager class
A utility class that manages Flutter SDK versions.
This class provides methods to:
- Retrieve the current Flutter version.
- Switch between Flutter channels or versions.
- Integrate with FVM if available, or fall back to native Flutter SDK management.
Constructors
- FlutterVersionManager(Logger logger)
-
Creates a new FlutterVersionManager instance with the given
logger.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
Logger instance for displaying progress and warnings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCurrentVersion(
) → Future< String> - Returns the currently installed Flutter version as a string.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
switchVersion(
String version) → Future< void> -
Switches the Flutter SDK to the specified
version. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited