ColorPalette class

Constructors

ColorPalette({required String title, String? colorName, required Color primary, MaterialAccentColor? accent, int threshold = 900, bool singleColor = false, bool variantsWithBaseColor = false})

Properties

accent MaterialAccentColor?
final
colorName String?
final
hashCode int
The hash code for this object.
no setterinherited
primary Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleColor bool
final
threshold int
final
title String
final
variants List<ColorDescriptor>
latefinal

Methods

getPrimary(int? key) Color
getVariants() List<ColorDescriptor>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColorDescriptor({bool primaryColor = true}) ColorDescriptor
toString() String
A string representation of this object.
inherited

Operators

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

Constants

accentKeys → const List<int>
primaryKeys → const List<int>