A color space whose channel names and semantics Sass knows.
- Available extensions
- Annotations
-
- @sealed
Properties
-
channels
→ List<
ColorChannel> -
Available on ColorSpace, provided by the SassApiColorSpace extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isBounded → bool
-
Available on ColorSpace, provided by the SassApiColorSpace extension
Whether this color space has a bounded gamut.no setter - isLegacy → bool
-
Available on ColorSpace, provided by the SassApiColorSpace extension
Whether this is a legacy color space.no setter - isPolar → bool
-
Available on ColorSpace, provided by the SassApiColorSpace extension
Whether this color space uses a polar coordinate system.no setter - name → String
-
The CSS name of the color space.
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromName(
String name, [String? argumentName]) → ColorSpace -
Given a color space name, returns the known color space with that name or
throws a
SassScriptException
if there is none.
Constants
- a98Rgb → const ColorSpace
- The a98-rgb color space.
- displayP3 → const ColorSpace
- The display-p3 color space.
- hsl → const ColorSpace
- The legacy HSL color space.
- hwb → const ColorSpace
- The legacy HWB color space.
- lab → const ColorSpace
- The CIE Lab color space.
- lch → const ColorSpace
- The CIE LCH color space.
- oklab → const ColorSpace
- The Oklab color space.
- oklch → const ColorSpace
- The Oklch color space.
- prophotoRgb → const ColorSpace
- The prophoto-rgb color space.
- rec2020 → const ColorSpace
- The rec2020 color space.
- rgb → const ColorSpace
- The legacy RGB color space.
- srgb → const ColorSpace
- The sRGB color space.
- srgbLinear → const ColorSpace
- The linear-light sRGB color space.
- xyzD50 → const ColorSpace
- The xyz-d50 color space.
- xyzD65 → const ColorSpace
- The xyz-d65 color space.