Swell enum

A representation of a surface's boss or how it "swells".

Consider Braille or a hammered decorative lump on a metal shield to be an example of emboss.

Flip that shield or Braille over 180°, and the inset nature of these lumps is now described as debossed.

Inheritance
Available extensions

Values

superdeboss → const Swell

Very inset as opposed to protruding.

May already appear "pressed" in the context of a interactive surface.

In terms of color, more contrasting shades compared to deboss. Correlates to, or matches intensity of color shading with, Curvature.superconcave.

deboss → const Swell

Inset as opposed to protruding.

May already appear "pressed" in the context of a interactive surface.

In terms of color, smoother fading shades compared to deboss. Correlates to, or matches intensity of color shading with, Curvature.concave.

emboss → const Swell

Represents the appearance of a protuberance or lump.

Considering the front of a credit card, the raised letters and numbers are an example of embossment.

In terms of color, smoother fading shades compared to emboss. Correlates to, or matches intensity of color shading with, Curvature.convex.

superemboss → const Swell

Represents the appearance of a large protuberance or lump.

Considering the front of a credit card, the raised letters and numbers are an example of embossment.

In terms of color, more contrasting shades compared to emboss. Correlates to, or matches intensity of color shading with, Curvature.superconvex.

Properties

degree Degree

Available on Swell, provided by the SwellUtils extension

A Degree is a simple description of whether something is "standard" or "super". In terms of Swell, either superemboss or superdeboss returns Degree.SUPER. Otherwise returns Degree.STANDARD.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isSwollen bool

Available on Swell, provided by the SwellUtils extension

Whether or not this Swell would classify as "swollen".
no setter
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
scalar double

Available on Swell, provided by the SwellUtils extension

Returns a relatively small scalar, either 1.0 or 1.5, considering degree.
no setter

Methods

divisor(int depth) double

Available on Swell, provided by the SwellUtils extension

Returns a value by which interger division may be acceptable; that is, a relatively small scalar like 1.0 or 2.0 or the passed depth itself as a neutralizing divisor.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColor(Color color, int depth) Color

Available on Swell, provided by the SwellUtils extension

Provide a required color from which this Swell may generate a corresponding shaded Color. The depth of the effect is a required int. A lower depth fades the object more into its background, while a larger one will set the object more apart by contrast.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

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