AmbiancePalette class Ambiance
Palette of ambiance colors.
Constructors
- AmbiancePalette.new({required Color dark, required Color mediumDark, required Color medium, required Color mediumLight, required Color light})
-
const
- AmbiancePalette.fromColor(Color color)
-
Creates a palette from a given Color.
factory
Properties
-
colors
→ List<
Color> -
Returns a list of all colors in the palette, from darkest to lightest.
no setter
- dark → Color
-
The darkest color, corresponding to a 0.02 luminance value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- light → Color
-
The lightest color, run through the lightColor algorithm.
final
- medium → Color
-
The medium luminance, corresponding to a 0.06 luminance value.
final
- mediumDark → Color
-
The next darkest color, corresponding to a 0.04 luminance value.
final
- mediumLight → Color
-
The next lightest color, corresponding to a 0.09 luminance value.
final
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
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