LarvaTone enum

Larva Tone

Avatar Theme enumerations. Can be passed literally in LarvaArt.lockTo and LarvaArt.read. Can either be 'A' or 'B' or 'C'.

LarvaArt(
  ...
  tone: LarvaTone.A,
)
Inheritance

Constructors

LarvaTone(String literal)
const
LarvaTone.from(dynamic value)
Generate Larva Tone from a dynamic value. Supports only integer and string. String only supports valid formats which includes '-12B' or '38'
factory
LarvaTone.literal(String? slug)
Generate Larva Tone from it's literal form. Literal forms: 'A', 'a', 'B', 'b', 'C' and 'c'.
factory

Values

A → const LarvaTone

Tone A. Literal: 'A' or 'a'

const LarvaTone('A or a')
B → const LarvaTone

Tone B. Literal: 'B' or 'b'

const LarvaTone('B or b')
C → const LarvaTone

Tone C. Literal: 'C' or 'c'

const LarvaTone('C or c')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
literal String
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
themeOf(AvatarCurl curl) LarvaToneCurl
Deduce LarvaToneCurl from AvatarCurl using this tone as a request card.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

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