models/build_type library

Represents the different build types supported for the software.

This enum provides three build types:

  • debug: Represents a build type optimized for debugging.
  • profile: Represents a build type that allows profiling performance.
  • release: Represents a build type optimized for release to users.

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.