ContextColorMapper class
A ColorMapper that uses the current context to resolve colors based on the active theme. Used in SvgUtils.themed to resolve colors in SVG images.
- Inheritance
-
- Object
- ColorMapper
- ContextColorMapper
Constructors
- ContextColorMapper(BuildContext context)
-
Creates a new ContextColorMapper with the given
context
.factory
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
-
substitute(
String? id, String elementName, String attributeName, Color color) → Color -
Returns a new color to use in place of
color
during SVG parsing.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited