BuildMode enum

Build mode enum

  • release - Release build mode
  • profile - Profile build mode
  • debug - Debug build mode
Inheritance

Constructors

BuildMode()
Build mode enum
const

Values

release → const BuildMode

Release build mode

profile → const BuildMode

Profile build mode

debug → const BuildMode

Debug build mode

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isDebug bool
Is debug build mode
no setter
isProfile bool
Is profile build mode
no setter
isRelease bool
Is release build mode
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

maybeWhen<BuildModeResult extends Object?>({required BuildModeResult orElse(), BuildModeResult release()?, BuildModeResult profile()?, BuildModeResult debug()?}) → BuildModeResult
Run callback on specific build mode, if not specified run orElse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<BuildModeResult extends Object?>({required BuildModeResult release(), required BuildModeResult profile(), required BuildModeResult debug()}) → BuildModeResult
Run callback on specific build mode

Operators

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

Constants

values → const List<BuildMode>
A constant List of the values in this enum, in order of their declaration.