BuildMode class final

The build mode for compiling native code assets.

The Dart SDK does not have build modes. All build hook invocations are invoked with release.

The Flutter SDK build modes map as the following to build hook build modes:

Constructors

BuildMode.fromString(String target)
The name of this BuildMode.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name for this build mode.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
The name of this BuildMode.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

debug → const BuildMode
The debug build mode.
release → const BuildMode
The release build mode.
values → const List<BuildMode>
All known build modes.