PsGradientColorStop class final
One color stop in a custom Photoshop gradient.
Constructors
- PsGradientColorStop({required int? location, required int? midpoint, required PsDescriptorEnumeration? kind, required PsColor? color, required PsDescriptor descriptor})
-
Creates an immutable gradient color stop.
const
- PsGradientColorStop.create({required PsColor color, required int location, int midpoint = 50})
-
Creates a user-defined
Clrtstop with an explicitcolor.factory - PsGradientColorStop.fromDescriptor(PsDescriptor descriptor)
-
Creates a typed view over a Photoshop color-stop
descriptor.factory
Properties
- color → PsColor?
-
Explicit stop color, when the stop is not dynamically sourced.
final
- descriptor → PsDescriptor
-
Complete source descriptor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → PsDescriptorEnumeration?
-
Photoshop stop-kind enumeration, such as
UsrSorFrgC.final - location → int?
-
Stop position in Photoshop's 0–4096 gradient coordinate range.
final
- midpoint → int?
-
Transition midpoint in percent.
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