FlexSchemeData class
Immutable data class that holds name and description string scheme descriptions, light and dark, FlexSchemeColor definitions.
The FlexSchemeData bundles together a FlexSchemeColor pair suitable for light and dark theme mode, that can used by the FlexColorScheme.light and FlexColorScheme.dark factories to create a FlexColorScheme and corresponding ThemeData from it.
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 maps are 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
-
Override for hashcode, dart.ui Jenkins based.
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 -
Flutter debug properties override, includes toString.
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 -
Override the equality operator.
override