ColorScheme class Null safety

Implementers
Annotations
  • @freezed

Constructors

ColorScheme({required Brightness brightness, required Color primary, required Color onPrimary, Color? primaryContainer, Color? onPrimaryContainer, required Color secondary, required Color onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, required Color error, required Color onError, Color? errorContainer, Color? onErrorContainer, required Color background, required Color onBackground, required Color surface, required Color onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? outline, Color? outlineVariant, Color? shadow, Color? scrim, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? surfaceTint})
const
factory
ColorScheme.fromJson(Map<String, Object?> json)
factory
ColorScheme.fromSeed({required Color seedColor, @Default(Brightness.light) Brightness brightness, Color? primary, Color? onPrimary, Color? primaryContainer, Color? onPrimaryContainer, Color? secondary, Color? onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, Color? error, Color? onError, Color? errorContainer, Color? onErrorContainer, Color? outline, Color? outlineVariant, Color? background, Color? onBackground, Color? surface, Color? onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? shadow, Color? scrim, Color? surfaceTint})
const
factory

Properties

background Color?
read-only, inherited
brightness Brightness
read-only, inherited
copyWith → $ColorSchemeCopyWith<ColorScheme>
@JsonKey(ignore: true), read-only, inherited
error Color?
read-only, inherited
errorContainer Color?
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
inversePrimary Color?
read-only, inherited
inverseSurface Color?
read-only, inherited
onBackground Color?
read-only, inherited
onError Color?
read-only, inherited
onErrorContainer Color?
read-only, inherited
onInverseSurface Color?
read-only, inherited
onPrimary Color?
read-only, inherited
onPrimaryContainer Color?
read-only, inherited
onSecondary Color?
read-only, inherited
onSecondaryContainer Color?
read-only, inherited
onSurface Color?
read-only, inherited
onSurfaceVariant Color?
read-only, inherited
onTertiary Color?
read-only, inherited
onTertiaryContainer Color?
read-only, inherited
outline Color?
read-only, inherited
outlineVariant Color?
read-only, inherited
primary Color?
read-only, inherited
primaryContainer Color?
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scrim Color?
read-only, inherited
secondary Color?
read-only, inherited
secondaryContainer Color?
read-only, inherited
shadow Color?
read-only, inherited
surface Color?
read-only, inherited
surfaceTint Color?
read-only, inherited
surfaceVariant Color?
read-only, inherited
tertiary Color?
read-only, inherited
tertiaryContainer Color?
read-only, inherited

Methods

map<TResult extends Object?>(TResult $default(_ColorScheme value), {required TResult fromSeed(ColorSchemeFromSeed value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>(TResult? $default(_ColorScheme value)?, {TResult? fromSeed(ColorSchemeFromSeed value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>(TResult $default(_ColorScheme value)?, {TResult fromSeed(ColorSchemeFromSeed value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>(TResult $default(Brightness brightness, Color primary, Color onPrimary, Color? primaryContainer, Color? onPrimaryContainer, Color secondary, Color onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, Color error, Color onError, Color? errorContainer, Color? onErrorContainer, Color background, Color onBackground, Color surface, Color onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? outline, Color? outlineVariant, Color? shadow, Color? scrim, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? surfaceTint)?, {TResult fromSeed(Color seedColor, Brightness brightness, Color? primary, Color? onPrimary, Color? primaryContainer, Color? onPrimaryContainer, Color? secondary, Color? onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, Color? error, Color? onError, Color? errorContainer, Color? onErrorContainer, Color? outline, Color? outlineVariant, Color? background, Color? onBackground, Color? surface, Color? onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? shadow, Color? scrim, Color? surfaceTint)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(Brightness brightness, Color primary, Color onPrimary, Color? primaryContainer, Color? onPrimaryContainer, Color secondary, Color onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, Color error, Color onError, Color? errorContainer, Color? onErrorContainer, Color background, Color onBackground, Color surface, Color onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? outline, Color? outlineVariant, Color? shadow, Color? scrim, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? surfaceTint), {required TResult fromSeed(Color seedColor, Brightness brightness, Color? primary, Color? onPrimary, Color? primaryContainer, Color? onPrimaryContainer, Color? secondary, Color? onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, Color? error, Color? onError, Color? errorContainer, Color? onErrorContainer, Color? outline, Color? outlineVariant, Color? background, Color? onBackground, Color? surface, Color? onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? shadow, Color? scrim, Color? surfaceTint)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>(TResult? $default(Brightness brightness, Color primary, Color onPrimary, Color? primaryContainer, Color? onPrimaryContainer, Color secondary, Color onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, Color error, Color onError, Color? errorContainer, Color? onErrorContainer, Color background, Color onBackground, Color surface, Color onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? outline, Color? outlineVariant, Color? shadow, Color? scrim, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? surfaceTint)?, {TResult? fromSeed(Color seedColor, Brightness brightness, Color? primary, Color? onPrimary, Color? primaryContainer, Color? onPrimaryContainer, Color? secondary, Color? onSecondary, Color? secondaryContainer, Color? onSecondaryContainer, Color? tertiary, Color? onTertiary, Color? tertiaryContainer, Color? onTertiaryContainer, Color? error, Color? onError, Color? errorContainer, Color? onErrorContainer, Color? outline, Color? outlineVariant, Color? background, Color? onBackground, Color? surface, Color? onSurface, Color? surfaceVariant, Color? onSurfaceVariant, Color? inverseSurface, Color? onInverseSurface, Color? inversePrimary, Color? shadow, Color? scrim, Color? surfaceTint)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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