begin property Null safety

AlignmentGeometry begin

If this is a linear-type Gradient, returns this.begin. Otherwise the fallback retrun value is Alignment.center.

Implementation

AlignmentGeometry get begin => (this is IntermediateGradient)
    ? (this as IntermediateGradient).packet.begin
    : (this is LinearGradient)
        ? (this as LinearGradient).begin
        : (this is LinearSteps)
            ? (this as LinearSteps).begin
            : Alignment.center;