OptimizationLevel class final
Optimization level for code compilation.
For more information refer to compiler documentation:
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clangFlag(
) → String -
msvcFlag(
) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the string representation of the optimization level.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- o0 → const OptimizationLevel
- No optimization; prioritize fast compilation.
- o1 → const OptimizationLevel
- Basic optimizations; balance compilation speed and code size.
- o2 → const OptimizationLevel
- More aggressive optimizations; prioritize code size reduction.
- o3 → const OptimizationLevel
- The most aggressive optimizations; prioritize runtime performance.
- oS → const OptimizationLevel
- Optimize for code size, even if it impacts runtime performance.
- unspecified → const OptimizationLevel
- Unspecified optimization level; the default or compiler-chosen level.
-
values
→ const List<
OptimizationLevel>