center property

If this is a radial- or sweep-type Gradient, returns this.center. Otherwise the fallback retrun value is Alignment.center.

Implementation

AlignmentGeometry get center => (this is IntermediateGradient)
    ? (this as IntermediateGradient).packet.center
    : (this is RadialGradient)
        ? (this as RadialGradient).center
        : (this is SweepGradient)
            ? (this as SweepGradient).center
            : (this is RadialSteps)
                ? (this as RadialSteps).center
                : (this is SweepSteps)
                    ? (this as SweepSteps).center
                    : Alignment.center;