when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. {required TResult linear(
      ),
    1. required TResult cubic(
      1. double x1,
      2. double y1,
      3. double x2,
      4. double y2
      ),
    2. required TResult decelerate(
        ),
      1. required TResult bounceIn(
          ),
        1. required TResult bounceOut(
            ),
          1. required TResult bounceInOut(
              ),
            1. required TResult elasticIn(
                ),
              1. required TResult elasticOut(
                  ),
                1. required TResult elasticInOut(
                    )}
                  )
                  @optionalTypeArgs, inherited

                  Implementation

                  @optionalTypeArgs
                  TResult when<TResult extends Object?>({
                    required TResult Function() linear,
                    required TResult Function(double x1, double y1, double x2, double y2) cubic,
                    required TResult Function() decelerate,
                    required TResult Function() bounceIn,
                    required TResult Function() bounceOut,
                    required TResult Function() bounceInOut,
                    required TResult Function() elasticIn,
                    required TResult Function() elasticOut,
                    required TResult Function() elasticInOut,
                  }) =>
                      throw _privateConstructorUsedError;