ColorPalette class Null safety

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. [...]
read-only, inherited
primary Color
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
singleColor bool
final
threshold int
final
title String
final
variants List<ColorDescriptor>
late, final

Methods

getPrimary(int? key) Color
getVariants() List<ColorDescriptor>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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>
<int>[100, 200, 400, 700]
primaryKeys → const List<int>
<int>[50, 100, 200, 300, 400, 500, 600, 700, 800, 900]