PsGradient class final

A Photoshop gradient descriptor preserving both stop and noise forms.

Constructors

PsGradient({required String? name, required PsGradientForm form, required String? formIdentifier, required double? smoothness, required List<PsGradientColorStop> colorStops, required List<PsGradientTransparencyStop> transparencyStops, required int? randomSeed, required bool? showsTransparency, required bool? restrictsColors, required PsDescriptorEnumeration? colorSpace, required List<int> minimumValues, required List<int> maximumValues, required PsDescriptor descriptor})
Creates an immutable gradient view.
PsGradient.custom({String name = 'Custom', required List<PsGradientColorStop> colorStops, List<PsGradientTransparencyStop> transparencyStops = const []})
Creates a custom-stops Grdn gradient with full smoothness.
factory
PsGradient.fromDescriptor(PsDescriptor descriptor)
Creates a typed view over a Photoshop gradient descriptor.
factory

Properties

colorSpace → PsDescriptorEnumeration?
Noise-gradient color-space enumeration, when present.
final
colorStops → List<PsGradientColorStop>
Explicit color stops in source order.
final
descriptor → PsDescriptor
Complete source descriptor.
final
form → PsGradientForm
Known interpretation of formIdentifier.
final
formIdentifier → String?
Exact gradient-form enumeration identifier.
final
hashCode → int
The hash code for this object.
no setterinherited
maximumValues → List<int>
Four noise-gradient maximum channel values, when present.
final
minimumValues → List<int>
Four noise-gradient minimum channel values, when present.
final
name → String?
Preset name stored by Photoshop, when present.
final
randomSeed → int?
Noise-gradient random seed, when present.
final
restrictsColors → bool?
Whether a noise gradient restricts generated colors.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showsTransparency → bool?
Whether a noise gradient generates transparency.
final
smoothness → double?
Interpolation smoothness in Photoshop's 0–4096 range.
final
transparencyStops → List<PsGradientTransparencyStop>
Explicit transparency stops in source order.
final

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