Density enum

Print density / darkness. The native API exposes 10 levels (1–10).

The original SDK's printConcentration divides this by 4 and adds 1; this plugin exposes the raw 1–10 scale so callers don't have to think about that translation.

Inheritance
Available extensions

Values

small → const Density

Lightest setting.

const Density(1)
xSmall → const Density

One step darker than small.

const Density(2)
middle → const Density

Default density.

const Density(3)
xMiddle → const Density

One step darker than middle.

const Density(4)
large → const Density

Darker than middle.

const Density(5)
xLarge → const Density

Even darker.

const Density(6)
xxLarge → const Density

Very dark.

const Density(7)
superDensity → const Density

Darker than xxLarge.

const Density(8)
xSuper → const Density

Near-maximum darkness.

const Density(9)
xxSuper → const Density

Darkest setting.

const Density(10)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Numeric value passed to the native API.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

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