Chrome class

Chrome

Color implementation of PresetValue.

Chrome(
  foreground: Color(0xFF6B6266),
  background: Color(0xffe1dacb),
  primary: Color(0xFF887384),
  secondary: Color(0xffec712d),
  ascent: Color(0xffe7cfae),
  success: Color(0xff499f51),
  error: Color(0xffda7673),
  warning: Color(0xffe5ad71),
  tint: Color(0x5af5ede2),
  shade: Color(0x5a75503d),
);
Inheritance

Constructors

Chrome({MaterialColor? swatch, required Color foreground, required Color background, required Color primary, required Color secondary, required Color ascent, Color? onPrimary, Color? onSecondary, Color? onAscent, required Color success, required Color error, required Color warning, required Color tint, required Color shade})
const
Chrome.fromJson(Map<String, dynamic> data)
Retrieve Chrome instance form data. If data is not valid, Chrome.internal is returned.
factory
Chrome.of(BuildContext context)
Retrieve Chrome instance form context. If context has no instance of Chrome in it, Chrome.internal is returned.
factory
Chrome.parse(String source)
Retrieve Chrome instance form source. If source is not valid, Chrome.internal is returned.
factory

Properties

ascent Color
final
background Color
final
descent Color
no setter
error Color
final
faintShade Color
no setter
faintTint Color
no setter
foreground Color
final
hashCode int
The hash code for this object.
no setterinherited
hint Color
no setter
onAscent Color
no setter
onDescent Color
no setter
onError Color
no setter
onHint Color
no setter
onPrimal Color
no setter
onPrimary Color
no setter
onSecondary Color
no setter
onSubtle Color
no setter
onSuccess Color
no setter
onWarning Color
no setter
primal Color
no setter
primary Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary Color
final
shade Color
final
subtle Color
no setter
success Color
final
swatch MaterialColor
no setter
tint Color
final
type Object
The extension's type.
no setterinherited
warning Color
final

Methods

copyWith({MaterialColor? swatch, Color? foreground, Color? background, Color? primary, Color? secondary, Color? ascent, Color? onPrimary, Color? onSecondary, Color? onAscent, Color? success, Color? error, Color? warning, Color? shade, Color? tint}) Chrome
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<Chrome>? other, double t) Chrome
Linearly interpolate with another ThemeExtension object.
override
merge(Chrome? other) Chrome
merge other into this preset. Works as copyWith with all it's entry arguments assigned to other's corresponding fields.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert this preset value to its encodable hashmap of String to it's encodable data. Override this method to declare how this field can be converted to it's encodable version.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

internal → const Chrome