CustomColors class
Defines a set of custom colors, each comprised of 4 complementary tones.
See also:
- Inheritance
-
- Object
- ThemeExtension<
CustomColors> - CustomColors
- Annotations
Constructors
- CustomColors({required Color? sourceTextprimary, required Color? textprimary, required Color? onTextprimary, required Color? textprimaryContainer, required Color? onTextprimaryContainer, required Color? sourceTextsecondary, required Color? textsecondary, required Color? onTextsecondary, required Color? textsecondaryContainer, required Color? onTextsecondaryContainer, required Color? sourceTextdisabled, required Color? textdisabled, required Color? onTextdisabled, required Color? textdisabledContainer, required Color? onTextdisabledContainer, required Color? sourcePrimarymain, required Color? primarymain, required Color? onPrimarymain, required Color? primarymainContainer, required Color? onPrimarymainContainer, required Color? sourcePrimarydark, required Color? primarydark, required Color? onPrimarydark, required Color? primarydarkContainer, required Color? onPrimarydarkContainer, required Color? sourcePrimarylight, required Color? primarylight, required Color? onPrimarylight, required Color? primarylightContainer, required Color? onPrimarylightContainer, required Color? sourcePrimarycontrast, required Color? primarycontrast, required Color? onPrimarycontrast, required Color? primarycontrastContainer, required Color? onPrimarycontrastContainer, required Color? sourcePrimaryhover, required Color? primaryhover, required Color? onPrimaryhover, required Color? primaryhoverContainer, required Color? onPrimaryhoverContainer, required Color? sourcePrimaryselected, required Color? primaryselected, required Color? onPrimaryselected, required Color? primaryselectedContainer, required Color? onPrimaryselectedContainer, required Color? sourcePrimaryfocus, required Color? primaryfocus, required Color? onPrimaryfocus, required Color? primaryfocusContainer, required Color? onPrimaryfocusContainer, required Color? sourcePrimaryoutlinedborder, required Color? primaryoutlinedborder, required Color? onPrimaryoutlinedborder, required Color? primaryoutlinedborderContainer, required Color? onPrimaryoutlinedborderContainer, required Color? sourceSecondarymain, required Color? secondarymain, required Color? onSecondarymain, required Color? secondarymainContainer, required Color? onSecondarymainContainer, required Color? sourceSecondarydark, required Color? secondarydark, required Color? onSecondarydark, required Color? secondarydarkContainer, required Color? onSecondarydarkContainer, required Color? sourceSecondarylight, required Color? secondarylight, required Color? onSecondarylight, required Color? secondarylightContainer, required Color? onSecondarylightContainer, required Color? sourceErrormain, required Color? errormain, required Color? onErrormain, required Color? errormainContainer, required Color? onErrormainContainer, required Color? sourceErrordark, required Color? errordark, required Color? onErrordark, required Color? errordarkContainer, required Color? onErrordarkContainer, required Color? sourceErrorlight, required Color? errorlight, required Color? onErrorlight, required Color? errorlightContainer, required Color? onErrorlightContainer, required Color? sourceErrorconstant, required Color? errorconstant, required Color? onErrorconstant, required Color? errorconstantContainer, required Color? onErrorconstantContainer, required Color? sourceWarningmain, required Color? warningmain, required Color? onWarningmain, required Color? warningmainContainer, required Color? onWarningmainContainer, required Color? sourceWarningdark, required Color? warningdark, required Color? onWarningdark, required Color? warningdarkContainer, required Color? onWarningdarkContainer, required Color? sourceWarninglight, required Color? warninglight, required Color? onWarninglight, required Color? warninglightContainer, required Color? onWarninglightContainer, required Color? sourceInfomain, required Color? infomain, required Color? onInfomain, required Color? infomainContainer, required Color? onInfomainContainer, required Color? sourceInfodark, required Color? infodark, required Color? onInfodark, required Color? infodarkContainer, required Color? onInfodarkContainer, required Color? sourceInfolight, required Color? infolight, required Color? onInfolight, required Color? infolightContainer, required Color? onInfolightContainer, required Color? sourceInfocontrast, required Color? infocontrast, required Color? onInfocontrast, required Color? infocontrastContainer, required Color? onInfocontrastContainer, required Color? sourceSuccessmain, required Color? successmain, required Color? onSuccessmain, required Color? successmainContainer, required Color? onSuccessmainContainer, required Color? sourceSuccessdark, required Color? successdark, required Color? onSuccessdark, required Color? successdarkContainer, required Color? onSuccessdarkContainer, required Color? sourceSuccesslight, required Color? successlight, required Color? onSuccesslight, required Color? successlightContainer, required Color? onSuccesslightContainer, required Color? sourceSuccesscontrast, required Color? successcontrast, required Color? onSuccesscontrast, required Color? successcontrastContainer, required Color? onSuccesscontrastContainer, required Color? sourceBackgrounddefault, required Color? backgrounddefault, required Color? onBackgrounddefault, required Color? backgrounddefaultContainer, required Color? onBackgrounddefaultContainer, required Color? sourceDivider, required Color? divider, required Color? onDivider, required Color? dividerContainer, required Color? onDividerContainer, required Color? sourceCommonwhite, required Color? commonwhite, required Color? onCommonwhite, required Color? commonwhiteContainer, required Color? onCommonwhiteContainer, required Color? sourceCommonblack, required Color? surfaceContainerLowest, required Color? surfaceContainerLow, required Color? surfaceContainer, required Color? surfaceContainerHigh, required Color? surfaceContainerHieghest})
-
const
Properties
- backgrounddefault → Color?
-
final
- backgrounddefaultContainer → Color?
-
final
- commonwhite → Color?
-
final
- commonwhiteContainer → Color?
-
final
- divider → Color?
-
final
- dividerContainer → Color?
-
final
- errorconstant → Color?
-
final
- errorconstantContainer → Color?
-
final
- errordark → Color?
-
final
- errordarkContainer → Color?
-
final
- errorlight → Color?
-
final
- errorlightContainer → Color?
-
final
- errormain → Color?
-
final
- errormainContainer → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- infocontrast → Color?
-
final
- infocontrastContainer → Color?
-
final
- infodark → Color?
-
final
- infodarkContainer → Color?
-
final
- infolight → Color?
-
final
- infolightContainer → Color?
-
final
- infomain → Color?
-
final
- infomainContainer → Color?
-
final
- onBackgrounddefault → Color?
-
final
- onBackgrounddefaultContainer → Color?
-
final
- onCommonwhite → Color?
-
final
- onCommonwhiteContainer → Color?
-
final
- onDivider → Color?
-
final
- onDividerContainer → Color?
-
final
- onErrorconstant → Color?
-
final
- onErrorconstantContainer → Color?
-
final
- onErrordark → Color?
-
final
- onErrordarkContainer → Color?
-
final
- onErrorlight → Color?
-
final
- onErrorlightContainer → Color?
-
final
- onErrormain → Color?
-
final
- onErrormainContainer → Color?
-
final
- onInfocontrast → Color?
-
final
- onInfocontrastContainer → Color?
-
final
- onInfodark → Color?
-
final
- onInfodarkContainer → Color?
-
final
- onInfolight → Color?
-
final
- onInfolightContainer → Color?
-
final
- onInfomain → Color?
-
final
- onInfomainContainer → Color?
-
final
- onPrimarycontrast → Color?
-
final
- onPrimarycontrastContainer → Color?
-
final
- onPrimarydark → Color?
-
final
- onPrimarydarkContainer → Color?
-
final
- onPrimaryfocus → Color?
-
final
- onPrimaryfocusContainer → Color?
-
final
- onPrimaryhover → Color?
-
final
- onPrimaryhoverContainer → Color?
-
final
- onPrimarylight → Color?
-
final
- onPrimarylightContainer → Color?
-
final
- onPrimarymain → Color?
-
final
- onPrimarymainContainer → Color?
-
final
- onPrimaryoutlinedborder → Color?
-
final
- onPrimaryoutlinedborderContainer → Color?
-
final
- onPrimaryselected → Color?
-
final
- onPrimaryselectedContainer → Color?
-
final
- onSecondarydark → Color?
-
final
- onSecondarydarkContainer → Color?
-
final
- onSecondarylight → Color?
-
final
- onSecondarylightContainer → Color?
-
final
- onSecondarymain → Color?
-
final
- onSecondarymainContainer → Color?
-
final
- onSuccesscontrast → Color?
-
final
- onSuccesscontrastContainer → Color?
-
final
- onSuccessdark → Color?
-
final
- onSuccessdarkContainer → Color?
-
final
- onSuccesslight → Color?
-
final
- onSuccesslightContainer → Color?
-
final
- onSuccessmain → Color?
-
final
- onSuccessmainContainer → Color?
-
final
- onTextdisabled → Color?
-
final
- onTextdisabledContainer → Color?
-
final
- onTextprimary → Color?
-
final
- onTextprimaryContainer → Color?
-
final
- onTextsecondary → Color?
-
final
- onTextsecondaryContainer → Color?
-
final
- onWarningdark → Color?
-
final
- onWarningdarkContainer → Color?
-
final
- onWarninglight → Color?
-
final
- onWarninglightContainer → Color?
-
final
- onWarningmain → Color?
-
final
- onWarningmainContainer → Color?
-
final
- primarycontrast → Color?
-
final
- primarycontrastContainer → Color?
-
final
- primarydark → Color?
-
final
- primarydarkContainer → Color?
-
final
- primaryfocus → Color?
-
final
- primaryfocusContainer → Color?
-
final
- primaryhover → Color?
-
final
- primaryhoverContainer → Color?
-
final
- primarylight → Color?
-
final
- primarylightContainer → Color?
-
final
- primarymain → Color?
-
final
- primarymainContainer → Color?
-
final
- primaryoutlinedborder → Color?
-
final
- primaryoutlinedborderContainer → Color?
-
final
- primaryselected → Color?
-
final
- primaryselectedContainer → Color?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondarydark → Color?
-
final
- secondarydarkContainer → Color?
-
final
- secondarylight → Color?
-
final
- secondarylightContainer → Color?
-
final
- secondarymain → Color?
-
final
- secondarymainContainer → Color?
-
final
- sourceBackgrounddefault → Color?
-
final
- sourceCommonblack → Color?
-
final
- sourceCommonwhite → Color?
-
final
- sourceDivider → Color?
-
final
- sourceErrorconstant → Color?
-
final
- sourceErrordark → Color?
-
final
- sourceErrorlight → Color?
-
final
- sourceErrormain → Color?
-
final
- sourceInfocontrast → Color?
-
final
- sourceInfodark → Color?
-
final
- sourceInfolight → Color?
-
final
- sourceInfomain → Color?
-
final
- sourcePrimarycontrast → Color?
-
final
- sourcePrimarydark → Color?
-
final
- sourcePrimaryfocus → Color?
-
final
- sourcePrimaryhover → Color?
-
final
- sourcePrimarylight → Color?
-
final
- sourcePrimarymain → Color?
-
final
- sourcePrimaryoutlinedborder → Color?
-
final
- sourcePrimaryselected → Color?
-
final
- sourceSecondarydark → Color?
-
final
- sourceSecondarylight → Color?
-
final
- sourceSecondarymain → Color?
-
final
- sourceSuccesscontrast → Color?
-
final
- sourceSuccessdark → Color?
-
final
- sourceSuccesslight → Color?
-
final
- sourceSuccessmain → Color?
-
final
- sourceTextdisabled → Color?
-
final
- sourceTextprimary → Color?
-
final
- sourceTextsecondary → Color?
-
final
- sourceWarningdark → Color?
-
final
- sourceWarninglight → Color?
-
final
- sourceWarningmain → Color?
-
final
- successcontrast → Color?
-
final
- successcontrastContainer → Color?
-
final
- successdark → Color?
-
final
- successdarkContainer → Color?
-
final
- successlight → Color?
-
final
- successlightContainer → Color?
-
final
- successmain → Color?
-
final
- successmainContainer → Color?
-
final
- surfaceContainer → Color?
-
final
- surfaceContainerHieghest → Color?
-
final
- surfaceContainerHigh → Color?
-
final
- surfaceContainerLow → Color?
-
final
- surfaceContainerLowest → Color?
-
final
- textdisabled → Color?
-
final
- textdisabledContainer → Color?
-
final
- textprimary → Color?
-
final
- textprimaryContainer → Color?
-
final
- textsecondary → Color?
-
final
- textsecondaryContainer → Color?
-
final
- type → Object
-
The extension's type.
no setterinherited
- warningdark → Color?
-
final
- warningdarkContainer → Color?
-
final
- warninglight → Color?
-
final
- warninglightContainer → Color?
-
final
- warningmain → Color?
-
final
- warningmainContainer → Color?
-
final
Methods
-
copyWith(
{Color? sourceTextprimary, Color? textprimary, Color? onTextprimary, Color? textprimaryContainer, Color? onTextprimaryContainer, Color? sourceTextsecondary, Color? textsecondary, Color? onTextsecondary, Color? textsecondaryContainer, Color? onTextsecondaryContainer, Color? sourceTextdisabled, Color? textdisabled, Color? onTextdisabled, Color? textdisabledContainer, Color? onTextdisabledContainer, Color? sourcePrimarymain, Color? primarymain, Color? onPrimarymain, Color? primarymainContainer, Color? onPrimarymainContainer, Color? sourcePrimarydark, Color? primarydark, Color? onPrimarydark, Color? primarydarkContainer, Color? onPrimarydarkContainer, Color? sourcePrimarylight, Color? primarylight, Color? onPrimarylight, Color? primarylightContainer, Color? onPrimarylightContainer, Color? sourcePrimarycontrast, Color? primarycontrast, Color? onPrimarycontrast, Color? primarycontrastContainer, Color? onPrimarycontrastContainer, Color? sourcePrimaryhover, Color? primaryhover, Color? onPrimaryhover, Color? primaryhoverContainer, Color? onPrimaryhoverContainer, Color? sourcePrimaryselected, Color? primaryselected, Color? onPrimaryselected, Color? primaryselectedContainer, Color? onPrimaryselectedContainer, Color? sourcePrimaryfocus, Color? primaryfocus, Color? onPrimaryfocus, Color? primaryfocusContainer, Color? onPrimaryfocusContainer, Color? sourcePrimaryoutlinedborder, Color? primaryoutlinedborder, Color? onPrimaryoutlinedborder, Color? primaryoutlinedborderContainer, Color? onPrimaryoutlinedborderContainer, Color? sourceSecondarymain, Color? secondarymain, Color? onSecondarymain, Color? secondarymainContainer, Color? onSecondarymainContainer, Color? sourceSecondarydark, Color? secondarydark, Color? onSecondarydark, Color? secondarydarkContainer, Color? onSecondarydarkContainer, Color? sourceSecondarylight, Color? secondarylight, Color? onSecondarylight, Color? secondarylightContainer, Color? onSecondarylightContainer, Color? sourceErrormain, Color? errormain, Color? onErrormain, Color? errormainContainer, Color? onErrormainContainer, Color? sourceErrordark, Color? errordark, Color? onErrordark, Color? errordarkContainer, Color? onErrordarkContainer, Color? sourceErrorlight, Color? errorlight, Color? onErrorlight, Color? errorlightContainer, Color? onErrorlightContainer, Color? sourceErrorconstant, Color? errorconstant, Color? onErrorconstant, Color? errorconstantContainer, Color? onErrorconstantContainer, Color? sourceWarningmain, Color? warningmain, Color? onWarningmain, Color? warningmainContainer, Color? onWarningmainContainer, Color? sourceWarningdark, Color? warningdark, Color? onWarningdark, Color? warningdarkContainer, Color? onWarningdarkContainer, Color? sourceWarninglight, Color? warninglight, Color? onWarninglight, Color? warninglightContainer, Color? onWarninglightContainer, Color? sourceInfomain, Color? infomain, Color? onInfomain, Color? infomainContainer, Color? onInfomainContainer, Color? sourceInfodark, Color? infodark, Color? onInfodark, Color? infodarkContainer, Color? onInfodarkContainer, Color? sourceInfolight, Color? infolight, Color? onInfolight, Color? infolightContainer, Color? onInfolightContainer, Color? sourceInfocontrast, Color? infocontrast, Color? onInfocontrast, Color? infocontrastContainer, Color? onInfocontrastContainer, Color? sourceSuccessmain, Color? successmain, Color? onSuccessmain, Color? successmainContainer, Color? onSuccessmainContainer, Color? sourceSuccessdark, Color? successdark, Color? onSuccessdark, Color? successdarkContainer, Color? onSuccessdarkContainer, Color? sourceSuccesslight, Color? successlight, Color? onSuccesslight, Color? successlightContainer, Color? onSuccesslightContainer, Color? sourceSuccesscontrast, Color? successcontrast, Color? onSuccesscontrast, Color? successcontrastContainer, Color? onSuccesscontrastContainer, Color? sourceBackgrounddefault, Color? backgrounddefault, Color? onBackgrounddefault, Color? backgrounddefaultContainer, Color? onBackgrounddefaultContainer, Color? sourceDivider, Color? divider, Color? onDivider, Color? dividerContainer, Color? onDividerContainer, Color? sourceCommonwhite, Color? commonwhite, Color? onCommonwhite, Color? commonwhiteContainer, Color? onCommonwhiteContainer, Color? sourceCommonblack, Color? commonblack, Color? onCommonblack, Color? commonblackContainer, Color? onCommonblackContainer, Color? surfaceHieghest}) → CustomColors -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
harmonized(
ColorScheme dynamic) → CustomColors -
Returns an instance of CustomColors in which the following custom
colors are harmonized with
dynamic's ColorScheme.primary. -
lerp(
covariant ThemeExtension< CustomColors> ? other, double t) → CustomColors -
Linearly interpolate with another ThemeExtension object.
override
-
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