CioColorScheme enum
Color scheme used to render in-app messages.
Selects which of the light/dark variants authored in the Customer.io editor is rendered. Use it when the app has its own appearance setting that can disagree with the operating system: auto follows the device, while light and dark pin the variant regardless of it.
Named with the Cio prefix because ColorScheme is already a Material
class, and hosts import package:flutter/material.dart alongside these
enums — an unprefixed name would be an ambiguous import in most apps.
The raw values are the wire contract shared with both native SDKs, which
match them lowercase and resolve anything unrecognized to auto. They are
declared explicitly rather than derived from the member names so a rename
cannot silently change what goes over the channel.
Values
- auto → const CioColorScheme
-
Follow the device's current appearance. The native default when unset.
const CioColorScheme(rawValue: 'auto') - light → const CioColorScheme
-
Always render the light variant, whatever the device is set to.
const CioColorScheme(rawValue: 'light') - dark → const CioColorScheme
-
Always render the dark variant, whatever the device is set to.
const CioColorScheme(rawValue: 'dark')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - rawValue → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
CioColorScheme> - A constant List of the values in this enum, in order of their declaration.