focal property Null safety

AlignmentGeometry? focal

Returns the interpolation of this Gradient / Gradient-subclass property at keyframe t for gradients a and b.

See GradientUtils to understand how fallbacks are determined for subclasses that do not contain this property.

Implementation

AlignmentGeometry? get focal => AlignmentGeometry.lerp(
      _a.focal,
      _b.focal,
      _shareRadialProps ? t : _t,
    );