MColor class
Constructors
- MColor.bind(String? bind, {double opacity = 1.0})
-
const
- MColor.hex(String? hex, {String? dark, double opacity = 1.0})
-
const
- MColor.system(MSystemColor system, {required String fallback, String? fallbackDark, double opacity = 1.0})
-
A colour from the user's system theme, with a fallback for everywhere it
is unavailable.
const
Properties
- bind → String?
-
final
- dark → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hex → String?
-
final
- opacity → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- system → MSystemColor?
-
Set only by MColor.system; names the system palette entry to use where
one is available. hex/dark stay populated as the fallback.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited