FlexSchemeData class
Immutable data class that holds name and description string scheme descriptions, light and dark, FlexSchemeColor definitions that can used by the FlexColorScheme.light and FlexColorScheme.dark factories to create a FlexColorScheme.
This class can also be used to make a map with FlexScheme enum or some other usable lookup value as key, and FlexSchemeData as values, that you can then use as input to define multiple theme options for FlexColorScheme based themes.
A predefined example of a FlexScheme and FlexSchemeData map is available in FlexColor.schemes and FlexColor.schemesWithCustom.
- Mixed in types
- Annotations
Constructors
- FlexSchemeData({required String name, required String description, required FlexSchemeColor light, required FlexSchemeColor dark})
-
Default constructor, used to make an immutable FlexSchemeData object.
const
Properties
- dark → FlexSchemeColor
-
The dark scheme colors used by this FlexSchemeData.
final
- description → String
-
A longer description of the FlexSchemeData based color scheme.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- light → FlexSchemeColor
-
The light scheme colors used by this FlexSchemeData.
final
- name → String
-
A short name for the FlexSchemeData based color scheme.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? name, String? description, FlexSchemeColor? light, FlexSchemeColor? dark}) → FlexSchemeData - Copy the object with one or more provided properties changed.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override