DynamicColorPlugin class
Plugin for obtaining dynamic colors defined by the Android OS.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
getAccentColor(
) → Future< Color?> -
Returns the OS' accent color asynchronously as a
Color
. -
getCorePalette(
) → Future< CorePalette?> -
Returns the Android OS' dynamic colors asynchronously in a
CorePalette
.
Constants
- accentColorMethodName → const String
- A method name that the macOS plugin listens for.
- channel → const OptionalMethodChannel
- Optional method channel so that it returns null on non-Android platforms.
- methodName → const String
- A method name that the Kotlin plugin listens for.