models/build_type library
Represents the different build types supported for the software.
This enum provides three build types:
release: Represents a build type optimized for release to users.profile: Represents a build type that allows profiling performance.debug: Represents a build type optimized for debugging.
The dirName getter returns the capitalized directory name associated with each build type.
The fromArgs static method parses command-line arguments using ArgResults and
determines the desired BuildType. If multiple flags are present, it prioritizes
release over profile over debug.
Example usage:
var buildType = BuildType.fromArgs(argResults);
print('Selected build type: ${buildType.dirName}');
Enums
- BuildType
- An enum representing the different build types supported for the software.