Scheme class Null safety

Prefer ColorScheme. This class is the same concept as Flutter's ColorScheme class, inlined into libmonet to ensure parity across languages.

Constructors

Scheme({required int primary, required int onPrimary, required int primaryContainer, required int onPrimaryContainer, required int secondary, required int onSecondary, required int secondaryContainer, required int onSecondaryContainer, required int tertiary, required int onTertiary, required int tertiaryContainer, required int onTertiaryContainer, required int error, required int onError, required int errorContainer, required int onErrorContainer, required int background, required int onBackground, required int surface, required int onSurface, required int surfaceVariant, required int onSurfaceVariant, required int outline, required int shadow, required int inverseSurface, required int inverseOnSurface, required int inversePrimary})
const

Properties

background int
final
error int
final
errorContainer int
final
hashCode int
The hash code for this object.
read-onlyinherited
inverseOnSurface int
final
inversePrimary int
final
inverseSurface int
final
onBackground int
final
onError int
final
onErrorContainer int
final
onPrimary int
final
onPrimaryContainer int
final
onSecondary int
final
onSecondaryContainer int
final
onSurface int
final
onSurfaceVariant int
final
onTertiary int
final
onTertiaryContainer int
final
outline int
final
primary int
final
primaryContainer int
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
secondary int
final
secondaryContainer int
final
shadow int
final
surface int
final
surfaceVariant int
final
tertiary int
final
tertiaryContainer int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

dark(int color) Scheme
darkFromCorePalette(CorePalette palette) Scheme
light(int color) Scheme
lightFromCorePalette(CorePalette palette) Scheme